Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change Display File (CHGDSPF) command changes the attributes of the specified display device file.
Only the information specified in this command can be changed. If the data description specifications (DDS) used to create the file are changed, the display device file must be created again for the changes to be made in the file.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FILE | File | Qualified object name | Required, Key, Positional 1 |
Qualifier 1: File | Generic name, name, *ALL | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB, *ALL, *ALLUSR, *USRLIBL | ||
DEV | Display device | Single values: *SAME, *NONE Other values (up to 50 repetitions): Name, *REQUESTER |
Optional, Positional 2 |
MAXDEV | Maximum devices | 1-256, *SAME | Optional |
LVLCHK | Record format level check | *SAME, *YES, *NO | Optional |
TEXT | Text 'description' | Character value, *SAME, *BLANK | Optional |
ENHDSP | Enhanced display | *SAME, *YES, *NO | Optional |
RSTDSP | Restore display | *SAME, *NO, *YES | Optional |
DFRWRT | Defer write | *SAME, *YES, *NO | Optional |
CHRID | Character identifier | Single values: *SAME, *DEVD, *SYSVAL, *JOBCCSID, *CHRIDCTL Other values: Element list |
Optional |
Element 1: Graphic character set | Integer | ||
Element 2: Code page | Integer | ||
DECFMT | Decimal format | *SAME, *FILE, *JOB | Optional |
SFLENDTXT | SFLEND text | *SAME, *FILE, *MSG | Optional |
IGCDTA | User specified DBCS data | *SAME, *NO, *YES | Optional |
IGCEXNCHR | DBCS extension characters | *SAME, *YES, *NO | Optional |
WAITFILE | Maximum file wait time | Integer, *SAME, *CLS, *IMMED | Optional |
WAITRCD | Maximum record wait time | Integer, *SAME, *IMMED, *NOMAX | Optional |
DTAQ | Data queue | Single values: *SAME, *NONE Other values: Qualified object name |
Optional |
Qualifier 1: Data queue | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
SHARE | Share open data path | *SAME, *NO, *YES | Optional |
Top |
Specifies the display device file to be changed.
This is a required parameter.
Qualifier 1: File
Qualifier 2: Library
#CGULIB #DSULIB #SEULIB #COBLIB #RPGLIB #DFULIB #SDALIB
Although the following Qxxx libraries are provided by IBM, they typically contain user data that changes frequently. Therefore, these libraries are considered user libraries and are also searched:
QDSNX QRCLxxxxx QUSRIJS QUSRVxRxMx QGPL QSRVAGT QUSRINFSKR QGPL38 QSYS2 QUSRNOTES QMGTC QSYS2xxxxx QUSROND QMGTC2 QS36F QUSRPOSGS QMPGDATA QUSER38 QUSRPOSSA QMQMDATA QUSRADSM QUSRPYMSVR QMQMPROC QUSRBRM QUSRRDARS QPFRDATA QUSRDIRCL QUSRSYS QRCL QUSRDIRDB QUSRVI
Top |
Specifies the names of one or more display devices that are used with this display device file to pass data records between the users of the display devices and their jobs. The device name specified in the display device file supplied by IBM is *REQUESTER.
Single values
Other values (up to 50 repetitions)
Top |
Specifies the maximum number of display devices that can be connected to the display device file at the same time while the file is open. However, if a CL program is written to get access to more than one work station through the same file (through a single running of the program), this parameter must specify a value greater than 1.
The names of the devices are specified in the DEV parameter of this command, in a later CHGDSPF or OVRDSPF command, or in the HLL program that opens the file.
Top |
Specifies whether the level identifiers of the record formats in this device file are checked when the file is opened by a program. If so, the record format identifiers in the program must match those in the device file. Because the same record format name can exist in more than one file, each record format is given an internal system identifier when it is created.
Top |
Specifies the text that briefly describes the object.
Top |
Specifies whether the data being shown at a display station by this display file is using the enhanced capabilities available on the display station.
Top |
Specifies whether data being shown at a display device by this display file is saved at the time the file is suspended (made temporarily inactive) so that a different display file can be used to show different data on the same device. If the data for this file is saved, it is restored to the display of the device when the file is used again.
Top |
Specifies that the writing of data is delayed until it can be shown with other data when a read request is made. Control is returned to the program immediately after the data is received. This may result in improved performance.
Top |
Specifies the type of character conversions that may occur for the display file. When necessary, the system converts character data sent to and received from the device. This ensures that the correct hexadecimal byte values of characters are sent to the device and are returned to the application program.
Single values
Note: The *JOBCCSID special value, either specified directly on the CHRID command parameter or on the CHRIDCTL job attribute when the *CHRIDCTL special value is specified for the CHRID command parameter, is not allowed if the file was created on a system at an earlier release level than V2R3M0. A file created prior to V2R3M0 will not be tagged with a CCSID and can not be used in combination with the *JOBCCSID support.
Element 1: Graphic character set
Element 2: Code page
Note: The graphic character set and code page specifies the value used to represent the CCSID of the field data for every named field with the CHRID DDS keyword. Conversion will only occur for these specific fields when CCSID of the field data is different than the CHRID of the device.
Top |
Specifies which decimal format value is used when editing numeric fields with the EDTCDE DDS keyword. The decimal format value determines the use of commas and periods for the decimal position and three digit positional separators on edited fields.
Top |
Specifies where the 'More...' and 'Bottom' text is retrieved from when displaying a subfile. The 'More...' and 'Bottom' text is displayed in a subfile when the SFLEND(*MORE) DDS keyword is specified on the subfile control record.
Top |
Specifies, for program-described files, whether the file processes double-byte character set (DBCS) data. Specifies, for externally described files, the DBCS attributes of the file.
For program-described files
For externally-described files
Top |
Specifies whether the system processes double-byte character set (DBCS) extended characters. When processing DBCS extended characters, the device requires the assistance of the system. The system must tell the device what the character looks like before the device can display or print the character. Extended characters are stored in a DBCS font table, not in the DBCS device. Extended character processing is a function of the operating system that is required to make characters stored in a DBCS font table available to a DBCS device.
Top |
Specifies the number of seconds that the program waits for the file resources to be allocated when the file is opened. If the file resources cannot be allocated within the specified wait time, an error message is sent to the program.
Top |
Specifies the number of seconds the program waits for the completion of a read-from-invited-devices operation to a multiple device file in a high-level language program. Refer to the high-level language reference manual to determine when a file is treated as a multiple device file. The program performing the read operation waits for the input form all invited devices currently accessing the file. If a record is not returned from any of the invited program devices in the specified amount of time, a notify message is sent to the program. This parameter has no effect on an input operation directed to a single device.
Top |
Specifies the data queue on which entries are placed. The specified data queue must have a minimum length of 80 characters. The data queue need not exist when the display file is created since the name specified for this parameter is not evaluated until the file is used.
Note: Keyed data queues are not supported for this parameter. If a keyed data queue is specified, a run-time error will occur; but because it is not required that a data queue exist at the time the command is issued, the error will not be flagged.
Single values
Qualifier 1: Data queue
Qualifier 2: Library
Top |
Specifies whether the open data path (ODP) is shared with other programs in the same routing step. When an ODP is shared, the programs accessing the file share facilities such as the file status and the buffer.
Top |
Example 1: Specifying Multiple Display Devices
CHGDSPF FILE(ORDENT) DEV(WS1 WS2 WS3) MAXDEV(3)
This command changes the description of the display device file named ORDENT. The file is located through the library list. The devices used with this file are the work stations WS1, WS2, and WS3. All three of the devices can be used at the same time with this display file.
Example 2: Delaying Writing of Data
CHGDSPF FILE(ACCREC/*ALL) DFRWRT(*YES)
This command changes the description of all display files in library ACCREC to delay writing data until a read request is made.
Example 3: Specifying DBCS Data Processing
CHGDSPF FILE(IGCLIB/IGCDSP) IGCDTA(*YES)
This command changes the display device file IGCDSP, which is stored in the library IGCLIB, so that it processes double-byte character set data.
Top |
*ESCAPE Messages
Top |