CMMD
CMMDL
LA* 6,CMMD
LA 10,CMMDL
DC X'83',X'6A' ,XL2'0008' DC EQU C'QUERY FILES' *-CMMD
The second example shows how to specify a string of commands when multiple
commands are to be issued.
CMMD
CMMDL
Notes:
LA* 6,CMMD
LA 10 ,CMMDL
DC X'83',X'6A' ,XL2'0008' DC
DC
DC EQU C'QUERY FILES' X'lS' C'PURGE PRINTER'
*-CMMD
1. If you are in EC mode you must code a LRA instruction instead of a LA
instruction if you are running a virtual storage system (for example, MVS) in a
virtual machine and want to specify the address of the CMMD parameter.
2. The logical line editing characters (described in the VM / SP Terminal Reference
and under the TERMINAL command in the CP Command Reference for GenĀ­
eral Users) are only recognized by CP when entered from a terminal, not when
passed to CP via DIAGNOSE X'08'. Therefore a command such as #CP is not
recognized by CP when issued via DIAGNOSE X'08' and results in error mesĀ­
sage "DMKCFC001E ?CP: COMMAND". DIAGNOSE Code X'OC' -- Pseudo Timer
Privilege class G
Execution of DIAGNOSE Code X'OC' causes CP to store four doublewords of
time information in the user's virtual storage.
Entry Values: The register specified as Rx contains the address of the 32 byte area
where the time information is to be stored. The address must be on a doubleword
boundary. The information returned is in the format shown in Figure 28 on page 207. The first eight bytes contain the Month/Day-of-Month/Year. The next eight
bytes contain the time of day in Hours:Minutes:Seconds. The last 16 bytes contain
the virtual and total processor time used by the virtual machine that issued the DIAGNOSE. The last 16 bytes are expressed as a doubleword, unsigned integer.
The time is expressed in microseconds.
Completion and Condition Codes: No completion code is returned, and the condition
code remains unchanged.
DIAGNOSE Instruction in a Virtual Machine 227
DIAGNOSE Code X'lO' --Release Pages I Privilege class G Pages of virtual storage can be released by issuing a DIAGNOSE Code X'10'. When a page is released, it is considered all zero.
Entry values: The register specified by Rx contains the address of the first page to
be released, and the Ry register contains the address of the last page to be released.
Both addresses must be on page boundaries. A page boundary is a storage address
whose low order three digits, expressed in hexadecimal, are zero.
Completion and Condition Codes: No completion code is returned, and the condition
code remains unchanged.
Note: Do not use DIAGNOSE Code X'10' to release noncontiguous storage; use DIAGNOSE Code X'64' for this purpose.
DIAGNOSE Code X'14' --Input Spool File Manipulation
Privilege class G
Execution of DIAGNOSE Code X'14' causes DMKDRDER to perform input spool
file manipulation.
Entry Values: Depending upon the value of the function specified as Rx contains a
buffer address, a copy count, or a spool file identifier. The Ry register, which must
be an even register, contains either the virtual address of a spool input card reader
or, if Ry+ 1 contains X'OFFF', a spool file ID number. Ry+ 1 contains a
hexadecimal code indicating the file manipulation to be performed, and a flag with
the optional size of the spool file block. The codes are:
Code 0000 0004 0008 OOOC 0010 0014 0018 001C 0020 0024 OFFE OFFF Notes:
Function
Read next spool buffer (data record)
Read next print spool file block (SFBLOK)
Read next punch spool file block (SFBLOK)
Select a file for processing
Repeat active file nn times
Restart active file at beginning
Backspace one record
Read next monitor spool file block
Read next monitor spool record
Read last spool buffer (active file)
Select next file not previously selected
Retrieve subsequent file descriptor
1. Subcodes X'OOlC' and X'0020' are the only subcodes of DIAGNOSE X'14'
that can be used for monitor files.
2. For subcodes X'OOOO', X'0004', X'0008', X'OOOC', X'OOlC', and X'0020', held files are skipped.
Condition Codes: On return Ry + 1 may contain error codes that further define a
returned condition code of 3.
228 VM/SP System Programmer's Guide
Previous Page Next Page