RDCARD Macro
RDCARDUse the RDCARD macro instruction to read a line from a virtual card
reader. The format of theRDCARD macro instruction is: r , I [label] I RDCARD I buffer[,length][,ERROR=erraddr] I L, ____ , label
buffer
length
is an optional statement label.
specifies the buffer address into which the card is to be
read. It may be:
bufaddr
(reg)
the symbolic address of the buffer.
a register containing the address of the buffer.
specifies the length of card to be read. If omitted,80 is
assumed. The length may be specified in one of two ways:
n
(reg)
a self-defining term indicating the length.
a register containing the length.
ERROR=erraddr
specifies the address of an error routine to be given
control if an error is found. If ERROR= is not coded and an
error occurs, control returns to the next sequential
instruction in the calling program, as it doesif no error
occurs.
1. No stacker selecting is allowed.
2. When the macro completes, register0 contains the length of the
card that was read.
3.You may not use the RDCARD macro in jobs that run under the eMS batch machine.
If an error occurs, register 15 contains one of the following error
codes:
Code--1- 2
3
5100 !1g§:.ning End of file
unit checkUnknown error
Length not equal to requested length
Device not attached
Section 6.CMS Macro Instructions 333
RDCARD
reader. The format of the
buffer
length
is an optional statement label.
specifies the buffer address into which the card is to be
read. It may be:
bufaddr
(reg)
the symbolic address of the buffer.
a register containing the address of the buffer.
specifies the length of card to be read. If omitted,
assumed. The length may be specified in one of two ways:
n
(reg)
a self-defining term indicating the length.
a register containing the length.
ERROR=erraddr
specifies the address of an error routine to be given
control if an error is found. If ERROR= is not coded and an
error occurs, control returns to the next sequential
instruction in the calling program, as it does
occurs.
1. No stacker selecting is allowed.
2. When the macro completes, register
card that was read.
3.
If an error occurs, register 15 contains one of the following error
codes:
Code
3
5
unit check
Length not equal to requested length
Device not attached
Section 6.