Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
This topic is locked: you cannot edit posts or make replies. How to supply called sub-program from... dchristensen JCL & VSAM 25 Wed Sep 14, 2016 11:36 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us