Command reference / file
CHGDSPF
Change Display File
Changes attributes of display device files without recreating them from DDS: devices, maximum devices, record format level check, text, enhanced display, restore display, defer write, character identifier, decimal format, SFLEND text, DBCS options, wait times, data queue and shared open. Only the parameters given change.
Allowed environments: *ALL.
Positional parameters: 2.
Parameters
FILE
File
Specifies the display device file to change: a name, a generic name, *ALL, or a library special value.
Qualified parts (object, then library; write LIBRARY/OBJECT)
File
File
Suggested / special values:
*ALL
Library
Library
Suggested / special values:
*LIBL, *CURLIB, *ALL, *ALLUSR, *USRLIBL
DEV
Display device
Specifies up to 50 display device names used with the file; *REQUESTER is the device from which the program is called and *NONE leaves the device to a later CHGDSPF/OVRDSPF or the program.
Suggested / special values:
*SAME, *NONE
Elements in order
Display device
Display device
Suggested / special values:
*REQUESTER
MAXDEV
Maximum devices
Specifies the maximum number of display devices that can be connected to the file at the same time (1 to 256).
Suggested / special values:
*SAME
LVLCHK
Record format level check
Specifies whether record format level identifiers are checked when a program opens the file.
Allowed values:
*SAME, *YES, *NO
TEXT
Text 'description'
Specifies the text that briefly describes the file; *BLANK removes it.
Suggested / special values:
*SAME, *BLANK
ENHDSP
Enhanced display
Specifies whether the file uses enhanced display capabilities such as mnemonics and graphical window borders.
Allowed values:
*SAME, *YES, *NO
RSTDSP
Restore display
Specifies whether the data shown by the file is saved when the file is suspended and restored when it is used again.
Allowed values:
*SAME, *NO, *YES
DFRWRT
Defer write
Specifies whether writing data is delayed until it can be shown with other data when a read request is made.
Allowed values:
*SAME, *YES, *NO
CHRID
Character identifier
Specifies the character conversion used for fields with the CHRID DDS keyword: a special value or a graphic character set and code page.
Suggested / special values:
*SAME, *DEVD, *SYSVAL, *JOBCCSID, *CHRIDCTL
Elements in order
Graphic character set
Graphic character set
Code page
Code page
DECFMT
Decimal format
Specifies which decimal format value is used when editing numeric fields with EDTCDE.
Allowed values:
*SAME, *FILE, *JOB
SFLENDTXT
SFLEND text
Specifies where the 'More...' and 'Bottom' subfile text comes from: the file or the active language messages.
Allowed values:
*SAME, *FILE, *MSG
IGCDTA
User specified DBCS data
Specifies whether the file processes double-byte character set (DBCS) data.
Allowed values:
*SAME, *NO, *YES
IGCEXNCHR
DBCS extension characters
Specifies whether DBCS extension characters are processed.
Allowed values:
*SAME, *YES, *NO
WAITFILE
Maximum file wait time
Specifies the number of seconds the program waits for the file to be allocated, or *CLS / *IMMED.
Suggested / special values:
*SAME, *CLS, *IMMED
WAITRCD
Maximum record wait time
Specifies the number of seconds the program waits for a record, or *IMMED / *NOMAX.
Suggested / special values:
*SAME, *IMMED, *NOMAX
DTAQ
Data queue
Specifies the data queue that receives the data availability notifications for the display file; *NONE removes it.
Suggested / special values:
*SAME, *NONE
Qualified parts (object, then library; write LIBRARY/OBJECT)
Data queue
Data queue
Library
Library
Suggested / special values:
*LIBL, *CURLIB
SHARE
Share open data path
Specifies whether the open data path is shared with other programs in the job.
Allowed values:
*SAME, *NO, *YES
Examples
CHGDSPF FILE(MYLIB/ORDERDSP) DFRWRT(*NO) RSTDSP(*YES)
Changes the defer write and restore display attributes of a display file.
Generated from os/cl/catalog/CHGDSPF.json and os/cl/help/CHGDSPF.json.