JCL-How to Give Dummy VSAM Dataset

The following jcl help you to give dummy VSAM dataset: The best JCL book for more tips- and get it at discounted price.

Using parameter AMP=’AMORG’ , we can communicate to OS to treat the DUMMY file as VSAM file.

//VSAMFILE DD DUMMY, AMP='AMORG'

The DUMMY data set is do nothing is JCL. It is something like you are not using anywhere.

VSAM dummy dataset

You can use DUMMY for testing purpose…

One use of the DUMMY parameter is in testing a program. When testing is finished and you want input or output operations performed on the data set, replace the DD DUMMY statement with a DD statement that fully defines the data set.

The best advanatage

You have a proc. You have given dummy to a dataset. You can override that DUMMY perameter in your jcl.

The way you have given DUMMY in proc is

//DS1     DD    DUMMY,DSNAME=A,DISP=OLD

You can override it with the following syntax

Nullify the DUMMY parameter by coding:

   //JS      EXEC  PROC=PROC1
   //PS.DS1  DD    DSNAME=A
Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.