6 2 6 Display and Print Controls

LANSA for i

6.2.6 Display and Print Controls

To display the Work with Display and Print Controls screen, select Administration from the Main System Menu (Advanced), choose Review system settings from the Administration Menu and then select Display and print controls from the Review of System Settings menu.

 

  DC@P8118        Work with Display and Print Controls

 

  Default for enable prompt key on screen commands default . : Y

  LANSA decimal point format   . . . . . . . . . . :   

  Show a leading zero  . . . . . . . . . . . . . . : N

  Popup window to use OS400 window facility  . . . : Y

  Popup window to trim second function key line  . : Y

  Use default STD_HEAD parameters  . . . . . . . . : Y 

 

  Printer form width default . . . . . . . . . . . : 132 

  Printer form length default. . . . . . . . . . . : 066

  Printer overflow line default  . . . . . . . . . : 060

  Vertical bar character . . . . . . . . . . . . . : |

  Horizontal bar character . . . . . . . . . . . . : -

 

  Field label fill character . . . . . . . . . . . : _

  Field column heading underline character . . . . : _

  Hex codes for 132 width workstations . . . . . . : 35 37 3F 45 17 40

                             40 40 40 40 40 40 40 40 40 40 40 40 40 40

  Hex codes for colour workstations  . . . . . . . : 26 33 34 36 45 

                                                      40 40 40 40 40

 

  

  Fnn=Help Fnn=Exit Fnn=Cancel Fnn=Messages Fnn=Change

 

 

 

The Work with Display and Print Controls settings are retrieved from the data areas.

Setting

DC@A01

DC@A07

DC@OSVEROP

Prompt key

477

 

 

Decimal format

494

 

 

Leading zero

 

 

*LEADZERO=1

Popup window

 

 

*V2WINDOWS

Popup trim

 

 

*WINDOWTRIM

Printer width

149-151

 

 

Printer length

412-414

 

 

Printer overflow

415-417

 

 

Default STD_HEAD

421

 

 

Vertical bar character

484

 

 

Horizontal bar character

485

 

 

Field label fill

463

 

 

Field column underline

464

 

 

Hex for 132 widthworkstation

441-460

 

 

Hex for color workstation

465-474

 

 

 

 

Default for enable prompt key on screen commands

Position 477 in data area DC@A01.

If this value is set to "Y", the PROMPT_KEY parameter on DISPLAY, REQUEST and POP_UP RDML commands will be enabled by default. If set to "N" the prompt key is disabled by default. The default may be specifically changed for individual commands in your RDML code.

LANSA decimal point format

Position 494 in data area DC@A01.

This should relate to the IBM i system value QDECFMT. If QDECFMT = " " (blank) then the LANSA decimal format will = "." (full stop). If QDECFMT = "I" or "J" then the LANSA decimal format will = "," (comma).

Values:

   "."- LANSA decimal format is a full stop.

   ","- LANSA decimal format is a comma.

   other - LANSA decimal format is defaulted to a full stop.

Warning: If the value of this field does not relate to the value of QDECFMT then unpredictable results could occur with the use of numeric values.

Show a leading zero

Setting *LEADZERO=1 in data area DC@OSVEROP.

Setting this value to "Y" indicates that Visual LANSA code will display numeric values containing decimals with a leading zero. For example 0.12 or 0,12 depending on the LANSA decimal point format. This option would be suitable when QDECFMT="J".

Popup window to use AS400 window facility

Setting *V2WINDOWS in data area DC@OSVEROP.

Setting this value to "Y" indicates that pop-up windows created by LANSA should use the IBM i windowing facilities. The use of the option is recommended on all IBM i systems.

Popup window to trim second function key line

Setting *WINDOWTRIM in data area DC@OSVEROP.

Setting this value to "Y" indicates that an existing LANSA defined pop-up window has the 2nd function key line trimmed from the display.

Only use this option in conjunction with the *V2WINDOWS option to enable existing functions that have been specifically sized onto line 24 of the display device to recompile without change.

Use default STD_HEAD parameters

Position 421 in data area DC@A01.

This value specifies the system default for the STD_HEAD parameter on screen commands.

STD_HEAD parameter on screen commands specifies whether or not the standard LANSA design for the screen heading lines (lines 1 and 2) should be used.

Printer form width default

Positions 149 - 151 in data area DC@A01.

This value specifies the default printer form width. Typically 132.

Printer form length default

Positions 412 - 414 in data area DC@A01.

This value specifies the default printer form length (RPG limit). Typically 66.

Printer overflow line default

Positions 415 - 417 in data area DC@A01.

This value specifies the default printer form overflow line (RPG limit). Typically 60.

Vertical bar character

Position 484 in data area DC@A01.

This value specifies the vertical bar character to be used on reports such as RDML listings. If this value is left as blank (X'40') it defaults to ":" (X'6A'). This option may not be suitable for some national language sets and should be changed.

Horizontal bar character

Position 485 in data area DC@A01.

Horizontal bar character to be used on reports such as RDML listings. If this value is left as blank (X'40') it defaults to "-" (X'60'). This option may not be suitable for some national language sets and should be changed.

Field label fill character

Position 463 in data area DC@A01.

If specified, this value is used as the fill character for field labels which are automatically created. Field labels are automatically created if a field is created or changed and the Label is left blank.

Note: Recompilation is necessary for changes to this setting to take effect.

Field column heading underline character

Position 464 in data area DC@A01.

If specified, this value is used as the underline character for field column headings which are automatically created. Field column headings are automatically created if a field is created or changed and the Column Headings are left blank.

Note: Recompilation is necessary for changes to this setting to take effect.

Hex code for 132 width workstations

Positions 441 - 460 in data area DC@A01.

These values are shown and may be entered as the hex digits. Eg a value of 40 is the hex for blank. 

This is only used by the report painter to aid the user design report layouts. Refer to the appropriate IBM manual for list of codes.

Hex code for color workstations

Positions 465 - 474 in data area DC@A01.

These values are shown and may be entered as the hex digits. Eg a value of 40 is the hex for blank. 

This is a list of display device codes which are color workstations. This list is used by LANSA at execution time to determine if the workstation being used is capable of displaying information in color. Refer to IBM documentation to determine the codes for workstations.