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 job card like this //job ***** //step1 exec pgm=iebgener //sysut1 dd dsn=main.sss,disp=shr // dd dsn=main1.sss,disp=shr // dd dsn=main2.sss,disp=shr //sysut2 dd dsn=out1.mmm ,disp=(new,catlg,delete) dcb=( ) // sysin dd * like this what i have to do to skip dsn=main1.sss please giveme answer asap

2 Answers   IBM, TetraSoft,


How can a stopped job be started again?

0 Answers  


Is there a limit of 3273 DD statements for a JCL or for every EXEC step in a JCL?

2 Answers  


How to send data from cobol program to jcl?

2 Answers   CSC,


When should DISP=MOD is used?

6 Answers   TCS,






you have one jcl .in sort step 5 files are there.if out of 5 files if one file is uncataloged or not there then how will you correct your jcl so that problem does not come. you should not create this file externally.how will u overcome it.

3 Answers  


How to rename a VSAM file as well as it's index file?

4 Answers   CitiGroup,


What are the rules employed while naming the steps in a job?

0 Answers  


My requirement is : How to populate a empty PS/flat file with ONLY spaces in the first line. You should not use any input dataset to do this. I'm not sure whether you may use any utility for this purpose?

2 Answers   HCL,


i have 10 steps in my jcl. -->if i want to execute my program from 5th step what i have to do? don't give //* in ur previous steps --> if i want to execute my program from 1to 5 steps only what i have to do?

2 Answers  


I have two input SORTIN files and We need to create one SORTOUT file which contains data of both input files. What is the SortCard for this?. Suppose the length of the both files are different, then How we do it? Please reply ASAP

4 Answers   CSC,


I need exexution process for JCL programs

0 Answers  


Categories