Syntax for Setting Switches

The syntax for setting switches on the command line is:

({ {+|-|/}s }...)

To set switches using COBSW use the following operating system command:


{ | } Choose one of the items either side of the |.
{ }... You can repeat this item.
s A switch. It can be a digit, a letter (upper or lower case), or a letter followed by a digit in the range 0 through 7. A letter is equivalent to the same letter followed by the digit 0. For example B, B0 all refer to the same switch.
+ Sets the switch on.
- Sets the switch off.
  • Switches can be separated by spaces (but this is not required); however, there must not be a space between the sign ("+" or "-") and its associated switch
  • Switches can be specified in any order, but each programmable or alphabetic switch must be preceded by a sign
  • Individual switches can be set more than once, but the last setting of any particular switch is the one accepted by the system
  • Switches remain set when COBOL subprograms are called
  • Switches set on the command line take precedence over those defined in the COBSW environment variable
  • Switches are case sensitive