Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Create Display File (CRTDSPF) command creates a display device file. The device file contains the file description, which identifies the device used and, optionally, the record formats used by the device (if specified in data description specifications (DDS)); the device file does not contain data. The display device file sends records to one or more display devices associated with the device file, and to receive records from the display devices.
The display file description contains of information that is specified in two places: (1) in the source file that contains the DDS (if used); and (2) in the CRTDSPF command. The DDS contains the specifications for each record format in the device file and for the fields in each record format.
The Change Display File (CHGDSPF) or Override Display File (OVRDSPF) command is used in a program to change or override the parameter values specified in the display file description; the override command must be run before the display file is opened by the program. Overridden values are changed only for the running of the program; once the program ends, the original parameter values specified for the display file are used.
Note: If an application program attempts to acquire a work station on a switched line and the line connection has been lost or has never been established, the application program waits indefinitely until the connection is established.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FILE | File | Qualified object name | Required, Positional 1 |
Qualifier 1: File | Name | ||
Qualifier 2: Library | Name, *CURLIB | ||
SRCFILE | Source file | Single values: *NONE Other values: Qualified object name |
Optional, Positional 2 |
Qualifier 1: Source file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
SRCMBR | Source member | Name, *FILE | Optional, Positional 3 |
GENLVL | Generation severity level | 0-30, 20 | Optional |
FLAG | Flagging severity level | 0-30, 0 | Optional |
DEV | Display device | Single values: *NONE Other values (up to 50 repetitions): Name, *REQUESTER |
Optional |
IGCDTA | User specified DBCS data | *NO, *YES | Optional |
IGCEXNCHR | DBCS extension characters | *YES, *NO | Optional |
TEXT | Text 'description' | Character value, *SRCMBRTXT, *BLANK | Optional |
OPTION | Source listing options | Values (up to 4 repetitions): *SRC, *NOSRC, *SOURCE, *NOSOURCE, *LIST, *NOLIST, *SECLVL, *NOSECLVL, *EVENTF, *NOEVENTF | Optional, Positional 4 |
MAXDEV | Maximum devices | 1-256, 1 | Optional |
ENHDSP | Enhanced display | *YES, *NO | Optional |
RSTDSP | Restore display | *NO, *YES | Optional |
DFRWRT | Defer write | *YES, *NO | Optional |
CHRID | Character identifier | Single values: *DEVD, *SYSVAL, *JOBCCSID, *CHRIDCTL Other values: Element list |
Optional |
Element 1: Graphic character set | Integer | ||
Element 2: Code page | Integer | ||
DECFMT | Decimal format | *FILE, *JOB | Optional |
SFLENDTXT | SFLEND text | *FILE, *MSG | Optional |
WAITFILE | Maximum file wait time | Integer, *IMMED, *CLS | Optional |
WAITRCD | Maximum record wait time | Integer, *NOMAX, *IMMED | Optional |
DTAQ | Data queue | Single values: *NONE Other values: Qualified object name |
Optional |
Qualifier 1: Data queue | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
SHARE | Share open data path | *NO, *YES | Optional |
SRTSEQ | Sort sequence | Single values: *JOB, *LANGIDSHR, *LANGIDUNQ, *HEX Other values: Qualified object name |
Optional |
Qualifier 1: Sort sequence | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
LANGID | Language ID | Character value, *JOB | Optional |
LVLCHK | Record format level check | *YES, *NO | Optional |
AUT | Authority | Name, *LIBCRTAUT, *ALL, *CHANGE, *EXCLUDE, *USE | Optional |
REPLACE | Replace file | *YES, *NO | Optional |
Top |
Specifies the display device file to be created.
If the display device file is used in a high-level language program, the file name should be consistent with the naming rules of that language. Otherwise, the file must be renamed in the program.
This is a required parameter.
Qualifier 1: File
Qualifier 2: Library
Top |
Specifies the source file (if specified) containing the data description specifications (DDS) source used to create the display device file.
Single values
Qualifier 1: Source file
Qualifier 2: Library
Top |
Specifies the source file member that contains the DDS source for the display device file being created.
Top |
Specifies the severity level of data description specifications (DDS) messages that cause file creation to fail. This parameter applies only to messages created while processing DDS source files.
Top |
Specifies the minimum severity level of messages to be listed.
Top |
Specifies the names of one or more display devices that are used with this display file to pass data records between the users of the display devices and their jobs.
Single values
Other values (up to 50 repetitions)
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 text that briefly describes the object.
Top |
Specifies the type of output produced when the file is created. A maximum of four of the following values can be specified in any order on this parameter. If neither or both of the values on an option are specified, the first value listed for the option is used.
Note: The first values on each option are similar to, but are not actually default values, and therefore, cannot be changed with the CHGCMDDFT (Change Command Default) command.
Source Listing Option
Program Listing Option
Second-Level Message Text Option
Event File Creation Option
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.
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 another display file can 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 is written out with other data when a read request is made. Control is returned to the program immediately after the data is received.
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 the number of seconds that the program waits for the file resources to be allocated when the file is opened, or the device or session resources to be allocated when an acquire operation is performed to the file. If the file resources cannot be allocated in 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 |
Specifies the sort sequence used for this user profile. The sort sequence is used in conjunction with the LANGID parameter to determine which sort sequence table is used.
Single values
Qualifier 1: Sort sequence
Qualifier 2: Library
Top |
Specifies the language identifier used when *LANGIDSHR or *LANGIDUNQ is specified for the Sort sequence (SRTSEQ) parameter. The language identifier is used with the SRTSEQ parameter to determine which sort sequence table the file uses.
Top |
Specifies whether the level identifiers of the record formats in the display device file are checked when the file is opened by a program.
Top |
Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have specific authority for the object.
Top |
Specifies whether an existing file, other than a save or database file, is replaced.
Note: The existing file cannot be replaced if it is in use by this job or another job.
Note: The authority value for the file is determined by the user profile of the user. If an existing file is replaced, the authority value for the new file is copied from the replaced file.
Top |
Example 1: Specifying Default Optional Parameters
CRTDSPF FILE(DSPHIST) SRCFILE(PRSNNL/JOBHIST)
This command creates a display device file named DSPHIST which is stored in the current library using the source file named JOBHIST that is stored in the PRSNNL library. The defaults for all the other parameters are assumed. Only the device requesting the program that uses this device file (that is, *REQUESTER) is assigned to the device file. The level identifiers of the record formats are checked when the file is opened. The public has only object operational authority for the device file.
Example 2: Specifying DBCS Data Processing
CRTDSPF FILE(IGCDSP) SRCFILE(IGCLIB/IGCSRC) IGCDTA(*YES)
This command creates the display file IGCDSP from the source file IGCSRC in the library IGCLIB. The file processes double-byte character set (DBCS) data.
Top |
Top |