Every job in BS2000 has available to it job-specific switches, which can only be changed or queried when that job is executing (note in this regard: user switches are user-ID-specific, see the MODIFY-USER-SWITCHES command). There are 32 job switches (numbered 0 to 31) available per job. Each of these switches may be given a value of 0 or 1. At the beginning of the job, all job switches are cleared (setting: 0). While the job is executing, these switches can be changed:
explicitly, using the MODIFY-JOB-SWITCHES command
implicitly, using the SET-JOB-STEP command (resets switches 16 to 31) or using utility routines (software products)
At the end of the job, all job switches are cleared again.
The following table shows which software products normally use job switches:
Software product | Job switches |
---|---|
ARCHIVE | 30, 31 |
BCAMDEF | 1, 4, 5, 20, 31 |
DAMP | 5, 30 |
EDT | 4 to 7 |
EDTU | 4 to 8 |
FMS | 5 |
LMS (ISP) | 1, 4, 9 |
LMS (SDF) | 4, 31 |
PRSERVE | 0, 2, 3 |
SDF-A | 15 |
SHOW-FILE | 5 |
TSOSLNK | 4 |
The following applies here:
Setting switch 4 causes the BLS0500 message from the binder loader to be suppressed.
ARCHIVE
Information regarding the course of the process may be obtained from the setting of the switches that ARCHIVE sets during/after the run.
Switch 30 set by ARCHIVE: Warning message in procedures
Switch 30 is set by ARCHIVE when the ARCHIVE statement was executed but a warning message was issued.
Switch 31 set by ARCHIVE: Errors in procedures
Switch 31 is set by ARCHIVE when an error was detected but the ARCHIVE statement was nevertheless executed.
BCAMDEF
Switches 0, 4, 5, 31 are used:
Within the BCAMDEF procedure, switches 0, 4, 5, 31 are set and then cleared again.
DAMP
Switch 5 set for DAMP
Before the DAMP program is called, task switch 5 must be set in the procedure.
If, in procedure mode, a DAMP statement is followed by a system command that is not permitted at the DAMP program level, DAMP switches from procedure mode to interactive mode and resets task switch 5. The last DAMP output screen is then displayed on the screen. In batch mode, a system command which is not permitted causes the job to be aborted.
Switch 30 set for DAMP
Suppresses a dump (user dump) if DAMP terminates in case of a program or system error:
In interactive mode, a message is issued asking whether a dump should be generated.
In batch mode, no dump is generated.
DBL/ELDE (Binder/Lader)
Switch 4 set
The system messages (BLS0500
, BLS0517
,...) about loading a module are suppressed.
EDT
Switch 4 set for EDT: Suppress start and end messages
Setting this switch causes the message BLS0500 following the loading of EDT to be suppressed. When EDT is terminated, message EDT8000 and, where applicable, messages EDT0900 and EDT0904 are also suppressed. In batch mode, logging is suppressed (equivalent to @LOG NONE).
Switch 5 set for EDT: Activate L mode and edit-only mode
When this switch is set, EDT reads via RDATA from SYSDTA and not via WRTRD, i.e. EDT operates in edit-only mode (equivalent to @EDIT ONLY).
Instead of the current line number, EDT displays * as a prompt in dialog mode.
If the switch is changed during EDT operation, this has no effect.
Explicit switching (with @EDIT without operands to L mode or with @EDIT FULL SCREEN to F mode) is still possible.
Switch 6 set for EDT: 160 print positions per line
When outputting to SYSLST (e.g. @LIST statement), EDT normally writes no more than 132 characters per line. If job switch 6 is set, EDT writes up to 160 characters per line. Longer outputs are distributed over several lines.
Job switch 6 must already be set when EDT starts.
Switch 7 set for EDT: Excess memory space is not released
This job switch can be set both before starting EDT and during EDT execution. It prevents the automatic release of pre-allocated, excess disk space after writing a SAM or ISAM file by EDT, which normally releases unused disk space using the FILE macro.
EDTU
The switches 4 to 7 are evaluated as in EDT.
Switch 8 set for EDTU set: Redirect outputs to SYSOUT
In batch mode, the EDT writes messages and the output of a series of instructions (e.g. @STATUS) to SYSLST. If the job switch 8 is set, the EDT writes this output to SYSOUT.
The job switch 8 must already be set when the EDT starts.
FMS
Switch 5 set for FMS: FMS suppresses interactive queries
LMS
Switch 1 set for LMS (ISP only): Alternative input of statements
In interactive mode, unless otherwise specified, statements to LMS are read from the interactive terminal by means of the WRTRD macro. When switch 1 is set, statements are read with the RDATA macro, from the file assigned to the SYSDTA system file.
Switch 4 set for LMS: Suppress start and end messages
Setting switch 4 causes the LMS start and end messages to be suppressed. At the same time, the runtime log of LMS is reduced to the minimum.
Switch 9 set for LMS (ISP only): Request additional memory space
Setting switch 9 makes it possible to process up to 1200 records of different length in one comparison, and to continuously sort larger directories with the TOC function.
Switch 31 set for LMS: Set test condition for diagnostic purposes (see the “LMS” manual [21]).
PRSERVE
Switch 0 set for PRSERVE: Suppress output of the character frame
Setting switch 0 causes output of the secondary statement indicator (character frame) to SYSOUT to be suppressed. However, this is unrelated to the screen display, produced by means of the DISPLAY statement.
Switch 2 set for PRSERVE: Suppress output of the LOOP record
Setting switch 2 causes the output of the LOOP record (following a CHECK statement) in interactive mode to be suppressed.
Switch 3 set for PRSERVE: Suppress information regarding the current mode of operation
Unless otherwise specified, the user receives from PRSERVE an error message and information regarding the currently active operational status after an incorrect PRSERVE statement has been entered. By setting switch 3, output of the information is suppressed.
SDF-A
Switch 15 set for SDF-A: Process syntax files in the old format
Syntax files in the old format (supported by SDF V1.4) are processed without being automatically converted into the new format. However, this means that only the syntax and functionality of SDF-A V1.0D are available.
TSOSLNK
Switch 4 set for TSOSLNK: Suppress page feed
Setting switch 4 causes all page feeds to be omitted when the linkage editor listing is output on SYSLST.