Variable Sn S* S$ SDISKx SDISK* &DISK? &DOS SEXEC &GLOBAL SGLOBALn &INDEX &LINENUM &READFLAG &RETeODE &TYPEFLAG &0 User: Usage Set By
Arguments passed to an EXEC are assigned to User the variables &1 through &30. Test whether all (&*) or any (&$) of the EXEC arguments passed to EXEC have a particular
value.
Indicates whether the disk access at mode 'x' User is a CMS OS, or DOS disk, or not accessed (CMS, OS, DOS, or NA). Contains the mode letter of the first read/write User disk in the CMS search order, or NONE if no
read/write disk is accessed. Contains the mode letter of the read/write disk User with the most available space or NONE, if no
read/write disk is accessed.
Indicates whether or not the CMS/DOS environment User is active (ON or OFF). Contains the filename of the EXEC file currently EXEC being executed.
Bas a value ranging from 1 to 19, to indicate EXEC the recursion (nesting) level of the EXEC that
is currently executing.
The variables SGLOBAL1 through &GLOBAL9 can User contain integral numeric values, and can be
passed among different recursion levels. If
not explicitly set, the variable will have a
value of 1. Contains the number of arguments passed to EXEC the EXEC on the command line or the number of
arguments entered as a result of an &ARGS or SREAD ARGS control statement. Contains the current line number in the EXEC. EXEC Indicates whether (STACK) or not (CONSOLE) EXEC there are lines stacked in the terminal input
buffer (console stack). Contains the return code from the most recently CMS executed CMS command.
Indicates whether (RT) or not (BT) output is EXEC being displayed at the console. Contains the name of the EXEC file. User I]XE£: Variables are assigned values by EXEC but you may modify them. You may not modify these variables. I I You may assign a value to this variable but it is reset at the
completion of each CMS command.
Figure 10. EXEC Special Variables 112 IBM VM/370 eMS User's Guide
,
Section 7. Using Real Printers, Punches,
Readers, and Tapes eMS Unit Record Device Support CMS supports one virtual card reader at address OOC, one virtual card
punch at address OOD, and one virtual printer at address OOE. When you
invoke a CMS command or execute a program that uses one of these unit
record devices, the device must be attached at the virtual address
indicated. USING THE CP SPOOLING SYSTEM Any output that you direct to your virtual card printer or punch, or any
output you receive through your card reader, is controlled by the
spooling facilities of the control program (CP). Each output unit is
known to CP as a spool file, and is queued for processing with the spool
files of other users on the VM/370 system. Ultimately, a spooled
printer file or a spooled punch file may be released to a real printer
or card punch for printing or punching.
The final disposition of a unit record spool file depends on the
spooling characteristics of your virtual unit record devices, which you
can alter with the CP command SPOOLe To find out the current
characteristics of your unit record devices you can issue the command:
cp query ur You might see, as a response to this, the display:
RDR OOC CL A NOCONT NOHOLD EOF READY PUN OOD CL A NOCONT NOHOLD COpy 01 REAtY OOD FOR CMSGDE DIST 13SCRIPT PRT OOB CL A CONT HOLD COPY 01 READY OOE FOR CMSGDE DIST 13SCRIPT Some of these characteristics, and the ways you can modify them, are
discussed below. When you use the SPOOL command to control a virtual
unit record device, you do not change the status of spool files that
already exist, but rather set the characteristics for subsequent output.
For information on modifying existing spool files, see "Altering Spool Files," below. (CL): Spool files, in the CP spool file queue, are grouped
according to class, and all files of a particular class may be processed
together, or directed to the same real output device. The default
values for your virtual machine are set in your VM/370 directory entry,
and are probably the standard classes for your installation. You may need, however, to change the class of a device if you want a
particular type of output, or some special handling for a spool file.
For example, if you are printing an output file that requires special
forms, and your installation expects that output to be spooled class Y, issue the command: cp spool printer class y Section 7. Using Real printers, Punches, Readers, and Tapes 113
Previous Page Next Page