how to override PROC? please give answer in details. Please
mention how to write it in JCL. Thanks in advance.

Answers were Sorted based on User's Feedback



how to override PROC? please give answer in details. Please mention how to write it in JCL. Thanks ..

Answer / kalpana dwivedi

For Override a proc, syntax is
Stepname.Ddname

For exapmle in a jcl proc is called as
//STEP1 EXEC=PROC1
and PROC1 contains a dd statement
//DD1 DSN=ESDSKXD.REXX.DATA,DISP=SHR

For overriding the DD1 of PROC1, syntax would be:
//STEP1.DD1 DSN=ESDSKXD.REXX.DATA,DISP=SHR

Is This Answer Correct ?    14 Yes 2 No

how to override PROC? please give answer in details. Please mention how to write it in JCL. Thanks ..

Answer / heman

Amra, giving a new library in JCLLIB is however possible.
My understanding of the question asked and my query too is,
whether we can provide an JCL override to the called PROC
in a PROC. Please advise if you have solution. Thanks.

Is This Answer Correct ?    1 Yes 0 No

how to override PROC? please give answer in details. Please mention how to write it in JCL. Thanks ..

Answer / abhilash

What you want to override in a PROC?

Lets take an example

//STEPA EXEC DEBASIS

inside the PROC DEBASIS we have

//STEPA001 EXEX .......,TIME=10
//DD01 DD .......

If you want to override a Step inside the PROC,
In JCL
//STEPA EXEC DEBASIS,TIME.STEPA001=20


If you want to override a DD statement
In JCL
//STEPA EXEC DEBASIS
//STEPA001.DD01 DD parameter=value

Is This Answer Correct ?    1 Yes 0 No

how to override PROC? please give answer in details. Please mention how to write it in JCL. Thanks ..

Answer / amra

In



To use a different PROC, you use a different library in the
JCLLIB. Your test PROC can be saved there with the same
name.

Is This Answer Correct ?    0 Yes 0 No

how to override PROC? please give answer in details. Please mention how to write it in JCL. Thanks ..

Answer / madhus s reddy

@kalpana: it is not possible to override the procedure. What
is the need of overriding the entire procedure?. you can
override only the dd statements in the procedures.

Is This Answer Correct ?    0 Yes 0 No

how to override PROC? please give answer in details. Please mention how to write it in JCL. Thanks ..

Answer / heman

I cannot totally agree with Dwivedi. But, to the question
whether we can override a PROC, still it is a question to
me. I haven't faced any such examples in my 4 years tenure.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More JCL Interview Questions

What is a JCL Command statement ?

1 Answers   IBM,


What type of versions we r using in mainframe (jcl, cobol, db2, vsam, cics)?

1 Answers   Accenture,


Is CPU time assigned to a JOB and JOBSTEP BOTH, by default ?

4 Answers   IBM,


Please go thru the below points and let me know how to code this. 1. Sort the input dataset for the condition : Starting position is 37,length of the field is 13 based on character and in the ascending order , starting from position 25 length of 12 ,character and in the ascending order. Use a temporary dataset to hold the sorted file. 2. Use the temporary file created in the above step as the input for the next step. The next step is to execute a program and produce an output file. Use the temporary file created in the above as work file 1 and the output of the file to be created in this step work file 2.Also, pass a parameter to the program that is to be executed in this step. The parameter should have the current date in YYYYMMDD format. For the sake of convenience, you can use the below Job Name : Sample1 Input DSN : PCABDT11.CABD.TEST.INPUT Temporary DSN : Sort1 Output DSN : PCABDT11.CABD.TEST.OUTPUT Program Name : SAMPLE Thanks in Advance for your response.

2 Answers  


How do you submit JCL via a Cobol program?

2 Answers   Cap Gemini,






what is a jcl?

0 Answers   IBM,


How can a stopped job be started again?

0 Answers  


how to eliminate the duplicates in sorting

4 Answers   Fidelity,


what is a steplib

4 Answers   CGI,


what is a MODELDSCB?

1 Answers  


how can we pass external data to instream procedures

5 Answers   IBM, Infosys, Ocwen,


GDGs can be CREATED (not COPIED) only on DASD and NOT on tape drives ? Is it True ?

2 Answers   ABC, IBM,


Categories