proc1,proc2,up to proc5 is there if i want to call proc1 and
proc5how can u write the code

Answers were Sorted based on User's Feedback



proc1,proc2,up to proc5 is there if i want to call proc1 and proc5how can u write the code..

Answer / mr. cooooool

Hi..............
we can call proc as following.

//COOLJCL JOB NOTIFY=&SYSUID
//PROCFILE JCLLIB ORDER='PROCEDURE-FILE-NAME'
//STEP1 EXEC PROC1
//SYSPRINT DD SYSOUT=*
.
. * OVERRIDE STATEMENT
.
//STEP2 EXEC PROC5
.
. * OVERRIDE STATEMENT
.
//

THANKS..........

Is This Answer Correct ?    6 Yes 1 No

proc1,proc2,up to proc5 is there if i want to call proc1 and proc5how can u write the code..

Answer / harsha

1 You can use COND parameter as COND=(0,LE) on STEP2 till
STEP4.
2 You can comment out the step you do not want to execute.
3 You can use IEBEDIT to select the steps you want to
execute.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More JCL Interview Questions

What happens if both JOBLIB and STEPLIB is specified ?

8 Answers  


Is there GOTO and SWITCH-CASE available in JCL ? Is IF-THEN-ELSE available in JCL also just like it is available for VSAM datasets under Model Commands category ?

1 Answers   IBM,


how to skip the steps in JCl

2 Answers   EDS,


is step name is compulsory in jcl ?

2 Answers  


which statement is used to end the in-stream procedure in a jcl?

1 Answers   IBM,






How to send data from cobol program to jcl?

2 Answers   CSC,


I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.

0 Answers  


I had 100 steps in jcl i want to execute first 10 steps only?

6 Answers   IBM,


How can I write the joblog in the spool on normal end of a job step and direct the joblog to a dataset only if the step abends?

2 Answers  


I have two input files i/p1 name id-key flag date i/p 2 name id-key date if id-key matches in the both the files then it should write the output file from i/p1 with flag 'Y'. It should be done thru JCL sort card ,Please provide the info on this. ---Note : output file should have all records from i/p1 with proper Flag.

2 Answers  


What is jcl in mainframe, and how many types of jcl statements are there for a job?

0 Answers  


Is there any command to check wether the ps file is in sorted order?

0 Answers   IBM,


Categories