IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Executing only first 5 steps from a called PROC


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts executing XCTL command in COBOL witho... CICS 10
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
No new posts Receiving RC 5 when executing REXX pr... CLIST & REXX 3
No new posts Issues with executing a REXX MACRO th... TSO/ISPF 4
Search our Forums:

Back to Top