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 |
I have an job having three job steps.Suppose i want to call a pgm in step2 and aproc in step3.How to write the code?
what is the restart?hopw it is invoked?
how to have variable length record in outrec..i have the requmt as follows.. i/p file variable lenght record output file : i need to alter the input and write into outrec(another file) sort fields: copy from(dd1) using ctl1 ctl1cntl dd * outfil fnames=xxx, outrec=(1,131) here i outrec is bombing with error..how to overcome this defect...???
Explain about ISPF/TSO Commands
Can I copy the FB (fixed Block) record length file to a VB (variable Block)record length file and Vise Versa? If Yes then how ? is that thru one of the JCL utility ?
How to execute 300 steps in a Job?
What is the maximum length of a single line of jcl?
what does mvs stand for?
Explain the purpose of dd dummy statement?
how to resolve sb37,sd37 se37 abends
Is Default for MSGCLASS = (1,1) ?
describe the exec statement,its meaning ,syntax and keywords?