and the function is performed over the I/O interface
as an immediate operation (see"Immediate Opera tions" ). If the command code does not specify the
entire control function, the data-address field of the
ccw designates the required additional information for
the operation. This control information may include
an order code further specifying the operation to be
performed or an address, such as the disk address for
the seek function, and is transferred in response to re
quests by the device.
A control command code containing zeros for the
six modifier bits is defined as no operation. The no
operation order causes the addressed device to respond
with channel end and device end without causing any
action at the device. The order can be executed as an
immediate operation, or the device can delay the
status until after the initiation sequence is completed.Other operations that can be initiated by means of the
control command depend on the type ofI/O device.
These operations and their codes are specified in theSRL publication for the device.
A ccw used in a control operation is inspected for
theCD, CC, SLI, and the PCI Rags. The setting of the
skipRag is ignored. Bit positions 0-5 of the ccw con
tain modiB.er bits.
Programming NoteSince a count of zero is invalid, the program cannot
use the ccw count field to specify that no data be trans
ferred to theI/O device. Any operation terminated
before data have been transferred causes the incorrcct
length indication, provided the operation is not im
mediate and has not been rejected during the initia
tion sequence. The incorrect-length indication is sup
pressed when theSLI Rag is on.
Sense
A sense operation is initiated at theI/O device, and
the subchannel is set up to transfer data from the de
vice to main storage. The data are placed in storage
in an ascending order of addresses, starting with the
address specified in the ccw.
Data transferred during a sense operation provide
information concerning both unusual conditions de
tected in the last operation and the status of the de
vice. The status information provided by the sense
command is more detailed than that supplied by the
unit-status byte and may describe reasons for the unit
check indication. It may also indicate, for example, if
the device is in the not-ready state, if the tape unit is
in the file-protected state, or if magnetic tape is posi
tioned beyond the end-of-tape mark.
For most devices, the first six bits of the sense data
describe conditions detected during the last opera-
102
tion. These bits are common to all devices having this
type of information and are designated as follows:
BIT DESIGNATION
o Command reject
1 Intervention required
2 Bus-out check
3 Equipment check
4 Data check
5Overrun The following is the meaning of the first six bits:
Command Reject: The device has detected a gramming error. A command has been received which
the device is not designed to execute, such as read is
sued to a printer, or which the device cannot execute
bccause of its present state, such as backspace issued
to a tape unit with the tape at load point.
Intervention Required: The last operation could not
be executed because of a condition requiring some
type of intervention at the device. This bit indicates
conditions such as an empty hopper in a card punch
or the printer being out of paper. It is also turned on
when the addressed device is in the not-ready state, is
in test mode, or is not provided on the control unit.
Bus-Out Check: The device or the control unit has
received a data byte or a command code with an in
valid parity over theI/O interface. During writing,
bus-out check indicates that incorrect data have been
recorded at the device, but the condition does not
cause the operation to be terminated prematurely.
Errors on command codes and control information
cause the operation to be immediately terminated.
Equipment Check: During the last operation, the
device or the control unit has detected equipment mal
functioning, such as an invalid card hole count or
printer buffer parity error.
Data Check: The device or the control unit has de
tected a data error other than those included in bus
out check. Data check identifies errors associated with
thc recording medium and includes conditions such as
reading an invalid card code or detecting invalid par
it yon data recorded on magnetic tape.On an input operation, data check indicates that
incorrect data may have been placed in main storage.
The control unit forces correct parity on data sent to
the channel.On writing, this condition indicates that
incorrect data may have been recorded at the device.
Data errors on reading and writing do not cause the
operation to be terminated prematurely.
Overrun: The channel has failed to respond on time
to a request for service from the device. Overrun can
occur when data are transferred to or from a non
buffered control unit operating with a synchronous
medium, and the total activity initiated by the program
exceeds the capability of the channel. When the chan-
as an immediate operation (see
entire control function, the data-address field of the
ccw designates the required additional information for
the operation. This control information may include
an order code further specifying the operation to be
performed or an address, such as the disk address for
the seek function, and is transferred in response to re
quests by the device.
A control command code containing zeros for the
six modifier bits is defined as no operation. The no
operation order causes the addressed device to respond
with channel end and device end without causing any
action at the device. The order can be executed as an
immediate operation, or the device can delay the
status until after the initiation sequence is completed.
control command depend on the type of
These operations and their codes are specified in the
A ccw used in a control operation is inspected for
the
skip
tain modiB.er bits.
Programming Note
use the ccw count field to specify that no data be trans
ferred to the
before data have been transferred causes the incorrcct
length indication, provided the operation is not im
mediate and has not been rejected during the initia
tion sequence. The incorrect-length indication is sup
pressed when the
Sense
A sense operation is initiated at the
the subchannel is set up to transfer data from the de
vice to main storage. The data are placed in storage
in an ascending order of addresses, starting with the
address specified in the ccw.
Data transferred during a sense operation provide
information concerning both unusual conditions de
tected in the last operation and the status of the de
vice. The status information provided by the sense
command is more detailed than that supplied by the
unit-status byte and may describe reasons for the unit
check indication. It may also indicate, for example, if
the device is in the not-ready state, if the tape unit is
in the file-protected state, or if magnetic tape is posi
tioned beyond the end-of-tape mark.
For most devices, the first six bits of the sense data
describe conditions detected during the last opera-
102
tion. These bits are common to all devices having this
type of information and are designated as follows:
BIT DESIGNATION
o Command reject
1 Intervention required
2 Bus-out check
3 Equipment check
4 Data check
5
Command Reject: The device has detected a
the device is not designed to execute, such as read is
sued to a printer, or which the device cannot execute
bccause of its present state, such as backspace issued
to a tape unit with the tape at load point.
Intervention Required: The last operation could not
be executed because of a condition requiring some
type of intervention at the device. This bit indicates
conditions such as an empty hopper in a card punch
or the printer being out of paper. It is also turned on
when the addressed device is in the not-ready state, is
in test mode, or is not provided on the control unit.
Bus-Out Check: The device or the control unit has
received a data byte or a command code with an in
valid parity over the
bus-out check indicates that incorrect data have been
recorded at the device, but the condition does not
cause the operation to be terminated prematurely.
Errors on command codes and control information
cause the operation to be immediately terminated.
Equipment Check: During the last operation, the
device or the control unit has detected equipment mal
functioning, such as an invalid card hole count or
printer buffer parity error.
Data Check: The device or the control unit has de
tected a data error other than those included in bus
out check. Data check identifies errors associated with
thc recording medium and includes conditions such as
reading an invalid card code or detecting invalid par
it yon data recorded on magnetic tape.
incorrect data may have been placed in main storage.
The control unit forces correct parity on data sent to
the channel.
incorrect data may have been recorded at the device.
Data errors on reading and writing do not cause the
operation to be terminated prematurely.
Overrun: The channel has failed to respond on time
to a request for service from the device. Overrun can
occur when data are transferred to or from a non
buffered control unit operating with a synchronous
medium, and the total activity initiated by the program
exceeds the capability of the channel. When the chan-