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 |
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 ?
what is check pending option
delete rules in db2
How can values be passed from the job stream to an executable program?
What is COND=ONLY ?
What do you understand by the term notcat 2 – gs?
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.
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??
How can the disposition of sysout datasets be set for an entire jobstream?
What dd statement is used to supply the name of a dataset?
What is the difference between catalogue procedure and In-Stream procedure?
after submiting the jcl.how do you know that the job has been completed.