can u execute a proc from another proc?

Answer Posted / manikandan

hi all here is code for invoking proc within anothr proc

//proc1 proc
//step1 exec pgm=pgm1
//step2 exec pgm=pgm2
//step exec proc1
// pend
//*********below proc2 i invoke proc1***********
//proc2 proc
//step3 exec pgm=pgm3
//step4 exec pgm=pgm4
//step exec proc1
// pend


let me know any wrong from above

thank u

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

1579


which utility is used to run a cobol-db2 program?

801


how to run batch program without jcl?

10064


when can a job time-out occur? How to overcome that?

748


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

823






What are some jcl statements that are not allowed in procedures?

722


When space is allocated for an output dataset, what units can be used?

740


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

741


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

1661


i want to store 20 digits . how will u do it in cobol ?

858


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

1927


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

1613


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

698


How do you submit a job for execution?

635


have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file

918