DSENQSHR Parameter


Note! DSENQSHR parameter can code at the job level.

DSENQSHR parameter specifies how the system treats the file disposition changes between the job steps. For example - When a step is coded with OLD, NEW, or MOD on the disposition for a file and there is no change of disposition in the further steps, the system holds exclusive control until the end of the job.

The above process ensures that all updates to the file are completed before other jobs request control of the file.

Syntax -

DSENQSHR={DISALLOW}
		 {USEJC}
		 {ALLOW}
DISALLOW The system is not allowed to change it to SHR.
USEJC The system may change to SHR when the DSENQSHR parameter value for the JES jobclass is AUTO.
If the JES jobclass parameter value is ALLOW or DISALLOW, the system is not allowed to change it to SHR.
ALLOW The system may change to SHR when the DSENQSHR parameter value for the JES jobclass is AUTO or ALLOW.
If the DSENQSHR JES jobclass parameter value is DISALLOW, the system is not allowed to change it to SHR.

Default and overrides -

If the jobclass DSENQSHR parameter is set to DISALLOW, the job DSENQSHR will be ignored. If jobclass DSENQSHR is set to AUTO or ALLOW, the job DSENQSHR specification can be used.

Examples -


Scenario -

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

The JOB statement specifies that for any file allocated for this job, the serialization may change to SHR. It depends on the DSENQSHR JES jobclass attribute value.