JCL DSENQSHR

JCL - COND JCL - GROUP

Advertisements


Specifies how the system will treat the dataset disposition changes in between the job steps.

When a step coded with OLD, NEW or MOD on the disposition and no other disposition coded in the further steps, system remains the exclusive control until the end of the JOB.

When a step coded with OLD, NEW or MOD on the disposition and SHR disposition coded in the further steps, system can change the serialization on the data set to shared control.

The shared control allows the dataset can be shared between the jobs.

DSENQSHR is an optional parameter.

There is a DSENQSHR parameter in JOBCLASS.

JOBCLASS DSENQSHR and job DSENQSHR both are different.


Syntax:

DSENQSHR={DISALLOW|USEJC|ALLOW}

DISALLOW System not allowed to change the serialization to Shared control.
USEJC System may change the serialization to shared control when DSENQSHR parameter value for the JES jobclass is AUTO.

If DSENQSHR JES jobclass parameter value is ALLOW or DISALLOW, the system is not allowed to change the serialization of the data set.
ALLOW System may change the serialization to shared control when DSENQSHR parameter value for the JES jobclass is AUTO or ALLOW.

If DSENQSHR JES jobclass parameter value is DISALLOW, the system is not allowed to change the serialization of the data set.

AUTOALLOWDISALLOW
AUTOYesYesNo
ALLOWYesNoNo
DISALLOWNoNoNo

Default and overrides:


If the JOBCLASS DSENQSHR parameter set to DISALLOW, the job DSENQSHR specification will be ignored.

If JOBCLASS with DSENQSHR set to AUTO or ALLOW, the job DSENQSHR specification can be used.


Example 1:

//MTHEXMP1 JOB (META007),'PAWAN Y', DSENQSHR=ALLOW

In this example, the JOB statement specifies that for any data set allocated for this job, the serialization may be changed to shared control and also it depends on the DSENQSHR JES jobclass attribute value.


Example 2:

//MTHEXMP2 JOB (META007),'PAWAN Y', DSENQSHR=USEJC

In this example, the JOB statement specifies that for any data set allocated for this job, the serialization may be changed to shared control and also it depends on the DSENQSHR JES jobclass attribute value.


Example 3:

//MTHEXMP3 JOB (META007),'PAWAN Y', DSENQSHR=DISALLOW

In this example, the JOB statement specifies that for any data set allocated for this job, the serialization may not be changed to shared control.


JCL - COND JCL - GROUP

Advertisements