Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Set Tape Category (SETTAPCGY) command sets the category for a tape device in a specified media library device. The system automatically loads cartridges from the specified category in the order specified on the cartridge order (CTGORDER) parameter.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
DEV | Library device | Name | Required, Positional 1 |
OPTION | Option | *MOUNTED, *DEMOUNTED, *ASSIGN, *RELEASE | Required, Positional 2 |
CGY | Category | Single values: *SHARE400 Other values: Element list |
Optional |
Element 1: Category name | Character value, *NOSHARE, *IPL, *NL, *CNV | ||
Element 2: Category system | Character value, *CURRENT | ||
CTGORDER | Cartridge order | *SEQ, *NEXTAVAIL | Optional |
TGTCGY | Target category | Single values: *SHARE400 Other values: Element list |
Optional |
Element 1: Category name | Character value, *CGY, *NOSHARE, *IPL, *NL | ||
Element 2: Category system | Character value, *CURRENT | ||
MNTID | Mount identifier | Name, *NONE | Optional |
Top |
Specifies the media library device for which the category is set.
This is a required parameter.
Top |
Specifies which option is set for the specified media library device.
This is a required parameter.
Top |
Specifies the category to be mounted.
Single values
Element 1: Category name
Element 2: Category system
The second part of the parameter specifies the name of the system to which the category belongs. The system name is obtained from the pending system name field of a Display Network Attributes (DSPNETA) command. If there is no pending system name, the current system name attribute is used.
* * * Attention * * * If a system name is changed, the tape cartridges in library devices that have the attribute of the system name before it was changed are no longer valid.
Top |
Specifies the order in which the cartridges are mounted.
Top |
Specifies the category to which a tape cartridge is changed after it is used. This parameter can be useful when a scratch category is set for use during a save operation. Each cartridge is automatically changed to the specified target category after it is used.
Single values
Element 1: Category name
Element 2: Category system
The second part of this parameter specifies the name of the system to which the target category belongs. The system name is obtained from the pending system name field of the Display Network Attributes (DSPNETA) command. If there is no pending system name, the current system name attribute is used.
* * * Attention * * * If a system name is changed, the tape cartridges in library devices that have the attribute of the system name before it was changed are no longer valid.
Top |
Specifies the identifier by which the mounted category session will be known. This parameter is valid only when OPTION(*MOUNTED) or OPTION(*ASSIGN) is specified.
Top |
Example 1: Using Mounted Category Without a Mount Identifier
SETTAPCGY MLB(LIB01) OPTION(*MOUNTED) CGY(*NOSHARE *CURRENT) CTGORDER(*SEQ) TGTCGY(*IPL)
This command sets the tape category to *NOSHARE for a resource in media library device LIB01 on the system currently running this command. Each cartridge that is used is changed to the *IPL category. The order in which the cartridges are used is the exact order in which they were added to or changed in the category. As each cartridge is used and unloaded from the resource, the system automatically chooses and loads the next sequential cartridge from the *NOSHARE category.
Example 2: Using Mounted Category with a Mount Identifer
This command sets the tape category to *NOSHARE for a resource in media library device LIB01 on the system currently running this command. The mounted category session is identified by the mount identifier DAILY. Each cartridge that is used is changed to the DAILY1 category. The order in which the cartridges are used is the exact order in which they were added to or changed in the category. As each cartridge is used and unloaded from the resource, the system automatically chooses and loads the next sequential cartridge from the *NOSHARE category.
Example 3: Releasing a Category Session
SETTAPCGY MLB(LIB01) OPTION(*RELEASE)
This command releases the category session assigned to the job issuing the command. The category is still set to a resource in media library device LIB01 and is available for another job to assign.
Example 4: Assigning a Category Session
SETTAPCGY MLB(LIB01) OPTION(*ASSIGN) MNTID(DAILY)
This command assigns the mounted category session identified by the mount identifier DAILY to the job issuing the command.
Example 5: Demounting a Mounted Category
SETTAPCGY MLB(LIB01) OPTION(*DEMOUNTED)
This command demounts the mounted category from a resource in media library device LIB01. The mount identifier DAILY is now available to use to name another mounted category session.
Top |
*ESCAPE Messages
Top |