Exchange/SNA Manual

SETMODE Procedure
Exchange/SNA System Procedure Calls
104700 Tandem Computers Incorporated 5–19
Considerations The SETMODE procedure sets parameters for send and receive operations. The
function to be performed is determined by the value you specify in
function
.
The SETMODE procedure always operates as a wait I/O operation, even if you
opened the line server for nowait I/O. If you want to perform a nowait SETMODE
operation, you must use the SETMODENOWAIT procedure. In this case, you must
complete the operation with a call to AWAITIO. The functions and parameters for
SETMODENOWAIT are identical to those described here. For more information on
SETMODENOWAIT, see the Guardian Procedure Calls Reference Manual.
SETMODE Function 42
This function specifies the parameters that control a subsequent send operation (calls
to WRITE or WRITEREAD). You call SETMODE function 42 to set explicitly the
parameters that control a send operation. You must call SETMODE function 42 before
the first record is sent. After you have started a send operation (written the first record
with a call to WRITE or WRITEREAD), you cannot change the parameters for that
send operation. To change the parameters for a send operation, you must end the
send operation by sending an end-of-file message to the host (by calling CONTROL
operation 2), set the new parameter values, and then start a new send operation. The
section below lists the parameters you can set.
param1
.<13:14>
specifies the type of data compression to perform, if any. This parameter can have
the following values:
0 COMPRESS ALL
The following types of data compression are performed:
Trailing blanks are truncated.
Three to sixty-three consecutive nonblank characters are compressed to
two characters, a string control byte (SCB) character followed by the
nonblank character that was compressed.
Two to sixty-three consecutive blanks other than trailing blanks are
compressed to a single string control byte.
1 COMPRESS BLANKS
Trailing blanks are truncated, and two to sixty-three consecutive blanks other
than trailing blanks are compressed to a single string control byte.
2 COMPRESS TRAILING
Trailing blanks are truncated.
3 COMPRESS NONE
No data compression is performed. If you specify TRANSLATE OFF
(
param1
.<15>=1), you must specify COMPRESS NONE.