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.

Type
*QUAL
Required
Yes
Case
Uppercase
Qualified parts (object, then library; write LIBRARY/OBJECT)

File File

Type
*GENERIC
Required
No
Length
10
Case
Uppercase

Suggested / special values: *ALL

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

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.

Type
*ELEM
Required
No
Default
*SAME
List limit
50
Case
Uppercase

Suggested / special values: *SAME, *NONE

Elements in order

Display device Display device

Type
*NAME
Required
No
Length
10
Case
Uppercase

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).

Type
*CHAR
Required
No
Default
*SAME
Length
4
Range
1 to 256
Case
Uppercase

Suggested / special values: *SAME

LVLCHK Record format level check

Specifies whether record format level identifiers are checked when a program opens the file.

Type
*CHAR
Required
No
Default
*SAME
Length
4
Case
Uppercase

Allowed values: *SAME, *YES, *NO

TEXT Text 'description'

Specifies the text that briefly describes the file; *BLANK removes it.

Type
*CHAR
Required
No
Default
*SAME
Length
50
Case
Uppercase

Suggested / special values: *SAME, *BLANK

ENHDSP Enhanced display

Specifies whether the file uses enhanced display capabilities such as mnemonics and graphical window borders.

Type
*CHAR
Required
No
Default
*SAME
Length
4
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*SAME
Length
4
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*SAME
Length
4
Case
Uppercase

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.

Type
*ELEM
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *DEVD, *SYSVAL, *JOBCCSID, *CHRIDCTL

Elements in order

Graphic character set Graphic character set

Type
*INT2
Required
No
Range
1 to 32767
Case
Uppercase

Code page Code page

Type
*INT2
Required
No
Range
1 to 32767
Case
Uppercase

DECFMT Decimal format

Specifies which decimal format value is used when editing numeric fields with EDTCDE.

Type
*CHAR
Required
No
Default
*SAME
Length
5
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*SAME
Length
5
Case
Uppercase

Allowed values: *SAME, *FILE, *MSG

IGCDTA User specified DBCS data

Specifies whether the file processes double-byte character set (DBCS) data.

Type
*CHAR
Required
No
Default
*SAME
Length
4
Case
Uppercase

Allowed values: *SAME, *NO, *YES

IGCEXNCHR DBCS extension characters

Specifies whether DBCS extension characters are processed.

Type
*CHAR
Required
No
Default
*SAME
Length
4
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*SAME
Length
6
Range
1 to 32767
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*SAME
Length
6
Range
1 to 32767
Case
Uppercase

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.

Type
*QUAL
Required
No
Default
*SAME
Case
Uppercase

Suggested / special values: *SAME, *NONE

Qualified parts (object, then library; write LIBRARY/OBJECT)

Data queue Data queue

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

SHARE Share open data path

Specifies whether the open data path is shared with other programs in the job.

Type
*CHAR
Required
No
Default
*SAME
Length
4
Case
Uppercase

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.

IBM command documentation

Generated from os/cl/catalog/CHGDSPF.json and os/cl/help/CHGDSPF.json.