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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 435
Location: chennai, India

PostPosted: Tue Sep 06, 2005 12:30 pm
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: 435
Location: chennai, India

PostPosted: Tue Sep 06, 2005 12:41 pm
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
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: 435
Location: chennai, India

PostPosted: Tue Sep 06, 2005 5:30 pm
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
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: 435
Location: chennai, India

PostPosted: Tue Sep 06, 2005 7:26 pm
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: 435
Location: chennai, India

PostPosted: Tue Sep 06, 2005 7:30 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Fetch data from programs execute (dat... DB2 3
No new posts CA7 deleting files in steps after job... CA Products 4
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
Search our Forums:

Back to Top