Create Overlay (CRTOVL)
The Create Overlay (CRTOVL) command creates an overlay resource from a physical file. The physical file contains the overlay resource information. The overlay resource information, can, for example, come from a S/370 host system and be in the Systems Application Architecture (SAA) format.
Keyword |
Description |
Choices |
Notes |
OVL |
Overlay |
Qualified object name |
Required, Positional 1 |
Qualifier 1: Overlay |
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, *OVL |
Optional, Positional 3 |
DATATYPE |
Data type |
*AFPDS, *AFPU |
Optional |
TEXT |
Text 'description' |
Character value, *MBRTXT, *BLANK |
Optional |
REPLACE |
Replace overlay |
*YES, *NO |
Optional |
AUT |
Authority |
Name, *LIBCRTAUT, *CHANGE, *ALL, *USE, *EXCLUDE |
Optional |
Overlay (OVL)
Specifies the overlay that is being created.
This is a required parameter.
Qualifier 1: Overlay
- name
- Specify the name of the overlay.
Qualifier 2: Library
- *CURLIB
- The current library for the job is used to store the overlay. If no library is specified as the current library for the job, QGPL is used.
- name
- Specify the name of the library where you want to store the overlay.
Source file (FILE)
Specifies the file containing the overlay 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 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.
Source file member (MBR)
Specifies the name of the file member containing the overlay records.
- *OVL
- The name of the file member is specified by the Overlay (OVL) parameter of this command.
- name
- Specify the name of the member in the file specified by the Source file (FILE) parameter.
Data type (DATATYPE)
Specifies the source-type of the input file.
- *AFPDS
- The input is a database file which contains a pre-built Advanced Function Printing Data Stream (AFPDS).
- *AFPU
- The input is a source file created with Advanced Function Printing Utilities for iSeries (AFP Utilities).
Note: This value is valid only if AFP Utilities is installed on your system.
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 overlay resource. 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.
Replace overlay (REPLACE)
Specifies whether an existing overlay with the same name as the one being created is replaced.
- *YES
- The existing overlay is replaced.
- *NO
- If an overlay with same name exists on the system, the create operation fails. The existing overlay is not replaced.
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.
CRTOVL OVL(MYLIB/MYSIGNTR)
FILE(MYLIB/MYSIGNTR) MBR(MYSIGNTR)
AUT(*EXCLUDE) TEXT('representation of my signature')
This command creates the overlay MYSIGNTR into MYLIB. File name MYSIGNTR in library MYLIB with member MYSIGNTR, is used as input. Specifying *EXCLUDE does not allow any other user access to the signature. The text describes the overlay.
*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.
- CPF88C2
- Data type parameter value of *AFPU incorrect for &1 command.
- 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.