Documentation conventions

This section lists the conventions used in this documentation.

Operating systems

SQL Anywhere runs on a variety of platforms. In most cases, the software behaves the same on all platforms, but there are variations or limitations. These are commonly based on the underlying operating system (Windows, Unix), and seldom on the particular variant (AIX, Windows Mobile) or version.

To simplify references to operating systems, the documentation groups the supported operating systems as follows:

  • Windows   The Microsoft Windows family includes Windows Vista and Windows XP, used primarily on server, desktop, and laptop computers, and Windows Mobile used on mobile devices.

    Unless otherwise specified, when the documentation refers to Windows, it refers to all Windows-based platforms, including Windows Mobile.

  • Unix   Unless otherwise specified, when the documentation refers to Unix, it refers to all Unix-based platforms, including Linux and Mac OS X.

Directory and file names

In most cases, references to directory and file names are similar on all supported platforms, with simple transformations between the various forms. In these cases, Windows conventions are used. Where the details are more complex, the documentation shows all relevant forms.

These are the conventions used to simplify the documentation of directory and file names:

  • Uppercase and lowercase directory names   On Windows and Unix, directory and file names may contain uppercase and lowercase letters. When directories and files are created, the file system preserves letter case.

    On Windows, references to directories and files are not case sensitive. Mixed case directory and file names are common, but it is common to refer to them using all lowercase letters. The SQL Anywhere installation contains directories such as Bin32 and Documentation.

    On Unix, references to directories and files are case sensitive. Mixed case directory and file names are not common. Most use all lowercase letters. The SQL Anywhere installation contains directories such as bin32 and documentation.

    The documentation uses the Windows forms of directory names. In most cases, you can convert a mixed case directory name to lowercase for the equivalent directory name on Unix.

  • Slashes separating directory and file names   The documentation uses backslashes as the directory separator. For example, the PDF form of the documentation is found in install-dir\Documentation\en\PDF (Windows form).

    On Unix, replace the backslash with the forward slash. The PDF documentation is found in install-dir/documentation/en/pdf.

  • Executable files   The documentation shows executable file names using Windows conventions, with a suffix such as .exe or .bat. On Unix, executable file names have no suffix.

    For example, on Windows, the network database server is dbsrv11.exe. On Unix, it is dbsrv11.

  • install-dir   During the installation process, you choose where to install SQL Anywhere. The environment variable SQLANY11 is created and refers to this location. The documentation refers to this location as install-dir.

    For example, the documentation may refer to the file install-dir\readme.txt. On Windows, this is equivalent to %SQLANY11%\readme.txt. On Unix, this is equivalent to $SQLANY11/readme.txt or ${SQLANY11}/readme.txt.

    For more information about the default location of install-dir, see SQLANY11 environment variable.

  • samples-dir   During the installation process, you choose where to install the samples included with SQL Anywhere. The environment variable SQLANYSAMP11 is created and refers to this location. The documentation refers to this location as samples-dir.

    To open a Windows Explorer window in samples-dir, from the Start menu, choose Programs » SQL Anywhere 11 » Sample Applications And Projects.

    For more information about the default location of samples-dir, see SQLANYSAMP11 environment variable.

Command prompts and command shell syntax

Most operating systems provide one or more methods of entering commands and parameters using a command shell or command prompt. Windows command prompts include Command Prompt (DOS prompt) and 4NT. Unix command shells include Korn shell and bash. Each shell has features that extend its capabilities beyond simple commands. These features are driven by special characters. The special characters and features vary from one shell to another. Incorrect use of these special characters often results in syntax errors or unexpected behavior.

The documentation provides command line examples in a generic form. If these examples contain characters that the shell considers special, the command may require modification for the specific shell. The modifications are beyond the scope of this documentation, but generally, use quotes around the parameters containing those characters or use an escape character before the special characters.

These are some examples of command line syntax that may vary between platforms:

  • Parentheses and curly braces   Some command line options require a parameter that accepts detailed value specifications in a list. The list is usually enclosed with parentheses or curly braces. The documentation uses parentheses. For example:
    -x tcpip(host=127.0.0.1)

    Where parentheses cause syntax problems, substitute curly braces:

    -x tcpip{host=127.0.0.1}

    If both forms result in syntax problems, the entire parameter should be enclosed in quotes as required by the shell:

    -x "tcpip(host=127.0.0.1)"

  • Quotes   If you must specify quotes in a parameter value, the quotes may conflict with the traditional use of quotes to enclose the parameter. For example, to specify an encryption key whose value contains double-quotes, you might have to enclose the key in quotes and then escape the embedded quote:
    -ek "my \"secret\" key"

    In many shells, the value of the key would be my "secret" key.

  • Environment variables   The documentation refers to setting environment variables. In Windows shells, environment variables are specified using the syntax %ENVVAR%. In Unix shells, environment variables are specified using the syntax $ENVVAR or ${ENVVAR}.