Creating an XML File to Run Commands in Batch Mode

To run commands in batch mode, you must enter them into an XML file with special tagging.

  1. Create a file with the XML extension and open the file in a text editor.
  2. Enter the following for the first two lines:
    <?xml version="1.0" encoding="UTF-8"?>
    <commands>
  3. Enter the following lines for the login command:
        <command name="login" sequence="1">
            <option name="url" arg="DOECSocketListenerUrl" />
            <option name="pw" arg="DOECUserPassword" />
            <option name="u" arg="DOECUuser" />
        </command>
  4. For each command that you want the file to execute, enter the information for the command in an XML structure like this:
        <command name="commandName" sequence="sequenceInteger">
            <option name="optionNamel" arg="optionValue1" />
            <option name="optionName2" arg="optionValue2" />
            <option name="optionName3" arg="optionValue3" />
                ...
            <option name="optionNameN" arg="optionValueN" />
        </command>
    The sequence parameter controls the order in which the commands are executed.
  5. After the last <command> entry, add the following line to terminate the file:
    </commands>


Created March 2, 2010. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com