Flags in Current Action in Channel upon Exhaustion of Count or Receipt of Channel End CCW CD CC SLI 0 0 0 0 0 1 0 0 I mmediate Operation
End, -
End, -Stop,IL Stop, - Stop,IL Regular Operation
End, -
End,-II III End,IL End, - End,IL 0 Chain command Chain command Chain command Chain command Chain command Chain command 0 0 0 0 End, -
End, -
End, -
End, -Chain data Chain data Chain data Chain data Count exhausted, end of block at device not reached. II Count exhausted and channel end from device. III Count not exhausted and channel end from device.
End The operation is terminated.If the operation is immediate
andhas been specified by the first CCW associated with a
START1/0, a condition code 1 is set, and the status
portion of theCSW is stored as part of the execution of the
START1/0. In all other cases an interruption condition
is generated in the subchannel.Stop The device is signaled to terminate data transfer, but the subchannel remains in the working state until channel end
is rec:eived; at this time an interruption condition isgenerated in the subchannel. I L Incorrect length is indicated with the interruption condition.
Channel Chaining Action
address referring to a nonexistent or protected area
causes an error indication only after theI/O device
has attempted to transfer data to or from the invalid
location.
Data chaining during an input operation causes
the new CCW to be fetched when all data designat
ed by the current CCW has been placed in main
storage.On an output operation, the channel may
fetch the new CCW from main storage ahead of the
time data chaining occurs. Any programming errors
in the prefetched CCW, however, do not affect the
execution of the operation until all data designated
by the current CCW has been transferred to theI/O device. If the device concludes the operation before
all data de;signated by the current CCW has been
transferred, the conditions associated with the pre
fetchedCCW are not indicated to the program. Only one CCW describing a data area may be
prefetched and buffered in the channel. If the pre
fetchedCCW specifies transfer in channel, only one
moreCC\V is fetched before the exhaustion of the
currentCCW. 214 System/370 Principles of Operation End,IL End,IL End,IL End,IL I ncorrect length is not indicated. Chain The channel performs command chaining upon
command receipt of device end.Chain data The channel immediately fetches a new CCW for
the same operation.
The situation where the count is zero but data
chaining is indicated at the time the device
provides channel end cannotvalidly occur. When
data chaining is indicated, the channel fetches the
newCCW after transferring the last byte of data
designated by the currentCCW but before the
device provides the next request for data or status
transfer. As aresult, the channel recognizes the
channel end from the device only after it has
fetched the newCCW, which cannot contain a
count of zero unless a programming error has been
made.PTogranrumdng Data chaining may be used to rearrange information
as it is transferred between main storage and anI/O device. Data chaining permits blocks of information
to be transferred to or from noncontiguous areas of
storage, and, when used in conjunction with the
skipping function, data chaining enables the program
to place in main storage selected portions of a block
of data.
When, during an input operation, the program
specifies data chaining to a location into which data
has been placed under the control of the current
CCW, the channel, in fetching the next CCW, fetch
es the new contents of the location. This is true even
if the location contains the last byte transferred un
der the control of the current CCW. When a channel
program data-chains to a CCW placed in storage by
the CCW specifying data chaining, the input block is
said to be self -describing. A self -describing block
contains one or more CCWs that specify storage
locations and counts for subsequent data in the same
input block.
The use of self -describing blocks is equivalent to
the use of unchecked data. AnI/O data-transfer
End, -
End, -
End, -
End,-
End, -
End, -
End, -
End The operation is terminated.
and
START
portion of the
START
is generated in the subchannel.
is rec:eived; at this time an interruption condition is
Channel Chaining Action
address referring to a nonexistent or protected area
causes an error indication only after the
has attempted to transfer data to or from the invalid
location.
Data chaining during an input operation causes
the new CCW to be fetched when all data designat
ed by the current CCW has been placed in main
storage.
fetch the new CCW from main storage ahead of the
time data chaining occurs. Any programming errors
in the prefetched CCW, however, do not affect the
execution of the operation until all data designated
by the current CCW has been transferred to the
all data de;signated by the current CCW has been
transferred, the conditions associated with the pre
fetched
prefetched and buffered in the channel. If the pre
fetched
more
current
command receipt of device end.
the same operation.
The situation where the count is zero but data
chaining is indicated at the time the device
provides channel end cannot
data chaining is indicated, the channel fetches the
new
designated by the current
device provides the next request for data or status
transfer. As a
channel end from the device only after it has
fetched the new
count of zero unless a programming error has been
made.
as it is transferred between main storage and an
to be transferred to or from noncontiguous areas of
storage, and, when used in conjunction with the
skipping function, data chaining enables the program
to place in main storage selected portions of a block
of data.
When, during an input operation, the program
specifies data chaining to a location into which data
has been placed under the control of the current
CCW, the channel, in fetching the next CCW, fetch
es the new contents of the location. This is true even
if the location contains the last byte transferred un
der the control of the current CCW. When a channel
program data-chains to a CCW placed in storage by
the CCW specifying data chaining, the input block is
said to be self -describing. A self -describing block
contains one or more CCWs that specify storage
locations and counts for subsequent data in the same
input block.
The use of self -describing blocks is equivalent to
the use of unchecked data. An