

Data Manipulation Language Statements › #LINEIN—requests a synchronous transfer of data › #LINEIN Example
#LINEIN Example
The example of the #LINEIN statement shown below performs the following functions:
- Uses the default storage area, SYSPLIST, to build the line request block
- Specifies that the data is to be read into an input storage area located at the address contained in register 5
- Specifies that register 6 contains the length of the data area, defined by the INAREA parameter, that is reserved for the input data stream
- Uses the default register 0 to receive the actual length of the input data stream from the system
- Specifies the conditional return of control if either the input data stream is truncated due to insufficient storage in the specified INAREA or the I/O session is terminated by the terminal operator
- Specifies the two routines to receive control in the event of a TRUN or CANC condition
#LINEIN INAREA=(R5),MAXIN=(R6),COND=(TRUN,CANC),TRUNXIT=TRUNRTN, _
CANCXIT=OPERTER
Copyright © 2014 CA.
All rights reserved.
 
|
|