The  specified  device  is  checked  for  an  active  file.  If  no  active  file  
is found, cc=2 is set. Otherwise, the file is backspaced one record and
the record is given to the user as in subcode1'0000'.   If  the  file  is  
already positioned at the first record, the first record is given to the
user.Subcode   X'001C'   Rx  =  virtual  address  of  a  12-doubleword  buffer  
Ry = virtual spool reader address
Processing is the same asSubcode   1'0008',   except  
spool files, as identified by theSFBMON   flag  is  
handled.Subcode   1'0020'   Rx  =  start  address  of  full  page  virtual  buffer  
Ry = virtual spool reader address
Processing is the same asSubcode   X'OOOO',   except  
spool files, as identified by theSFBMON   flag  in  
handled.Subcode   X'OFFF'   Rx  =  virtual  address  of  a  252-byte  buffer  
Ry = spool file IDnumber   that  only  monitor  
SFBFLAG2, can be
that only monitor
SFBFLAG2, can be
If Ry is nonzero, the spool input chain is searched for a file with a
matching ID nu.ber: If none is found or if one is found that is owned
by a different virtualmachine,   cc=2  is  set.  The  chain  search  is  
continuedfrom   the  file  that  was  found,  or  from   the  anchor  if  Ry  is  
zero, for the next file owned by the caller, independent of file type,
class,INUSE   flag,  etc.  If  none  is  found,  cc=1  is  set.  Otherwise,  the  SPBLOK   and  the  first  record  of  the  file  (generally,  the  TAG)  are  copied  
to the caller's virtual storage buffer.
Input/output operations to a direct access device, of the type usedby   CMS,   can  be  performed   from   a  virtual  machine  using  DIAGNOSE   code  X'18'.   No   I/O   interrupts  are  returned  by  CP   to  the  virtual  machine;  the  DIAGNOSE   instruction  is  completed  only  when  the  READ  or  WRITE  com.ands   associated  with  the  DIAGNOSE   are  completed.   The  Rx   register  contains  
the virtual device address of the direct access device. TheRy   register  
contains the address of a chain of CCWs. The CCW chainmust   be  in  a  
standardformat   that  CP   expects  when  DIAGNOSE   code  X'18'   is  used,  as  
shown below. Register 15must   be  loaded  by  the  user  with  the  number   of  
READs orWRITEs   in  the  CCW  chain.  
1-56IB!   V8/370   System   LogiC   and   Problem  Deter.ination--Volu.e  1  
is found, cc=2 is set. Otherwise, the file is backspaced one record and
the record is given to the user as in subcode
already positioned at the first record, the first record is given to the
user.
Ry = virtual spool reader address
Processing is the same as
spool files, as identified by the
handled.
Ry = virtual spool reader address
Processing is the same as
spool files, as identified by the
handled.
Ry = spool file ID
SFBFLAG2, can be
that only monitor
SFBFLAG2, can be
If Ry is nonzero, the spool input chain is searched for a file with a
matching ID nu.ber: If none is found or if one is found that is owned
by a different virtual
continued
zero, for the next file owned by the caller, independent of file type,
class,
to the caller's virtual storage buffer.
Input/output operations to a direct access device, of the type used
the virtual device address of the direct access device. The
contains the address of a chain of CCWs. The CCW chain
standard
shown below. Register 15
READs or
1-56
            
            





































































































































































































































































































































































































































































