Command reference / db
CRTDSPF
Create Display File
Creates a display device file that holds the file description: the device used and, optionally, the record formats from the DDS. The file holds no data. It sends records to, and receives records from, one or more display devices. CHGDSPF or OVRDSPF can change values before the program opens the file, for that run only. If a program acquires a work station on a switched line whose connection is lost or was never made, it waits indefinitely until the connection is established.
Allowed environments: *ALL.
Positional parameters: 4.
Parameters
FILE
File
Names the display device file to create. The name must follow the naming rules of the high-level language that uses it. This parameter is required.
*CURLIB- Created in the job's current library, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)
File
File
Library
Library
Suggested / special values:
*CURLIB
SRCFILE
Source file
Names the source file containing the DDS source used to create the file.
*NONE- There is no DDS source for the file.
*LIBL- Search the library list for the source file.
*CURLIB- Use the current library to locate the source file.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Source file
Source file
Library
Library
Suggested / special values:
*LIBL, *CURLIB
SRCMBR
Source member
Names the source member containing the DDS source for the file.
Suggested / special values:
*FILE
*FILE- The member name is the same as the File (FILE) parameter.
GENLVL
Generation severity level
FLAG
Flagging severity level
DEV
Display device
Names one or more display devices used with the file to pass data records between users and jobs.
Suggested / special values:
*REQUESTER, *NONE
*NONE- No device is specified; it must be given later with CHGDSPF, OVRDSPF or in the program.
*REQUESTER- The device the program was called from is assigned when the file is opened.
IGCDTA
User specified DBCS data
Allowed values:
*NO, *YES
IGCEXNCHR
DBCS extension characters
Allowed values:
*YES, *NO
TEXT
Text 'description'
Gives brief text describing the object, up to 50 characters in apostrophes.
Suggested / special values:
*SRCMBRTXT, *BLANK
*SRCMBRTXT- Text is taken from the source member if the source is a database file; otherwise blank.
*BLANK- No text is specified.
OPTION
Source listing options
Sets the output produced when the file is created. Up to four values, in any order.
Allowed values:
*SRC, *NOSRC, *SOURCE, *NOSOURCE, *LIST, *NOLIST, *SECLVL, *NOSECLVL, *EVENTF, *NOEVENTF
*SRC- A printout of the source statements, including errors, is created.
*NOSRC- No source printout unless errors are detected.
*LIST- An expanded source printout is created.
*NOLIST- No expanded source printout.
*SECLVL- Online help text for DDS messages appears in the printout.
*NOSECLVL- Online help text for DDS messages does not appear in the printout.
*EVENTF- An event file is produced for the CODE product in file EVFEVENT.
*NOEVENTF- No event file is produced.
MAXDEV
Maximum devices
ENHDSP
Enhanced display
Allowed values:
*YES, *NO
RSTDSP
Restore display
Allowed values:
*NO, *YES
DFRWRT
Defer write
Allowed values:
*YES, *NO
CHRID
Character identifier
Elements in order
Graphic character set
Graphic character set
Code page
Code page
DECFMT
Decimal format
Allowed values:
*JOB, *FILE
SFLENDTXT
SFLEND text
Allowed values:
*MSG, *FILE
WAITFILE
Maximum file wait time
Sets the seconds the program waits for file resources at open, or device or session resources at acquire. If they cannot be allocated in time, an error message is sent.
Suggested / special values:
*IMMED, *CLS
*IMMED- The program does not wait.
*CLS- Use the job's default wait time.
WAITRCD
Maximum record wait time
Sets the seconds the program waits for a read-from-invited-devices operation on a multiple-device file. Has no effect on single-device input.
Suggested / special values:
*NOMAX, *IMMED
*NOMAX- No limit on the wait time.
*IMMED- The program does not wait; a notify message is sent if no record is available.
DTAQ
Data queue
Qualified parts (object, then library; write LIBRARY/OBJECT)
Data queue
Data queue
Library
Library
Suggested / special values:
*LIBL, *CURLIB
SHARE
Share open data path
Sets whether the open data path is shared with other programs in the same routing step.
Allowed values:
*NO, *YES
*NO- Not shared; a new open data path is created on each open.
*YES- Shared with each program in the job that also specifies *YES.
SRTSEQ
Sort sequence
Qualified parts (object, then library; write LIBRARY/OBJECT)
Sort sequence
Sort sequence
Library
Library
Suggested / special values:
*LIBL, *CURLIB
LANGID
Language ID
Suggested / special values:
*JOB
LVLCHK
Record format level check
Allowed values:
*YES, *NO
AUT
Authority
Sets public authority for the file: users without specific authority, not on an authorization list, and whose group profiles lack specific authority.
Suggested / special values:
*LIBCRTAUT, *ALL, *CHANGE, *EXCLUDE, *USE
*LIBCRTAUT- Use the CRTAUT value of the library the file is created in.
*CHANGE- All operations except those limited to the owner or object management.
*ALL- All operations except authorization list management; can also change ownership.
*USE- Basic operations such as reading a file; no changes.
*EXCLUDE- The user cannot access the file.
REPLACE
Replace file
Sets whether an existing display device file with the same name and library is replaced. The existing file cannot be replaced if it is in use.
Allowed values:
*YES, *NO
*YES- An existing file is replaced if the new file is created successfully.
*NO- Creation is not allowed if a display device file with that name already exists.
Examples
CRTDSPF FILE(DSPHIST) SRCFILE(PRSNNL/JOBHIST)
Creates display file DSPHIST in the current library from source file JOBHIST in library PRSNNL, with defaults for the other parameters.
Generated from os/cl/catalog/CRTDSPF.json and os/cl/help/CRTDSPF.json.