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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 463

PostPosted: Mon Nov 07, 2005 5:11 pm
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
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
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
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
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
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
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
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
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
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: India

PostPosted: Wed Oct 03, 2007 5:53 pm
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: 1436
Location: Bangalore,India

PostPosted: Wed Oct 03, 2007 6:10 pm
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

Superior Member


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

PostPosted: Wed Oct 03, 2007 6:15 pm
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: India

PostPosted: Thu Oct 04, 2007 12:52 pm
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 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
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
No new posts Execute REXX on logon with ISPF CLIST & REXX 3
Search our Forums:

Back to Top