LS - Line Size

This Natural profile and session parameter specifies the maximum number of characters permitted per line for DISPLAY, INPUT and WRITE statements.

The following topics are covered below:


Profile Parameter LS

When used as a profile parameter, LS is honored in batch mode only and defines the physical line size. In online mode, the line size is always set to the physical screen width.

Possible settings 35 - 250 Maximum number of characters permitted per line.
0 Use physical line size (mostly 132).
Default setting 0  
Dynamic specification yes  

Session Parameter LS

Possible settings 2 - 250 Maximum number of characters permitted per line.
0 Only permitted with the statement SET GLOBALS or with the system command GLOBALS. The value 0 will be replaced by the physical line size.
Default setting Physical line size.  
Applicable command GLOBALS  
Applicable statements

FORMAT
SET GLOBALS

 
Application programming interface USR1005N See SYSEXT - Natural Application Programming Interfaces in the Utilities documentation.

Notes:

  1. At logon to a library, LS is reset to the physical line size.
  2. Under Natural Security, the setting of this parameter can be overridden by the Session Parameters option of the Library Profile.

Specification with Statements

When specified with a statement, the LS parameter is evaluated at compilation time.

Applicable statements

DISPLAY
INPUT
WRITE

Parameter may be specified at statement level.