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



Suppose I have 5 dataset listed under a single DD name in a catlogued PROC. How can I override one ..

Answer / nans

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

Suppose I have 5 dataset listed under a single DD name in a catlogued PROC. How can I override one ..

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

Suppose I have 5 dataset listed under a single DD name in a catlogued PROC. How can I override one ..

Answer / sivaram

by using symbolic parameters u can override the 3rd DSN.

Is This Answer Correct ?    2 Yes 1 No

Suppose I have 5 dataset listed under a single DD name in a catlogued PROC. How can I override one ..

Answer / 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

Suppose I have 5 dataset listed under a single DD name in a catlogued PROC. How can I override one ..

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

Post New Answer

More JCL Interview Questions

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?

2 Answers   IBM,


what is the restart?hopw it is invoked?

1 Answers  


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...???

1 Answers  


Explain about ISPF/TSO Commands

0 Answers  


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 ?

3 Answers  






How to execute 300 steps in a Job?

15 Answers   Accenture, Zensar,


What is the maximum length of a single line of jcl?

0 Answers  


what does mvs stand for?

1 Answers   IBM,


Explain the purpose of dd dummy statement?

0 Answers  


how to resolve sb37,sd37 se37 abends

3 Answers   Keane India Ltd,


Is Default for MSGCLASS = (1,1) ?

2 Answers   IBM,


describe the exec statement,its meaning ,syntax and keywords?

3 Answers  


Categories