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.

Type
*QUAL
Required
Yes
Case
Uppercase
*CURLIB
Created in the job's current library, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)

File File

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

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

Suggested / special values: *CURLIB

SRCFILE Source file

Names the source file containing the DDS source used to create the file.

Type
*QUAL
Required
No
Case
Uppercase
*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

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

SRCMBR Source member

Names the source member containing the DDS source for the file.

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

Suggested / special values: *FILE

*FILE
The member name is the same as the File (FILE) parameter.

GENLVL Generation severity level

Type
*UINT2
Required
No
Default
20
Range
0 to 30
Case
Uppercase

FLAG Flagging severity level

Type
*UINT2
Required
No
Default
0
Range
0 to 30
Case
Uppercase

DEV Display device

Names one or more display devices used with the file to pass data records between users and jobs.

Type
*NAME
Required
No
Default
*REQUESTER
Length
10
List limit
50
Case
Uppercase

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

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

Allowed values: *NO, *YES

IGCEXNCHR DBCS extension characters

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

Allowed values: *YES, *NO

TEXT Text 'description'

Gives brief text describing the object, up to 50 characters in apostrophes.

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

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.

Type
*CHAR
Required
No
Length
9
List limit
4
Case
Uppercase

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

Type
*UINT2
Required
No
Default
1
Range
1 to 256
Case
Uppercase

ENHDSP Enhanced display

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

Allowed values: *YES, *NO

RSTDSP Restore display

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

Allowed values: *NO, *YES

DFRWRT Defer write

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

Allowed values: *YES, *NO

CHRID Character identifier

Type
*ELEM
Required
No
Case
Uppercase
Elements in order

Graphic character set Graphic character set

Type
*INT4
Required
No
Case
Uppercase

Code page Code page

Type
*INT4
Required
No
Case
Uppercase

DECFMT Decimal format

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

Allowed values: *JOB, *FILE

SFLENDTXT SFLEND text

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

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.

Type
*INT4
Required
No
Default
*IMMED
Case
Uppercase

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.

Type
*INT4
Required
No
Default
*NOMAX
Case
Uppercase

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

Type
*QUAL
Required
No
Case
Uppercase
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

Sets whether the open data path is shared with other programs in the same routing step.

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

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

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

Sort sequence Sort sequence

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

LANGID Language ID

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

Suggested / special values: *JOB

LVLCHK Record format level check

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

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.

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

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.

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

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.

IBM command documentation

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