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

write a jcl to execute a job by 7:00 am on jan 20,1986?

0 Answers   IBM,


How to send data from cobol program to jcl?

2 Answers   CSC,


Please explain with syntax and an example, the Inrec fields and Outrec build in sort.

4 Answers   CTS, TCS,


What is GDG?

1 Answers  


Hi, Please clear me when COND=ONLY and COND=EVEN. Explain me with example.

2 Answers   GJ,


Can we have a JOBSTEP without any EXEC ?

6 Answers   IBM,


how to increase the space of a dataset in instream procedure.

1 Answers   HCL,


how to resolve the soc4 error?

5 Answers   ITC Infotech,


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

0 Answers  


Say I have a file with 12 records. Each record has the name of the month. I have to append data in these 12 records into 1 record. How is it possible?

2 Answers   CTS,


01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable

1 Answers  


What is the error/SOC code if dd names are not sysut1 and sysut2 in IEBGENER?

1 Answers   CTS,


Categories