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
 
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
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
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
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm

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