HP 3000 Manuals

Executing Your Program with the RUN Command [ HP COBOL II/XL Reference Manual ] MPE/iX 5.0 Documentation


HP COBOL II/XL Reference Manual

Executing Your Program with the RUN Command 

The RUN command also executes the program file.  The PARM parameter of
the RUN command has two functions:

   *   Setting software switches.

   *   Setting the object-time debug module switch.

Setting Software Switches 

You must use the PARM=parameter keyword of the RUN command to set
software switches.  The parameter is an octal value corresponding to a
16-bit word.  Each bit is the actual switch corresponding to one of the
software switches, depending on its position in the word.  To set one or
more switches to "on", assign the appropriate value to parameter.  For
example, to set switches SW0, SW3, and SW5 to "on", assign the value
%112000 to PARM. The example below illustrates this.

The following shows the switch word initially, where all switches are
"off":

[]
After executing the following command: RUN MYPROG;PARM=%112000 The switch word looks like the following:
[]
Hexadecimal constants can also be used for the PARM value. Setting the Object-Time Debug Module Switch Bit 15 of the PARM parameter is the object-time debug module switch. If bit 15 of the PARM parameter in the RUN command has a value of 1, the object-time DEBUG mode is active. Otherwise, it is inactive. For more information on the object-time debug module switch, see Chapter 13 .
NOTE The object-time debug module switch is equivalent to SW15.
The minimum and maximum values you can use for the PARM parameter word are %0 (all off), and %177777 (all switches, from SW0 to SW15, "on"). If bit 15 is "on", the run-time debugging code is enabled.


MPE/iX 5.0 Documentation