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)?
Answers were Sorted based on User's Feedback
In the catalogued PROC, the 3rd dataset can be overridden
like below.
ORIGINAL CODE IN CATALOGUED PROC:
*********************************
//S01 DD DSN=A.B.C.D1,DISP=SHR
// DD DSN=A.B.C.D2,DISP=SHR
// DD DSN=A.B.C.D3,DISP=SHR
// DD DSN=A.B.C.D4,DISP=SHR
// DD DSN=A.B.C.D5,DISP=SHR
//
...
OVERRIDDING 3RD CONCATENATED DATASET IN CATALOGUED PROC:
******************************
//PRCN.S01 DD
// DD
// DD DSN=A3.B3.C3.D3,DISP=SHR
// DD
// DD
//
...
| Is This Answer Correct ? | 22 Yes | 7 No |
Answer / raghu
//S01 DD DSN=A.B.C.D1,DISP=SHR
DD DSN=A.B.C.D2,DISP=SHR
DD DSN=A.B.C.D3,DISP=SHR
DD DSN=A.B.C.D4,DISP=SHR
DD DSN=A.B.C.D5,DISP=SHR
...
OVERRIDDING 3RD CONCATENATED DATASET IN CATALOGUED PROC:
******************************
//PRCN.S01 DD
DD
DD DSN=A3.B3.C3.D3,DISP=SHR
DD
DD
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / sivaram
by using symbolic parameters u can override the 3rd DSN.
| Is This Answer Correct ? | 2 Yes | 1 No |
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 |
Answer / vinay sonar
Use symbolic parameter.
Ir use following syntax
//STEP1.DD3 DD dsn='dataset name'
where STEP1 is step name and DD3 is dd statment name is
procedure
| Is This Answer Correct ? | 2 Yes | 4 No |
What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
Name the system library from which modules are retrieved at execution
Is it possible to left uncode disp?
when GDG version number get changed ? bcz always Generations only increasing.
I have 5 steps in my job. say s1, s2, s3, s4, s5 //s1 exec ............. //s2 exec ............ //s3 exec .......... //s4 exec ........ //s5 exec ............... my question is i want to exeute only s2 and s4 steps... please advice me how to do this:
Explain about LMFREE�free data set from its association with data ID
Can a PS file be read in reverse order?If so,how
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
Describe the JOB statement, its meaning, syntax and significant keywords?
How is a dataset passed from one step to another?
How do you access an uncatalogued dataset in a jcl?
Explain about REXX