Suppose I have 5 dataset listed under a single DD name in a
catlogued PROC. How can I override one of those 5 dataset
(say 3rd dataset)?

Answer Posted / vaneesh khurana

Calling catalog proc
Pass the symbolic parameter name to C while executing
proc(CATPROC)

//STEP1 EXEC CATPROC,C=NAME2
------------------------------------

Catlaog Proc

Here third dataset name which was "THIRD.FILENAME" earlier
will get overridden with "NAME2.FILENAME"

//CATPROC PROC A=FIRST,B=SECOND,C=THIRD,D=FOURTH,E=FIFTH

//STEP2 EXEC PGM=PGM1

//DFILES DD DSN=&A..FILENAME
DD DSN=&B..FILENAME
DD DSN=&C..FILENAME
DD DSN=&D..FILENAME
DD DSN=&E..FILENAME

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is condition checking possible in jcl?

729


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5070


What are the parameters that are used in creating a gdg?

748


A dd statement consists of 4 fields. Name them?

942


can any one plzzzzzz tell the jcl code for creating ps using idcams

10544






what is a jcl?

697


What are hierarchy levels in jcl?

965


What does a disposition of (new,catlg,keep) for a dsn mean?

627


i want to store 20 digits . how will u do it in cobol ?

868


Explain the function of job statement in jcl?

659


How to submit a jcl from cics?

670


Why include statement is used in a jcl?

696


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

785


Is their any set of rules for dd? Explain.

672


Explain the function of dd disp parameter?

607