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

whats the diff bw the evaluate also and and?

1847


What is NOTCAT ?

734


List the different components of jcl statement?

687


What are the difference between jcl and jes?

1042


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

669






How can return codes be tested before execution of a job step?

914


Explain the function of //jcllib statement?

698


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

705


How do you access an uncatalogued dataset in a jcl?

724


What parameters can be used to limit the number of records written to a sysout dataset?

741


What is the purpose of dd * statement in jcl?

793


what is the JCL statement consists of?

693


what is the difference between JES3 and JES2?

675


Suppose I have five jobs to do. But I want to hold one?

651


What are steplib and joblib?

716