TAPECTL Macro TAPn
cuu
indicates the symbolic tape number (TAP1 through
TAP4) indicates the virtual device address. MODE=mode specifies the number of tracks, density, and tape recording
technique options. It must be in the following form:
([ track ],( density ],[trtch])
track 7
9
density
trtch
indica tes a 7-track tape (implies density=800 and trtch=O) indicates a 9-track tape (implies density=800). 200, 556, or 800 for a 7-track tape. 800, 1600, or
indica tes the
7-track tape.
specified: 6250 for a 9-track tape.
tape recording technique for One of the following must be
o -odd parity, converter off, translator off. OC - odd parity, converter on, translator off. OT - odd parity, converter off, translator on.
E -even parity, converter off, translator off.
ET -even parity, converter off, translator on.
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 if no error occurs. You need not specify the MODE option when you are manipulating a 9-track
tape ana you are using the default density for the tape drive, nor when you are writing a 7-track tape with a density of 800 bpi, odd parity,
with data converter and translator off.
If an error occurs, register 15 contains one of the following error
codes: 1
2
3 4 5
6 q !1ggning Invalid function or parameter list.
End of file or end of tape
Permanent 1/0 error
Invalid device id is not attached
Tape is file-protected
Incorrect length
338 IBM VM/370 eMS Command and Macro Reference
WAITD Macro WAITD Use the WAI:D macro instruction to cause the program to wait until the
next interruption occurs on the specified device. The format of the WAITD macro instruction is:
r ---, I [label] I WAITD I device ••• [,devicen] [,ERROR=erraddr] , '-- ,----------------------------------------------_______ -J label is an optional statement label.
d evicen specifies the device(s) to be waited for.
following may be specified: O·ne of the
symn indicates the symbolic device name and number, where:
sym is CON, DSK, PRT, PUN,RDR, or TAP.
n indicates a device number.
user is a four-character symbolic name specified a HNDINT
macro issued for the same device.
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 returRS to the next sequential instruction in
the calling program, as it does if no error occurs.
1. Use the WAITD macro instruction to ensure completion of an I/O operation. If an interruption has been received and not processed
from a device specified in the WAITD macro instruction, the
interruption is processed before program execution continues.
2. When the interruption has been completely processed
6
control is
returned to the caller with the name of the interrupting device in
register 1.
3. If an HNDINT macro instruction issued for the same device specified ASAP and an interruption has already been processed for the device,
the wait condition is satisfied.
4. If an HNDINT macro instruction issued for the same device specified WAIT and an interruption for the device has been received, the
interruption handling routine is given control.
5. The interruption routine determines if an interruption
considered processed or if more interruptions are necessary
satisfy the wait condition. For additional information see
discussion of the HNDINT macro instruction.
is
to
the
When an error is detected, register 15 contains a 1 to indicate that an
invalid device number was specified.
Section 6. CMS Macro Instructions 339
Previous Page Next Page