Previous Topic: Example: AGFILE Command with TYPE=FILELIST (for job type=AS400_JOB Only)Next Topic: AL Examples


AL/ALC Command

The AL command allocates a DASD data set. The ALC command allocates and catalogs a DASD data set. This function is available on the UT Menu panel as FUNCTION value 1 or on any other menu or formatted panel as FUNCTION value UT.1.

This command has the following format:

{AL|ALC},DSN=dsname,VOL=volume,SP=(type,primary,[secondary],[directory-blks])
        ,DCB=(recfm,lrecl,blksize)
DSN

Defines the fully qualified name of the data set.

Limits: 1 to 44 alphanumeric characters

VOL

Defines the volume serial number on which the data set is to be allocated. The volume must have been made available to CA WA CA 7 Edition with a U7volser type of DD statement as discussed in the Systems Programming Guide, or the ALLOC command.

Limits: 1 to 6 alphanumeric characters

SP

Specifies space allocation. For each of the following parameters, a comma must be coded for each parameter that is omitted, or the default value is assumed. Parameters used must be enclosed in parentheses.

type

(Optional) Specifies either T for tracks or C for cylinders.

Default: T

primary

Defines primary space allocation amount.

Limits: 1 to 5 numeric characters

secondary

(Optional) Defines an optional secondary space allocation amount.

Limits: 1 to 5 numeric characters

directory-blks

(Optional) Defines the number of directory blocks to be allocated for a PDS data set. If the number of directory blocks is zero, DSORG=PS is assumed. If nonzero, DSORG=PO is assumed.

Default: 0

Limits: 1 to 5 numeric characters

DCB

Defines the data control block (DCB) attributes. Parameters must be in parentheses.

recfm

Specifies the record format. Value must be F, FB, V, VB, VBS, VS, U, FA, FBA, FM, FBM, VA, VBA, VM, or VBM.

lrecl

Defines the logical record length.

Default: 0

Limits: 1 to 5 numeric characters

blksize

Defines the block size of the data set.

Default: 0

Limits: 1 to 5 numeric characters

More information:

ALLOC Command