Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Executing only first 5 steps from a called PROC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
mf_karthik

New User


Joined: 26 Jul 2005
Posts: 55

PostPosted: Tue Oct 04, 2005 6:47 am    Post subject: Executing only first 5 steps from a called PROC
Reply with quote

HI TO ALL
I AM CALLING A PROC, IN THAT PROC THERE ARE 10 STEPS BUT IN MY JCL I WANT TO EXECUTE FIRT FIVE STEPS? HOW

WHAT IS TWO DIMENSIONAL ERROR?
Back to top
View user's profile Send private message

sumanthmain

New User


Joined: 22 Aug 2005
Posts: 14

PostPosted: Sat Oct 08, 2005 2:15 am    Post subject: Re: INTERVIEW QUESTION
Reply with quote

good question..,

we can excute thouse five steps through JCL.

example:

//job1 job xxxxxxxxxxxxxxxxx
//PROCLIB DD DNS=XXXXXXXXXXX,
DISP=SHR
//EXEC1 EXEC PROC1
//STEP1.DD1 DD DSN=XXXXXXXXXXXXXXXXX,
// XXXXXXXXXXXXXXXXXXXX,
// XXXXXXXXXXXXXXXXXXXX
//STEP2.DD2 DD DSN=XXXXXXXXXXXXXXXXX,
// XXXXXXXXXXXXXXXXXX,
// XXXXXXXXXXXXXXXX
//STEP2.DD3 DD DSN=XXXXXXXXXXXXXXXXX,
// XXXXXXXXXXXXXXXXXX,
// XXXXXXXXXXXXXXXX
//STEP2.DD4 DD DSN=XXXXXXXXXXXXXXXXX,
// XXXXXXXXXXXXXXXXXX,
// XXXXXXXXXXXXXXXX
//STEP2.DD5 DD DSN=XXXXXXXXXXXXXXXXX,
// XXXXXXXXXXXXXXXXXX,
// XXXXXXXXXXXXXXXX



IF UR PROC HAVING





//PROC1 PROC
//STEP1 EXEC PGM=PR1
//DD1 DD DSN=XXXXXXXXXX.
//STEP2 EXEC PGM=PR1
//DD2 DD DSN=XXXXXXXXXX.
//STEP3 EXEC PGM=PR1
//DD3 DD DSN=XXXXXXXXXX.
//STEP4 EXEC PGM=PR1
//DD4 DD DSN=XXXXXXXXXX.
//STEP5 EXEC PGM=PR1
//DD5 DD DSN=XXXXXXXXXX.
//STEP6 EXEC PGM=PR1
//DD6 DD DSN=XXXXXXXXXX.
//STEP7 EXEC PGM=PR1
//DD7 DD DSN=XXXXXXXXXX.
//STEP8 EXEC PGM=PR1
//DD8 DD DSN=XXXXXXXXXX.
//STEP9 EXEC PGM=PR1
//DD9 DD DSN=XXXXXXXXXX.
//STEP10 EXEC PGM=PR1
//DD10 DD DSN=XXXXXXXXXX.
.............................................................

I Hope this answer will help u.

cheers
sumanth
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Sat Oct 08, 2005 7:36 am    Post subject:
Reply with quote

Hi,
Null statement could be coded after 5th job step.
Two dimensional error? In what context?
Regards,
Sridevi.
Back to top
View user's profile Send private message
akkoor

New User


Joined: 08 Oct 2005
Posts: 9

PostPosted: Sat Oct 08, 2005 7:43 pm    Post subject: Re: Executing only first 5 steps from a called PROC
Reply with quote

If u do nt wish 2 execute any step in a proc just give cond.stepname=(0,NE)
In u r case it would be
after giving the overrides just add
MSG=*,
cond.ps110=(0,ne),
cond.ps115=(0,ne)
..

the job would not execute steps given in conditions, only if the previous step executes successfully ie if return code is 0

the only porblem is you wound not be able to bypass the first step of the proc by any condition codes as it is mandatorily executed
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts REXX to view the PGM or PROC jackzhang75 CLIST & REXX 11 Tue Jun 20, 2017 1:20 am
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us