Page of GC20-1807-7 As Updated April 1, 1981 by TNL GN25-0829
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
LA* 6,CMMD
LA 10,CMMDL DC X'83',X'6A',XL2'0008' DC
DC
DC EQU C' QUERY FILES' X' 15' C'PURGE PRINTER'
*-CMMD
*Note that if you are in CMS 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. DIAGNOSE Code X'OC' -- Pseudo Timer
Execution of DIAGNOSE Code X'OC' causes CP to store four doublewords of
time information in the user's virtual storage. 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 22.
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. No completion code is returned, and the condition code remains unchanged. DIAGNOSE Code X'1 0' -- Release Pages Pages of virtual storage can be released by issuing a DIAGNOSE Code X'10'. When a page is released, it is considered all zero. 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. No completion code is returned, and the
condition code remains unchanged.
Do not use DIAGNOSE Code X'10' to release noncontiguous storage: use DIAGNOSE Code X'64' for this purpose.
186 IBM VM/370 System programmer's Guide
Apr il 1, 198 1 DIAGNOSE Code X'14' Manipulation Input Spool File Execution of DIAGNOSE Code X'14' causes DftKDRDER to perform input spool
file manipulation. Depending upon the value of the function subcode,
the register specified as Rx contains a buffer address, a copy count, or
a spool file identifier. The Ry register, which must pe 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. The codes are: 0000 0004 0008 OOOC 0010 0014 0018 001C 0020 OFFF ly.!!£tion 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
Retrieve subsequent file descriptor On return Ry+1 may contain error codes that further define a returned
condition code of 3.
Condition o
1
2
3
3
3
3
3 SUBCODE X'OOOO' 4
8
12
16 20 Error
Data transfer successful
End of file
File not found
Device address invalid
Device type invalid
Device busy, reader not ready,
or device is a real device
Fatal paging I/O error
Page already locked for I/O Rx start address of fullpage virtual buffer
Ry virtual spool reader address
The specified device is checked for a file activated via DIAGNOSE. If one is found, the next fullpage buffer is made available to the
virtual machine via a call to DMKRPAGT. If a file is not found, the
chain of reader files is searched for a file for the calling user and
connected to the virtual device for further reading. If no file is
found, virtual condition code 2 is set. When the end of an active file
is reached, the device status settinqs are tested for "spool
cont inuous.'" If not set, v irtual condition code 1 is set, indicating
end of file. If the device is set for continuous input, the active file
is examined to determine whether or not it is a multiple-copy file. If
it is, reading is restarted at the beginning of the file. If it is not,
the file is closed via DMKVSPCR and the reader chain is searched for
another input file. If no other file is found, virtual condition code 1
is set. A specific DIAGNOSE X'14' Subcode X'OOOO' must be issued to get
the first spooled page again. Part 2. Control Program (CP) 187
Previous Page Next Page