To set switches on the command line, use the following command:
({ {+|-|/}s }...)
To set switches using COBSW use the following command:
Windows:
SET COBSW={ {+|-|/}switch }...
UNIX:
COBSW={ {+|-|/}switch }...
export COBSW
where:
{ | }
|
Choose one of the items either side of the |.
|
{ }...
|
You can repeat this item.
|
switch
|
Either a programmable switch with a digit in the range 0 through 8, or a run-time switch with an upper-case or lower-case letter.
A letter is equivalent to the same letter followed by the digit 0. For example B, B0, b, b0 all refer to the same switch.
|
+
|
Sets the switch on.
|
-
|
Sets the switch off.
|
Notes
- 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