BATCH -- Runs McIDAS commands serially from a text file
   BATCH file <keywords>
   BATCH par1 par2 ... parn file <keywords>
Parameters:
   file | name of the batch file containing the commands; see Remarks
   par1...parn | value to substitute wherever the corresponding %n
                 notation (%1, %2, etc.) appears in the batch file
Keywords:
   CONTINUE=NO  | stop batch file if any command stops abnormally (def)
           =YES | ignore any abnormal terminations and continue with
                  subsequent commands
   DEST=file | name of the text file to write commands into instead of
               running them; the file contains the list of expanded
               commands and can be used by other programs
       =C    | directs commands to the text frame for viewing only
Remarks:
   The batch file must be in text format (lines end with CR or CR/LF).

   Commands in the batch file may be up to 512 characters long. Commands
   performed serially, i.e., each must finish before the next one begins.

   Normal string table substitution may be used within each command, and
   will take place as the command is executed.

   To add a remark in the batch file, specify REM or REM? followed by
   a space and the remark text.  Remarks prefaced by REM? are echoed
   to the text frame.

   BATCH also allows for some rudimentary flow control by permitting the
   following eight pseudocommands in the batch file:
      SET variable=value
          replaces the value of 'variable'; reference variable elsewhere
          in the batch file with %variable% or #variable; if variable is
          not SET, it is obtained from the McIDAS string table; use up to
          30 variables; the name of the variable may be up to 8
          alphanumeric characters;
          'value' is one of the following:
             - a character string (e.g., 1234ABC)
             - a McIDAS string, preceeded by a pound sign (e.g., #STATION)
             - a variable, enclosed in percent symbols (e.g., %STATION%)
             - a BATCH command parameter number, preceeded by a percent
               symbol (e.g., %1)
      SETSTRING string=value
          replaces the value of 'string' in the McIDAS string table; see
          SET command above for definition of 'value'
      IF value1==value2 command
          runs the specified command if the 2 values are identical;
          see SET command above for definition of 'value1' and 'value2'
      IF NOT value1==value2 command
          runs the specified command if the 2 values are NOT identical;
          see SET command above for definition of 'value1' and 'value2'
      IF NOT ERRORCODE command
          runs the specified command if the last McIDAS command completed
          successfully (with a zero status)
      IF ERRORCODE command
          runs the specified command if the last McIDAS command exited
          with a non-zero status
      GOTO label
          causes BATCH to jump forward to the next line with :label
          see the :label command below
      :label
          labels a line that can be advanced to with the GOTO command;
         'label' is a character string of up to 12 characters (e.g., DONE)
----------
