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

My JCL contains four steps //STP1 A(+1), DISP = NEW //STP2 A(+2), DISP = NEW //STP3 A(+3), DISP = NEW //STP4 A(+1), DISP = OLD STP3 was abended and I want restart my JCL from STP3 onwards & what are the precaution I want to take & what are the changes I need to make. Pls let me know.

4 Answers   CTS,


diff bw vsam and normal flat file?

2 Answers   CGI,


How is a dataset passed from one step to another?

2 Answers   DELL,


Suppose i have a file with 10 recs and i want to skip only the 7 th record and copy the rest into another file. How do i do it using SORT?

7 Answers   VS, Wipro,


Can we use COND=EVEN on a job card, when jobs are scheduled through scheduler?

5 Answers   L&T,






COND -> step1 . . step2, Step2, Executes if the CC of step1 is 0. But even if it is NOT 0 and if we dont give COND, will step2 be executed ?

4 Answers   IBM,


is it possible to submitt more than one job in job card in jcl? and if yes than is it necessary to have the jobs same name?

4 Answers   Accenture,


A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?

3 Answers   IBM,


A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?

4 Answers   IBM,


What is the difference between joblib and jcllib statements

7 Answers   IBM, Maples,


Wrete a JCL to compare two files and mached records move to onc file & un mached rows wants to another file?

13 Answers   CGI, DSRC, IBM,


wht do u mean by internal reader in jcl ? wht is the use of internal reader ?

1 Answers   Syntel,


Categories