How can I override a dsn that is contained in a proc called
by another proc? I need to do the override in the calling
JCL.
Answer Posted / mani
CATALOG PROC
//CATPROC PROC
//STEP1 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//DD1 DD DSN=FILEA,
// DISP=(,CATLG,DELETE),
// SPACE=(TRK,(100,50),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//SYSOUT DD SYSOUT=*
//
INVOKING JCL
//Z000960P JOB CLASS=E,MSGCLASS=E,NOTIFY=&SYSUID
// JCLLIB ORDER=Z000960.SOURCE.JCL
//MYPROC EXEC CATPROC
//STEP1.DD1 DD DSN=FILEB,DISP=(NEW,CATLG)
AFTER EXECUTE THE JCL FILEB WILL BE GETTING OVERRIDE
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
how can the same proc be re-used and called by many jobs?
What is the function of dd disp parameter?
What is the function of a dd statement?
Explain the job statement in jcl?
Define concatenating?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
what sort card you will use to copy the data from one dataset to another dataset?
Is their any set of rules for dd? Explain.
How jcl work to handle various input output file operations?
What do you understand by the terms: joblib and steplib?
define cond parameter in jcl?
How to override loadlib?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat
Are there any set of rules for the names of the steps used in a job? What are they?