z/OS JES2 Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


$DEL JOBCLASS(jobclass) - Delete a job class

z/OS JES2 Commands
SA32-0990-00

Start of change

Function

To delete a job class that was added by the $ADD JOBCLASS command.

Specify a comma-separated list of one or more job class names. Each job class name must be 2-8 characters in length, using character sets A-Z and 0-9 only. Job classes A-Z, 0-9, STC and TSU cannot be deleted. A job class will only be deleted if ACTIVE=NO.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-$DEL--JOBCLASS--+-(------------------------------+----------><
                   |           .-,----------------. |   
                   |           V                  | |   
                   +-jobclass----+--------------+-+-+   
                   |             '---jobclass---'   |   
                   '-)------------------------------'   

Parameters

jobclass
Specifies the job class or classes to be deleted. Valid class specifications are 2-8 characters in length, using characters A-Z and 0-9 only. Job classes A-Z, 0-9, STC and TSU cannot be deleted.

Processing considerations

A check is made to see if there are any pre-OUTPUT phase jobs using the specified job class. If there are none, then the specified job class is deleted. The ACTIVE=NO check is also made. The set of predefined job classes (single-character names A-Z and 0-9) cannot be deleted.

Each job class can be in 0 or 1 groups. The group is created when the first job class is placed in a group and deleted when the last job class is removed from a group. Deleting a job class removes the class from its group.

Related commands

$D JOBCLASS, $T JOBCLASS, $ADD JOBCLASS

Authority Required

This command requires system authority. The description of the $T RDRnn command explains how to ensure that the authority of the appropriate MVS™ system command group is assigned.

This command requires control security access authority. For a description of assigning command input authority, see z/OS JES2 Initialization and Tuning Guide.

Scope

MAS-wide. This command affects all members of the multi-access spool.

Messages

The $HASP837 message displays the deleted job class.

Context

HASCSCAN and HASPSXIT are responsible for processing this command.

Examples

The following example deletes the job class named TEST, which was added by the $ADD JOBCLASS command:

$DEL JOBCLASS(TEST)
$HASP837 JOBCLASS(TEST) – ELEMENT DELETED

Start of changeThe following example deletes CLASS1 and CLASS2, which were added by the $ADD JOBCLASS command:End of change

$DEL JOBCLASS(CLASS1,CLASS2)
$HASP837 JOBCLASS(CLASS1) - ELEMENT DELETED 
$HASP837 JOBCLASS(CLASS2) - ELEMENT DELETED 
The following example sets the job class to INACTIVE before deleting the job class:
$T   JOBCLASS(CLASS1),ACTIVE=NO 
$DEL JOBCLASS(CLASS1)
End of change

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014