Previous Topic: #LINEIN ParametersNext Topic: #LINEIN Example


#LINEIN Status Codes

By default, the #LINEIN request is unconditional; any runtime error will result in an abend of the issuing task. The issuing program can request return of control with the COND parameter to avoid an abend.

After completion of the #LINEIN, the value in register 15 indicates the outcome of the operation.

Register 15 Value

Meaning

X'00'

The request has been serviced successfully.

X'04'

The input area specified for the return of data to the issuing program is too small; the returned data has been truncated to fit available space.

X'08'

The line I/O session has been canceled; the terminal operator has pressed CLEAR (3270), ATTENTION (2741), or BREAK (teletype).

X'0C'

A logical or permanent I/O error has been encountered in the input data stream.

X'10'

The line request block (LRB) contains an invalid field, indicating a possible error in the program parameters.

Upon successful completion of a #LINEIN request, register 1 and a user-defined register will contain the following information: