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

Execute first few steps of PROC


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
faizm

New User


Joined: 13 Apr 2012
Posts: 59
Location: India

PostPosted: Wed Dec 05, 2012 2:38 pm
Reply with quote

Hi,
I have to execute only first few steps of PROC. As a rule, we cannot use the NULL statement in PROC. Also, we have the restriction of changing the PROC in our environment. Can we override the PROC in JCL with the null statement after those steps that we need to execute, if so then how?
Thanks
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Wed Dec 05, 2012 2:41 pm
Reply with quote

If you can modify the actual JCL with overrides, what stops you from actually copying the proc to an in-stream one and zap those steps??????
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Wed Dec 05, 2012 2:41 pm
Reply with quote

You can achieve this by using IEBEDIT

Numerous examples in forum

Search for IEBEDIT in forum
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Dec 05, 2012 7:07 pm
Reply with quote

Quote:
As a rule, we cannot use the NULL statement in PROC.
Is it an interview question?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Dec 06, 2012 4:21 am
Reply with quote

Hi,

a couple more options (I prefer Robert's option)

Override the first step you do not want to run by adding a DDNAME pointing to a non existent dataset which will result in a JCL error, not pretty but will do the job.


Add something like this
Code:
//GO       EXEC PROC1234,                   
//         COND.STEP03=(0,LE),             
//         COND.STEP04=(0,LE),             
//         COND.STEP05=(0,LE)               

This will flush STEP03 STEP04 & STEP05


Gerry
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