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

if time parameter is not coded on the job card and job step then what is the default time assigned to the entire job and for each step in the job by the systyem ?

2 Answers   ITC Infotech,


what is check pending option

1 Answers   Fujitsu,


delete rules in db2

1 Answers   Keane India Ltd,


How can values be passed from the job stream to an executable program?

0 Answers  


What is COND=ONLY ?

2 Answers  






What do you understand by the term notcat 2 – gs?

0 Answers  


My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

0 Answers  


i have 1000 records in input file and i want to sort it and the first 200 records to be placed in output file. how to do that??

14 Answers   L&T,


How can the disposition of sysout datasets be set for an entire jobstream?

0 Answers  


What dd statement is used to supply the name of a dataset?

0 Answers  


What is the difference between catalogue procedure and In-Stream procedure?

2 Answers  


after submiting the jcl.how do you know that the job has been completed.

4 Answers   ACS,


Categories