Create Page Definition (CRTPAGDFN)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Create Page Definition (CRTPAGDFN) command creates a page definition by copying a user-supplied database file to an internal space object. The user must load the source data into the database from a remote system (such as a System/370) or external medium (usually tape) and put it in the SAA format that can be processed by the operating system.

Restrictions: If networking spooled files to a System/370 system, the first two characters of the page definition name must be 'P1'.

Top

Parameters

Keyword Description Choices Notes
PAGDFN Page definition Qualified object name Required, Positional 1
Qualifier 1: Page definition Name
Qualifier 2: Library Name, *CURLIB
FILE File Qualified object name Required, Positional 2
Qualifier 1: File Name
Qualifier 2: Library Name, *LIBL, *CURLIB
MBR Member Name, *PAGDFN Optional, Positional 3
TEXT Text 'description' Character value, *MBRTXT, *BLANK Optional
REPLACE Replace page definition *YES, *NO Optional
AUT Authority Name, *LIBCRTAUT, *CHANGE, *ALL, *USE, *EXCLUDE Optional
Top

Page definition (PAGDFN)

Specifies the page definition to be created.

This is a required parameter.

Qualifier 1: Page definition

name
Specify up to eight characters for the name of the page definition.

Qualifier 2: Library

*CURLIB
The current library for the job is used to locate the page definition. If no library is specified as the current library for the job, QGPL is used.
name
Specify the name of the library where the page definition is located.
Top

File (FILE)

Specifies the data file that contains the page definition records sent to this system.

This is a required parameter.

Qualifier 1: File

name
Specify the name of the file to be used.

Qualifier 2: Library

*LIBL
All libraries in the library list for the current thread are searched until the first match is found.
*CURLIB
The current library for the job is used to locate the data file. If no library is specified as the current library for the job, QGPL is used.
name
Specify the name of the library where the data file is located.
Top

Member (MBR)

Specifies the data file member containing the page definition records.

*PAGDFN
The name of the data file member is the same as the name specified on the Page definition (PAGDFN) parameter of this command.
name
Specify the name of the data file member.
Top

Text 'description' (TEXT)

Specifies the text that briefly describes the object.

*MBRTXT
The text is taken from the data file member used to create the page definition.
*BLANK
No text is specified.
character-value
Specify no more than 50 characters of text, enclosed in apostrophes.
Top

Replace page definition (REPLACE)

Specifies whether an existing page definition with the same name as the one being created is replaced.

*YES
The existing page definition is replaced.
*NO
If a page definition with same name exists on the system, the create operation fails. The existing page definition is not replaced.
Top

Authority (AUT)

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.

*LIBCRTAUT
The system determines the authority for the object by using the value specified on the Create authority (CRTAUT) parameter on the Create Library command (CRTLIB) for the library containing the object to be created. If the value specified on the Create authority (CRTAUT) parameter is changed, the new value will not affect any existing objects.
*CHANGE
The user can perform all operations on the object except those limited to the owner or controlled by object existence (*OBJEXIST) and object management (*OBJMGT) authorities. The user can change and perform basic functions on the object. *CHANGE authority provides object operational (*OBJOPR) authority and all data authority. If the object is an authorization list, the user cannot add, change, or remove users.
*ALL
The user can perform all operations except those limited to the owner or controlled by authorization list management (*AUTLMGT) authority. The user can control the object's existence, specify the security for the object, change the object, and perform basic functions on the object. The user also can change ownership of the object.
*USE
The user can perform basic operations on the object, such as running a program or reading a file. The user cannot change the object. Use (*USE) authority provides object operational (*OBJOPR), read (*READ), and execute (*EXECUTE) authorities.
*EXCLUDE
The user cannot access the object.
name
Specify the name of an authorization list. Users included on the authorization list are granted authority to the object as specified by the list. The authorization list must exist when the object is created.
Top

Examples

CRTPAGDFN   PAGDFN(*CURLIB/P1DFLT)  FILE(*CURLIB/PAGDFNS)
            MBR(*PAGDFN)  AUT(*EXCLUDE)
            TEXT('Default page definition')

This command creates page definition P1DFLT in the current library or in library QGPL if there is no current library. Input is taken from source file PAGDFNS with member P1DFLT in the current library. Specifying *EXCLUDE for authority restricts use of the object to the owner. The text describes the page definition.

Top

Error messages

*ESCAPE Messages

CPF2283
Authorization list &1 does not exist.
CPF8056
File &1 in &2 not a physical file.
CPF88C1
Printer resource type &1 &2 was not created in library &3.
CPF9822
Not authorized to file &1 in library &2.
CPF9809
Library &1 cannot be accessed.
CPF9810
Library &1 not found.
CPF9812
File &1 in library &2 not found.
CPF9845
Error occurred while opening file &1.
CPF9846
Error while processing file &1 in library &2.
CPF9847
Error occurred while closing file &1 in library &2.
CPF9870
Object &2 type *&5 already exists in library &3.
Top