Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Create Folder (CRTFLR) command allows you to create a folder. Folders are used to organize documents and other folders.
Restrictions:
If a folder is created into an existing folder, change (*CHANGE) authority to the existing folder is required.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FLR | Folder | Character value | Required, Positional 1 |
INFLR | In folder | Character value, *NONE | Optional, Positional 2 |
TEXT | Text 'description' | Character value, *FLR | Optional |
AUT | Authority | Name, *INFLR, *EXCLUDE, *ALL, *CHANGE, *USE | Optional |
ASP | Auxiliary storage pool ID | 1-32, *INFLR | Optional |
CMDCHRID | Command character identifier | Single values: *SYSVAL, *DEVD Other values: Element list |
Optional |
Element 1: Graphic character set | Integer | ||
Element 2: Code page | Integer |
Top |
Specifies the name of the folder being created.
This is a required parameter.
Top |
Specifies the name of the folder that contains the folder being created.
Because folders may reside within other folders, and because any given folder name is only unique within its containing folder, you may be required to link several folder names together to identify a folder. This is commonly called the path to an object within a folder. The folder path is:
Top |
Specifies the text that briefly describes the object.
Top |
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.
Top |
Specifies the ID of the auxiliary storage pool (ASP) in which to create the folder. This parameter can be specified only when INFLR(*NONE) is specified (when you are creating a first level folder).
Top |
Specifies the character identifier (graphic character set and code page) for the data being entered as command parameter values (applies to Text 'description' (TEXT) parameter). The character identifier is related to the display device that was used to enter the command.
Single values
Element 1: Graphic character set
Element 2: Code page
Top |
Example 1: Create a Folder in Another Folder
CRTFLR FLR(QTR1) INFLR('PAYROLL/1987') AUT(*CHANGE) TEXT('first quarter payroll')
This command creates the folder QTR1 in folder PAYROLL/1987. The public is granted *CHANGE authority to the folder, which allows adding a document to the folder, changing the folder description, or showing the contents of the folder. Folder 1987 is in the PAYROLL folder, which is a first-level folder.
Example 2: Create a Folder in an ASP
CRTFLR FLR(MANFCTNG) INFLR(*NONE) ASP(2) AUT(*USE) TEXT('Manufacturing')
This command creates the folder MANFCTNG as a first level folder in user auxiliary storage pool (ASP) 2, which has been previously configured on the system. The public is granted *USE authority to the folder, which allows you to show the description or the contents of the folder.
Top |
Top |