Create Form Definition (CRTFORMDF)

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

The Create Form Definition (CRTFORMDF) command creates a form definition from a physical file. The physical file contains the form definition information. The form definition information, can, for example, come from a S/370* host system and be in the Systems Application Architecture (SAA) format.

Restriction: If networking spooled files to a System/370* system, the first two characters of the form definition name must be 'F1'.

Top

Parameters

Keyword Description Choices Notes
FORMDF Form definition Qualified object name Required, Positional 1
Qualifier 1: Form 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, *FORMDF Optional, Positional 3
TEXT Text 'description' Character value, *MBRTXT, *BLANK Optional
REPLACE Replace form definition *YES, *NO Optional
AUT Authority Name, *LIBCRTAUT, *CHANGE, *ALL, *USE, *EXCLUDE Optional
Top

Form definition (FORMDF)

Specifies the form definition being created.

This is a required parameter.

Qualifier 1: Form definition

name
Specify the name of the form definition.

Qualifier 2: Library

*CURLIB
The current library for the job is used to store the form definition. If no library is specified as the current library for the job, QGPL is used.
name
Specify the library where you want to store form definition.
Top

Source file (FILE)

Specifies the file containing the form definition records sent to this system.

This is a required parameter.

Qualifier 1: File

name
Specify the name of the file containing the form definition records.

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 file. If no library is specified as the current library for the job, QGPL is used.
name
Specify the library where the file is located.
Top

Source file member (MBR)

Specifies the file member containing the form definition records.

*FORMDF
The name of the file member is specified in the Form definition (FORMDF) parameter of this command.
name
Specify the name of the member in the file specified by the Source file (FILE) parameter.
Top

Text 'description' (TEXT)

Specifies the text that briefly describes the object.

*MBRTXT
The text is taken from the file member being used to create the form definition. You can add or change text for a database source member by using the Source Entry Utility (STRSEU) command, or by using either the Add Physical File Member (ADDPFM) command or the Change Physical File Member (CHGPFM) command. If the file is an inline file or a device file, the text is blank.
*BLANK
No text is specified.
character-value
Specify no more than 50 characters of text, enclosed in apostrophes.
Top

Replace form definition (REPLACE)

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

*YES
The existing form definition is replaced.
*NO
If a form definition with same name exists on the system, the create operation fails. The existing form 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

CRTFORMDF   FORMDF(*CURLIB/FORMDF1)
            FILE(*CURLIB/FORMDF)  MBR(F1A01238)
            AUT(*EXCLUDE)
            TEXT('Default form definition for AFP printers')

This command creates form definition FORMDF1 in the current library, or in the QGPL library if there is no current library. Input is taken from source file FORMDF with member F1A01238, in the current library. Specifying *EXCLUDE for authority restricts the usage of the object to the owner. The text describes what the form definition represents.

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.
CPF9809
Library &1 cannot be accessed.
CPF9810
Library &1 not found.
CPF9812
File &1 in library &2 not found.
CPF9822
Not authorized to file &1 in library &2.
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