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 &parameter

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


Please Help Members By Posting Answers For Below Questions

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

861


Explain how can the submitting users racf authority be overridden in a job stream?

681


Does jcl support automatic restart?

773


How to pass the parameter in parm using linkage section ? (syntax)?

659


What do you understand by the terms: joblib and steplib?

632






A dd statement consists of 4 fields. Name them?

942


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?

626


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

671


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

824


Is their any limit for data sets?

715


Explain how can return codes be tested before execution of a job step?

839


Is it possible to left uncode disp?

723


What is the significance of addrspc parameter in the exec statement?

628


What is the syntax of JCL statement?

707


how you will the direct the data to spool using sysout option?

1774