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
 

 

How can i execute first 4 steps of proc which has 20 steps

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Ajit

New User


Joined: 06 Sep 2005
Posts: 3
Location: Bangalore

PostPosted: Tue Sep 06, 2005 12:13 pm    Post subject: How can i execute first 4 steps of proc which has 20 steps
Reply with quote

Hi All,
plz tell me the solution for the following problem-

I have a proc which has 20 steps which is very useful and used by several programs. For my job I want to execute only first 4 steps of that proc but without changing jcl b'coz other pgms are using that proc.
Back to top
View user's profile Send private message

radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Tue Sep 06, 2005 12:30 pm    Post subject:
Reply with quote

Then tag the first line of the job with a tag such as .A, and tag the last line needed of the job with a tag such as .B, then submit everything between the tags "SUBMIT .A .B".
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Tue Sep 06, 2005 12:41 pm    Post subject:
Reply with quote

you can also use NULL '//' at the end of step4.This will execute steps from 1 to 4.
Back to top
View user's profile Send private message
ravikumarreddy
Warnings : 1

New User


Joined: 29 Jul 2005
Posts: 23

PostPosted: Tue Sep 06, 2005 4:07 pm    Post subject: Re: How can i execute first 4 steps of proc which has 20 ste
Reply with quote

hi,

how we keep tags and all
let me clear this...


regards,
ravi
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Tue Sep 06, 2005 5:30 pm    Post subject: Re: How can i execute first 4 steps of proc which has 20 ste
Reply with quote

The job below will run from step 1 to 5.

Code:
.A  //AABBA     JOB  1239MBS,'RADHA',CLASS=C,MSGCLASS=H,
0002//            REGION=4096K,NOTIFY=&SYSUID                   
0003//*
0004//STEP0001 EXEC PGM=MYPROG                                             
0005//*                                                                     
0006//STEP0002 EXEC PGM=MYPROG                                             
0007//*                                                                     
0008//STEP0003 EXEC PGM=MYPROG                                             
0009//*                                                                     
0010//STEP0004 EXEC PGM=MYPROG                                             
0011//*                                                                     
0012//STEP0005 EXEC PGM=MYPROG                                             
.B  //*                         
0012//STEP0006 EXEC PGM=MYPROG                                             
0013//*                         


Hope this helps.
Back to top
View user's profile Send private message
ykishore

New User


Joined: 12 Aug 2005
Posts: 53
Location: USA

PostPosted: Tue Sep 06, 2005 6:33 pm    Post subject: Re: How can i execute first 4 steps of proc which has 20 ste
Reply with quote

Hi

Normally ,we do call the PROCs from Job. as u mentioned ,Proc has 20 steps.when u call the proc ,certainly all the steps get executed.i believe we suppose to change the Proc accordingly!! or you have to cut and paste those 4 steps and execute !!!

User: RadhaKrisha mentioned that ,we can submit the range ( submit .a .b) but how cud this possible in Proc??? bcoz we cant execute the Proc alone, we have to call it from JOB? in JOB also we cant mentioned the same as we can only mention EXEC PROC??? hope you guys got my point !!! correct me if im wrong!!!
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Tue Sep 06, 2005 7:26 pm    Post subject:
Reply with quote

Its working fine.
NULL operator also works fine in this case.

did you tried at your end?
Back to top
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 436
Location: chennai, India

PostPosted: Tue Sep 06, 2005 7:30 pm    Post subject:
Reply with quote

Now,i got ur query

Quote:
User: RadhaKrisha mentioned that ,we can submit the range ( submit .a .b) but how cud this possible in Proc??? bcoz we cant execute the Proc alone, we have to call it from JOB? in JOB also we cant mentioned the same as we can only mention EXEC PROC??? hope you guys got my point !!! correct me if im wrong!!!


Iam calling it from the job.As this is the case of first 5 steps,I gave the range from the job step to the end of the fifth step.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Jcl pram vs proc parms ashek15 JCL & VSAM 3 Thu Mar 30, 2017 6:50 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm


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