Toggle Line Wrap/Truncate Mode (QsnTglSclWrp) API


  Required Parameter:

1 Session handle Input Binary(4)

  Omissible Parameter Group:

2 Wrap indication Output Char(1)
3 Error code I/O Char(*)

  Returned Value:

Wrap indication Output Binary(4)

  Default Public Authority: *USE

  Service Program: QSNAPI

  Threadsafe: No

The Toggle Line Wrap/Truncate Mode (QsnTglSclWrp) API toggles the session between line wrap and truncation mode.


Authorities and Locks

None


Required Parameter

Session handle
INPUT; BINARY(4)

A handle for the session to be queried.


Omissible Parameter Group

Wrap indication
OUTPUT; CHAR(1)

Indicates whether line wrap mode is on or off when the QsnTglSclWrp API has completed. The possible values are:

0 Line wrap mode is now off. Lines are truncated.
1 Line wrap mode is now on.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error Code Parameter. If this parameter is omitted, diagnostic and escape messages are issued to the application.


Returned Value

Wrap indication
OUTPUT; BINARY(4)

This API returns the value for the wrap indication parameter if the operation was successful, or -1 otherwise.


Error Messages

Message ID Error Message Text
CPF24B4 E Severe error while addressing parameter list.
CPF3CF1 E Error code parameter not valid.
CPF3CF2 E Error(s) occurred during running of &1 API.
CPFA31E E Required parameter &1 omitted.
CPFA340 E Operation not supported with double-byte data.
CPFA343 E Output operation not done.
CPFA344 E The file &2 in library &3 is not valid.
CPFA345 E The invite active flag is not valid.
CPFA3D6 E Session handle is incorrect.


API introduced: V2R3
Top | Dynamic Screen Manager APIs | APIs by category