to execute an I/O instruction while in
the problem state.EXECUTION OF INPUT/OUTPUT OPERATIONS The channel can execute six commands:
write, read, read backward, control,
sense, and transfer in channel. Each
command except transferin channel
initiates a correspondingI/O operation.
The term"I/O operation" refers to the
activity initiated by a command in theI/O device and associated subchannel.
The subchannel is involved with the
execution of the operation from the
initiation of the command until the
channel-end signal is receivedor, in
the case of command chaining, until the
device-end signal is received. The
operation in the device lasts until
device end is signaled.BLOCKING OF DATA
Data recorded by anI/O device may be
divided into blocks. The length of a
block depends on the device; for
example, a block can be a card, a line
of printing, or the information recorded
between two consecutive gaps on magnetic
tape.
The maximum amount of information that
can be transferred in oneI/O operation
is one block. AnI/O operation is
terminated when the associated storage
area is exhausted or the end of the
block is reached, whichever occurs
first. For some operations, such as
writing on a magnetic-tape unit or at an
inquiry station, blocks are not defined,
and the amount of information trans
ferred is controlled only by the
program.
CHANNEL-ADDRESSWORD The channel-address word (CAW) specifies
the subchannel key, the suspend-control
bit, and the address of the firstCCW associated with START I/O or START I/O FAST RELEASE. The channel refers to the CAW only during the execution of START I/O or START I/O FAST RELEASE. The CAW is fetched from real storage location 72
of theCPU issuing the instruction. The
pertinent information thereafter is
stored in the subchannel, and the
program is free to change the contents
of theCAW. Fetching of the CAW by the
channel does not affect the contents of
the location.
TheCAW has the following format: CCW Address
o 48 31
The fields in theCAW are allocated for
the following purposes:
Subchannel Key: Bits0-3 form the
access key for all fetching ofCCWs, IDAWs, and output data and for the stor
ing of input data associated with STARTI/O and START I/O FAST RELEASE. This
key is matched with a storage key during
these storage references. For details,
see the section "Key-Controlled
Protection" inChapter 3, "Storage."
SuspendControl Bit 4 of the CAW controls execution of the suspend func
tion for the channel program identified
by theCAW. The setting of the
suspend-control bit applies to the channel program specified by the CAW. When
bit 4 is set to one, suspend control is
specified, and channel-program suspen
sion occurs when a validS flag is
detected in aCCW. When bit 4 is set to
zero, suspend control is not specified,
and the presence of theS flag in any CCW of the channel program causes the
program-check condition to be
recognized.
If the suspend-and-resume facility is
not provided for the model, the
suspend-control bit must be zero; other
wise, a program-check condition is
recognized, and theI/O operation is not
initiated at the device. When the
suspend-and-resume facility is provided
for the model but the suspend function
is not available for the addressed
subchannel, bit 4 is ignored, but any
occurrence of anS flag in the channel
program causes a program-check condition
to be recognized.CCW Address: Bits 8-31 designate the
location of the firstCCW in absolute
storage.
Bit positions 5-7 of theCAW must
contain zeros. The three rightmost bits
of theCCW address must be zeros to
specify theCCW on integral boundaries
for doublewords. If either of these
restrictions is violated, anerror condition is recognized during the
execution of STARTI/O or START I/O FAST
RELEASE. If theCCW address specifies a
storage location which is not available
or is protected against fetching, STARTI/O and, in some cases, START I/O FAST
RELEASE, cause anerror condition to be
recognized. When a programming-error
condition is recognized during the
execution of STARTI/O or START I/O FAST
RELEASE, the status portion of theCSW is stored, with the protection-check or
program-check bit set to one. In this
event, theI/O operation is not initi
ated at the device.Chapter 13. Input/Output Operations 13-37
the problem state.
write, read, read backward, control,
sense, and transfer in channel. Each
command except transfer
initiates a corresponding
The term
activity initiated by a command in the
The subchannel is involved with the
execution of the operation from the
initiation of the command until the
channel-end signal is received
the case of command chaining, until the
device-end signal is received. The
operation in the device lasts until
device end is signaled.
Data recorded by an
divided into blocks. The length of a
block depends on the device; for
example, a block can be a card, a line
of printing, or the information recorded
between two consecutive gaps on magnetic
tape.
The maximum amount of information that
can be transferred in one
is one block. An
terminated when the associated storage
area is exhausted or the end of the
block is reached, whichever occurs
first. For some operations, such as
writing on a magnetic-tape unit or at an
inquiry station, blocks are not defined,
and the amount of information trans
ferred is controlled only by the
program.
CHANNEL-ADDRESS
the subchannel key, the suspend-control
bit, and the address of the first
of the
pertinent information thereafter is
stored in the subchannel, and the
program is free to change the contents
of the
channel does not affect the contents of
the location.
The
o 4
The fields in the
the following purposes:
Subchannel Key: Bits
access key for all fetching of
ing of input data associated with START
key is matched with a storage key during
these storage references. For details,
see the section "Key-Controlled
Protection" in
Suspend
tion for the channel program identified
by the
suspend-control bit applies to the chan
bit 4 is set to one, suspend control is
specified, and channel-program suspen
sion occurs when a valid
detected in a
zero, suspend control is not specified,
and the presence of the
program-check condition to be
recognized.
If the suspend-and-resume facility is
not provided for the model, the
suspend-control bit must be zero; other
wise, a program-check condition is
recognized, and the
initiated at the device. When the
suspend-and-resume facility is provided
for the model but the suspend function
is not available for the addressed
subchannel, bit 4 is ignored, but any
occurrence of an
program causes a program-check condition
to be recognized.
location of the first
storage.
Bit positions 5-7 of the
contain zeros. The three rightmost bits
of the
specify the
for doublewords. If either of these
restrictions is violated, an
execution of START
RELEASE. If the
storage location which is not available
or is protected against fetching, START
RELEASE, cause an
recognized. When a programming-error
condition is recognized during the
execution of START
RELEASE, the status portion of the
program-check bit set to one. In this
event, the
ated at the device.