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

How to skip the steps in the proc ?


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

New User


Joined: 15 Oct 2006
Posts: 11

PostPosted: Sun Oct 15, 2006 4:00 pm
Reply with quote

How to skip the steps in the proc

For example the PROC consists of 5 steps the proc can be used by 3 jobs
Q1.the first job skip the second step in the proc and execute the other steps how
Q2 the second job executes the last three steps how
Q3 the third job executes the only first 3 steps how

With out changing the PROC what to do in the jobs
Back to top
View user's profile Send private message
SumanM

New User


Joined: 24 Sep 2006
Posts: 9
Location: CALCUTTA

PostPosted: Mon Oct 16, 2006 9:57 am
Reply with quote

hi ,
u simply override the cond parameter from jobs like
........,COND=(0,LE,STEPNAME).

-SUMAN
Back to top
View user's profile Send private message
subbubannurutcs

New User


Joined: 15 Oct 2006
Posts: 11

PostPosted: Wed Oct 18, 2006 11:07 am
Reply with quote

Hey piyush,

how to skip the first two steps in the proc and executes the last three steps in th eproc through jcl?
Back to top
View user's profile Send private message
mansoor22

New User


Joined: 12 Apr 2006
Posts: 3

PostPosted: Thu Oct 19, 2006 7:13 pm
Reply with quote

subbubannurutcs wrote:
How to skip the steps in the proc

For example the PROC consists of 5 steps the proc can be used by 3 jobs
Q1.the first job skip the second step in the proc and execute the other steps how
Q2 the second job executes the last three steps how
Q3 the third job executes the only first 3 steps how

With out changing the PROC what to do in the jobs


For Q1 & Q3 in the Proc invoking step have the following logic

//PRINVSTP EXEC PROC1,
// COND.STEP002=(0,LE)

For Q2 in the Job card have
//............ NOTIFY=&SYSUID,RESTART=PRINVSTP.STEP003

I don't think we can bypass the first step of a Proc or Job with a COND parameter, correct me if I am wrong. icon_smile.gif
Back to top
View user's profile Send private message
SHAILESH OZA

New User


Joined: 10 Jun 2005
Posts: 21
Location: Mumbai

PostPosted: Tue Nov 07, 2006 1:59 pm
Reply with quote

if you us COND=ONLY THEN YOU CAN SKOP FIRST STEP
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Nov 07, 2006 2:31 pm
Reply with quote

Hi !

Instead of using the old cond-parameter, you could also control the
StepFlow with teh IF parameter.

// IF (RC EQ 4) THEN
//*
//STEP100 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=DatasetName
//SYSUT2 DD SYSOUT=*
//*
// ENDIF
//*


Regards, UmeySan
Back to top
View user's profile Send private message
nabarun

New User


Joined: 27 Apr 2005
Posts: 13
Location: india

PostPosted: Tue Nov 07, 2006 3:46 pm
Reply with quote

hi check this cool link u will find something better then COND of JCL
www.geocities.com/*****/drona/programming/languages/jcl/jcl.chapter10.html
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Nov 07, 2006 4:18 pm
Reply with quote

Hi nabarun !

What do you tink, i was talking about ?

But thanks for the nice link !

Regards, Umeysan
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Tue Nov 07, 2006 4:42 pm
Reply with quote

Code:

//JOBNAME,JOB,NOTIFY=&SYSUID,TIME=1
//STEP EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT1 DD DSN=(PATH WHERE 5 STEP JCL IS PRESENT),DISP=SHR
//SYSUT2 DD DSN=(*,INTRDR),DISP=SHR
//SYSIN DD *
EDIT TYPE=INCLUDE
STEP NAME=(STEP1,STEP2,STEP4,STEP5)
/*
//

THIS WILL EXECUTE ONLY THE MENTIONED STEPS IN THE SYSIN CARD.

Thanks,
Rajesh
Back to top
View user's profile Send private message
mansoor22

New User


Joined: 12 Apr 2006
Posts: 3

PostPosted: Wed Nov 08, 2006 6:36 pm
Reply with quote

Hi SHAILESH OZA

Thanks for the input. It really works !!!

Regards,
Mansoor.
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 CA7 deleting files in steps after job... CA Products 4
No new posts SKIP LOCKED DATA in UPDATE statement DB2 9
No new posts Proc print in Mainframe All Other Mainframe Topics 4
No new posts Identify the count from two diffrent ... DFSORT/ICETOOL 19
No new posts trying to set return code in PROC JCL & VSAM 15
Search our Forums:

Back to Top