how can we override data definitions in jcl.
can any one give detailed example
Answer Posted / suputhru
meenu u r corrrrect.
STEPNAME.DDNAME DD PARAMETERS;
in place of parameters we can write the parameters which we want to override
//PROC1 PROC
//STEP1…..
//DD1 DD DSN=FILE1,DISP=SHR
…
…
//
Now we can override dd parameter disp=shr to DISP=OLD.
//JOB1 JOB..
//PROCLIB…
//STEP001 EXEC PROC1
//STEP1.DD1 DD DSN=FILE1,DISP=OLD.
SYMBOLIC parameters: used to orverride parameters on the DD statement.
They can be used in cataloged and instream procs.
//ddname DD ¶meter
Values assigned at proc and exec statements.
//JOB1 JOB..
//PROC1 PROC DISPO=NEW ----here dd parameter value assigned at proc.
//STEP1 EXEC PROC1
//DD1 DD DSN=FILE1,DISP=&DISPO ------it means DISP=NEW.
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
WORKING-STORAGE SECTION. 01 GROSS-PAY. 05 BASIC-PAY PIC 9(5). 05 ALLOWENCES PIC 9(3). PROCEDURE DIVISION. MOVE 1000 TO BASIC-PAY. MOVE 250 TO ALLOWENCES. DISPLAY GROSS-PAY. STOP RUN. 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move
Explain how can the submitting users racf authority be overridden in a job stream?
Does jcl support automatic restart?
How to pass the parameter in parm using linkage section ? (syntax)?
What do you understand by the terms: joblib and steplib?
A dd statement consists of 4 fields. Name them?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
What are the rules employed while naming the steps in a job?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
Is their any limit for data sets?
Explain how can return codes be tested before execution of a job step?
Is it possible to left uncode disp?
What is the significance of addrspc parameter in the exec statement?
What is the syntax of JCL statement?
how you will the direct the data to spool using sysout option?