Loading...
Select Version
&pagelevel(4)&pagelevel
General
Application area: | User and job switches; see "S-type macros" |
Macro type: | Type O; see "O-type macros" |
As of BS2000/OSD-BC V1.0, the new macro SWITCH is available. This macro combines the functionality of the GETSW, GETUS, SETSW and SETUS macros.
Macro description
(For a general description of the job switch see the SETSW macro)
The macro GETSW copies into register R0 the settings of the job switches of the job that is currently running.
The switches are assigned to the bits of register R0 in ascending sequence (from right to left):
bit 2 (0) --> switch 0 bit 2 (1) --> switch 1 : : : : bit 2 (31) --> switch 31
where:
bit 2n = 0: switch n off
bit 2n = 1: switch n on
0 <= n <= 31
There is no return code to report on execution of the macro.
Macro format
GETSW |