Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can you execute a PROC from another PROC?

Answers were Sorted based on User's Feedback



Can you execute a PROC from another PROC?..

Answer / sivakumar sekharannair

We can execute a proc from another proc. I tried and
executed sucessfully.
my job steps:
//PROCLIB JCLLIB ORDER=PROGMR.SIVANAIR.JCLLIB
//JOBLIB DD DSN=UAUT.NDVR.PGMLOAD,DISP=SHR
//STEP001 EXEC AUT001

first proc steps:
//AUT001 PROC
//STEP001 EXEC PGM=AUT0EMP,COND=(0,LE)
//EMPLOY1 DD DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//STEP002 EXEC AUT002


Second proc steps:
//AUT002 PROC
//STEP001 EXEC PGM=AUT0EMP
//EMPLOY1 DD DSN=PROGMR.SBPD.EMP.DATA.SAMPLE1,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*


JOb log:
JOBNAME STEPNAME PROCSTEP RC EXCP CPU SRB CLOCK
AAUT001D STEP001 STEP001 00 48 .00 .00 .00
VS0010I AAUT001D 08.206 C STEP002 STEP001 ** R0000 **
AAUT001D STEP002 STEP001 00 48 .00 .00 .00
EF404I AAUT001D - ENDED -

Is This Answer Correct ?    20 Yes 2 No

Can you execute a PROC from another PROC?..

Answer / satyasivaji.ch

yha we can excute proc with in a proc(nested procedures),you
can code up to 15 levels of procedure we can execute.

Is This Answer Correct ?    6 Yes 3 No

Can you execute a PROC from another PROC?..

Answer / tanji

Answer to #5:
Need to give the lib of all the proc in the jcllib,With
that the second and subsequent proc will be identifies the
the executing proc.

Is This Answer Correct ?    3 Yes 0 No

Can you execute a PROC from another PROC?..

Answer / guest

I did not know the answer and my interviewer said NO. Later
I tried and executed PROC from a PROC, three levels deep.
Manuals do not state any limit on PROC calling PROC, or nesting.

Is This Answer Correct ?    6 Yes 5 No

Can you execute a PROC from another PROC?..

Answer / sachin

Please tell me shive
job knows where is first proc reside using JCLLIB

but how the proc2 will know where is proc3 reside.

Is This Answer Correct ?    0 Yes 0 No

Can you execute a PROC from another PROC?..

Answer / guest

yes

Is This Answer Correct ?    0 Yes 0 No

Can you execute a PROC from another PROC?..

Answer / 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

Can you execute a PROC from another PROC?..

Answer / nikhil

You can code only exec pgm=pgm-name in a PROC but not exec
procname in any kind of PROC.

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More JCL Interview Questions

how to write a jcl prog to copy alternate recs from ps1 to another ps2,suppose ps1 having 10 recs?

2 Answers   Steria, TCS,


What is DISP= (NEW,PASS,DELETE)?

3 Answers   HCL,


Can we DELETE all the Generations of a GDG at once, WITHOUT deleting the GDG itself ?

7 Answers   IBM,


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

0 Answers  


Could you provide an example and its effect OF, Using COND on JOB and EXEC both ?

4 Answers   IBM,


My JOB contains three steps. //STEP1 EXEC PGM=ABC //STEP2 EXEC PGM=DEF //STEP3 EXEC PGM=GHI My Question is 1) I want to execute second step only. How will do. 2) Soppose U consider above three steps are in PROC steps and I want execute the PROC second step only? How to execute the second step only. During exection time its creating any ABEND? Please let me know..........

2 Answers  


Explain about LMMLIST�list a library's members

1 Answers  


Hi, I have a requirement File A : I have 6 records out of which 4 are same. File B: I have 8 records out of 6 records are same. The 4 records in FILEA and 6 records in FILE B are same. If we substract we will get two records, I need these two records in output file This is because to remove the duplicates from the database. Through easytrieve we can compare but for that there should not duplicates, but in my file I have duplicates. Thanks in advance!!

2 Answers  


I have a JCL which 20 steps. How do I execute 17 th step alone (It should execute only 17ths tep.and it should not execute 18,19,20 steps??

9 Answers   IBM, Infosys, TCS, Xansa, Xchanging,


What are the parameter we cannot use in procedure?

0 Answers  


how can we pass parameters from JCL to cobol subprogram...my requirement is i should not get data from mainprogram but i need it from JCL directly

5 Answers   IBM, TCS,


I have three files for one step i need to override the third file how to do that in jcl?

1 Answers   UST,


Categories