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
 

 

Want to execute only step2 not step1 and STEP3...

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
babuprasad_g
Currently Banned

New User


Joined: 26 May 2005
Posts: 45
Location: gurgaon

PostPosted: Mon Nov 07, 2005 3:05 pm    Post subject: Want to execute only step2 not step1 and STEP3...
Reply with quote

We have three steps
// step1
.
.
.
// step2
.
.
.
//step3...
.
.
My question is i want to execute only step2 not step1 aND STEP3...
How is this possible
Back to top
View user's profile Send private message

ikumar

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Mon Nov 07, 2005 3:56 pm    Post subject: Re: About JCL Steps
Reply with quote

code COND=ONLY in the first step and code COND=(0,LE) in the third step...

Cheers,
Kumar.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Mon Nov 07, 2005 5:11 pm    Post subject: Re: About JCL Steps
Reply with quote

HI,

Quote:
My question is i want to execute only step2 not step1 aND STEP3...


This topic already discussed.

Please make search before posting the topic.

Regards
Rupesh
Back to top
View user's profile Send private message
appasi

New User


Joined: 12 Dec 2005
Posts: 20
Location: Bangalore

PostPosted: Tue Dec 27, 2005 4:30 pm    Post subject:
Reply with quote

Hi babuprasad_g,

code RESTART = step2 in Jobcard,
and in third step code COND=(0,LE).
by coding this only step2 is executed
not the step1 & step3.

correct me if i am wrong
Back to top
View user's profile Send private message
babuprasad_g
Currently Banned

New User


Joined: 26 May 2005
Posts: 45
Location: gurgaon

PostPosted: Tue Dec 27, 2005 7:04 pm    Post subject: Re: About JCL Steps
Reply with quote

Hi Appasi,

If we put restart = step 2.the job will start from step 2 onwards.
it will execute all the steps from step 2.i think not only step 2.
Back to top
View user's profile Send private message
appasi

New User


Joined: 12 Dec 2005
Posts: 20
Location: Bangalore

PostPosted: Thu Jan 19, 2006 3:47 pm    Post subject:
Reply with quote

Hi babuprasad_g,

I think you have not seen my given
code, please go through it you will
come to know how it will help to exe
cute only the second step.

if not correct me
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Jan 19, 2006 4:36 pm    Post subject:
Reply with quote

First, Rupesh is right, make a search before posting.
Appasi, you are right but why don't you code the COND in jobcard???
Code:
//  RESTART=STEP2,COND=(0,LE)
Back to top
View user's profile Send private message
appasi

New User


Joined: 12 Dec 2005
Posts: 20
Location: Bangalore

PostPosted: Thu Jan 19, 2006 5:00 pm    Post subject:
Reply with quote

Hi MGIndaco,

Please check that i have clearly mentioned
that code the cond in third step ok.

if not so correct me.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Jan 19, 2006 6:08 pm    Post subject:
Reply with quote

I read your reply, and I suggest you another method.
But if you have many step you must to code COND in 3th, 4th n.th.
If you put COND in jobcard you can avoid those in steps.

I hope in this.
Back to top
View user's profile Send private message
pa1chandak
Currently Banned

New User


Joined: 31 Jan 2006
Posts: 55

PostPosted: Thu Feb 02, 2006 9:51 am    Post subject:
Reply with quote

THIS IS PERFECT

// RESTART=STEP2,COND=(0,LE) ..........IN JOB TO EXECUTE ONLY PERTICULAR STEP




IF I AM WRONG SOMEWHERE PLEASE CORRECT ME

THANK YOU

DO SEND ME THE REPLY

PAWAN

09822546416

// THE ONE I LOVE , I SHALL NEVER BLAME //
Back to top
View user's profile Send private message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Thu Feb 02, 2006 10:31 am    Post subject: Re: About JCL Steps
Reply with quote

Hai All,

To execute a particular step, place .A infront of(in linenumbers) that step
and .B infront of the end of that step.

AND GIVE "SUB .A .B" IN THE COMMAND LINE. This will submit only ur step 2.

This Should work. You need not submit job card coz it will intiate default JOB CARD. If you are doing it thru PROC , then give "SUB .A .B" in the JCl which is running the PROC .

Correction are welcomed.

Elonics.
Back to top
View user's profile Send private message
yogesh.yvm

New User


Joined: 02 Oct 2007
Posts: 1
Location: pune

PostPosted: Wed Oct 03, 2007 4:55 pm    Post subject:
Reply with quote

code RESTART=STEP2,COND=(0,LE).ON JOBCARD.
so due to this it will just execute step2 only....
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: Chennai

PostPosted: Wed Oct 03, 2007 5:53 pm    Post subject:
Reply with quote

Hi all,

Quote:
My question is i want to execute only step2 not step1 aND STEP3...


Use IEBEDIT utility to perfom above task. Its very user friendly.

//STEP01 EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=dsn-name,DISP=SHR
//*
//*DSN-NAME IS ONE CONTAINING YOUR JCL STATEMENTS
//*
//SYSIN DD *

INCLUDE STEP=(STEP001,STEP003)

/*

THANKS AND REGARDS
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Oct 03, 2007 6:10 pm    Post subject:
Reply with quote

Hemanth,

Very thanks for the JCL. Im sure the person who started the query either GOT the required thing previously or DOESN'T need this anymore (as this being 2005 post). icon_smile.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Wed Oct 03, 2007 6:15 pm    Post subject:
Reply with quote

Hi Yogesh & Welcome to Forums,

You are bit late in answering the thread. Last post, for this thread, before yours, was posted on Feb 02, 2006. icon_smile.gif
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: Chennai

PostPosted: Thu Oct 04, 2007 12:52 pm    Post subject:
Reply with quote

Hi Murali,

You are most welcome.... icon_rolleyes.gif

Thanks N Regards
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 execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm
No new posts CALL MACRO EXECUTE FORM - Setting the... sudarshan.srivathsav PL/I & Assembler 7 Tue Feb 09, 2016 10:32 pm
No new posts How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm


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