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 to skip the steps in the proc ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to skip the steps in the proc
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    Post subject:
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    Post subject: Re: How to skip the steps in the proc ?
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    Post subject: Re: how to skip the steps in the proc
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    Post subject:
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: 743
Location: Germany

PostPosted: Tue Nov 07, 2006 2:31 pm    Post subject: Re: How to skip the steps in the proc ?
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    Post subject: Re: How to skip the steps in the proc ?
Reply with quote

hi check this cool link u will find something better then COND of JCL
http://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: 743
Location: Germany

PostPosted: Tue Nov 07, 2006 4:18 pm    Post subject:
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    Post subject:
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    Post subject:
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    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 why i need hit enter after EXECIO * D... jackzhang75 CLIST & REXX 10 Fri May 20, 2016 9:16 pm
No new posts New PROC not reflecting in prod even ... Musab Ahmed CA Products 9 Tue Mar 15, 2016 12:45 pm
This topic is locked: you cannot edit posts or make replies. Executing JCL specific steps at speci... Shruti Takkar JCL & VSAM 6 Mon Feb 22, 2016 12:39 pm
No new posts How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm
No new posts PROC to JCL mapping jena_samirkumar JCL & VSAM 13 Tue Dec 08, 2015 12:37 pm


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