SNAX/APN Application Programming Manual
The CRT Interface
SNAX/APN Application Programming Manual—420111-001
2-15
Waiting for LU to Start (CONTROL Operation 11)
sending and receiving 3270 data streams. Thus, you must reissue the SETMODE
procedure call if the file is closed and then reopened.
If an application closes and then later reopens, the CDI option reverts to the value
configured through SCF or SPI, or (if no option is configured) the normal CDI mode.
SETMODE function 163 has the following syntax:
param1
0 Enables normal CDI mode. This is the default value if SCF or SPI is not used
to specify another CDI option.
1 Enables enhanced CDI mode.
2 Enables special CDI mode. Using the WRITEREAD procedure call causes the
outbound data buffer to be sent with CDI enabled. The buffer then waits for
data to be returned.
Specifying a value other than 0, 1, or 2 results in file-system error 590 (invalid
parameter value).
last-params
allows you to view the most recent option setting. Because the option can also be
set using SCF or SPI, the returned value indicates the setting before this call takes
effect.
Waiting for LU to Start (CONTROL Operation 11)
CONTROL operation 11 ensures that the LU is started. After you issue a CONTROL
operation 11, the operation is not completed until the LU is started. The syntax of the
procedure call is as follows:
CALL SETMODE ( filenum , 163 , [ param1 ] , ,
[ last-params ] ) ;
CALL CONTROL ( filenum , 11 , 0 ) ;