Can you execute a PROC from another PROC?

Answer Posted / kingmanish

First of all what is a PROC.

Its just a set of reusable JCL statements.

Now calling PROC within a PROC will defeat the concept of
PROCs itself.

So if we call a PROC within a PROC it would work and we can
do that.
But that is not a good practice.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the function of dd name parameter with a 2 part structure; audit.report?

906


What are steplib and joblib? What for they are used?

697


What is the use of disp parameter?

653


Is condition checking possible in jcl? If yes, how?

739


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

1754






How is the record format of an output dataset specified?

748


Explain how can the disposition of sysout datasets be set for an entire jobstream?

638


What is the difference between the positional and keyword parameters? Give examples.

716


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

624


Define concatenating?

669


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

1738


What are steplib and joblib?

725


What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?

9222


What are hierarchy levels in jcl?

960


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

664