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

How to execute the first five steps among 10 steps


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

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Thu Mar 24, 2005 7:41 pm
Reply with quote

If you have 10 steps in a job then how could you execute the first five steps only.
Back to top
View user's profile Send private message
ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Thu Mar 24, 2005 7:50 pm
Reply with quote

Hi,

Your question is not clear. If you want to stop your program at 5th step, then code only 5 steps. are use COND parameter in 6th step that never executes the 6th step ( In both the cases when 5th step executed successfully or filed).

If you dont mind one more suggestion, Please use your own name instead of learnmf. So that all of us will be in a friendly mode to address each other.

Thanks,
Reddy.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Mar 24, 2005 10:33 pm
Reply with quote

If you want to edit the job, you can always use edit "tags" to indicate the start and end for the submit. Mark the starting line with a tag like .A, mark the ending line with a tag like .B, then enter "SUB .A .B":
Code:

Command ===> sub .a .b                                        Scroll ===> CSR 
****** ***************************** Top of Data ******************************
.A     //SUPERK   JOB (T,67423,000),'SUPERK',CLASS=X,MSGCLASS=X,               
000002 //       MSGLEVEL=(1,1),NOTIFY=&SYSUID                                 
000003 //*                                                                     
000004 //STEP0001 EXEC PGM=MYPROG                                             
000005 //*                                                                     
000006 //STEP0002 EXEC PGM=MYPROG                                             
000007 //*                                                                     
000008 //STEP0003 EXEC PGM=MYPROG                                             
000009 //*                                                                     
000010 //STEP0004 EXEC PGM=MYPROG                                             
000011 //*                                                                     
000012 //STEP0005 EXEC PGM=MYPROG                                             
.B     //*                                                                     
000014 //STEP0006 EXEC PGM=MYPROG                                             
000015 //*                                                                     
000016 //STEP0007 EXEC PGM=MYPROG                                             
000017 //*                                                                     
000018 //STEP0008 EXEC PGM=MYPROG                                             
000019 //*                                                                     
000020 //STEP0009 EXEC PGM=MYPROG                                             
Back to top
View user's profile Send private message
sudhaaa

New User


Joined: 24 Mar 2005
Posts: 51

PostPosted: Sat Mar 26, 2005 11:39 am
Reply with quote

Hi, it's nice to hear a good answer from you. Can I do the same thing if I want to execute step1 to step4 and step6 to step10?
Back to top
View user's profile Send private message
somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Mon Mar 28, 2005 11:31 pm
Reply with quote

Sudhaa
There is a solution for this using IEBEDIT and Internal Reader.
Code:


//EDITSTEP EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD <sequential input data set containing your job>
//SYSUT2  DD  SYSOUT=(B,INTRDR)
//SYSIN  DD *
 EDIT START=JOBNAME,
      TYPE=INCLUDE,
      STEPNAME=(STEP1,STEP2,STEP3,STEP4,STEP6,....)
/*
//


Note:

EDIT START=JOBNAME
Replace JOBNAME with the actual name of the
JOB in the SYSUT1 dataset that you want to process.

hth
-Som
Back to top
View user's profile Send private message
uma

New User


Joined: 18 Mar 2005
Posts: 8

PostPosted: Thu Mar 31, 2005 7:26 pm
Reply with quote

hi....

I would like to know that like sub .a .b as provided in the eg above do we have something in catalogued proc to achieve the same.I mean something other than conditional codes ,//* ,or over ridingconditional parameters thru jcl.

uma
Back to top
View user's profile Send private message
Prash

New User


Joined: 06 Apr 2005
Posts: 1
Location: Banglore

PostPosted: Thu Apr 28, 2005 10:12 am
Reply with quote

Hi Somsundar,

i would like to know more abt IEBEDIT and Internal Reader.
Whether we have to specify steps name that r to be executed in the stepname?
What is the limkit of steps we can specify using this utility?

thanks & regards,
Prashant
Back to top
View user's profile Send private message
gvt460

New User


Joined: 04 Mar 2005
Posts: 23

PostPosted: Thu Apr 28, 2005 12:58 pm
Reply with quote

i am submitting job by using iebedit it is going into the loop.it is cancelling.
what is error?
is the program should be in the ps file?
can i write my job in pds?
how can execute perticular steps in proc?
plz give me answer.....
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Apr 28, 2005 3:42 pm
Reply with quote

Prash, gvt460:

Have either of you bothered to read up on the IEBEDIT utility? I think that the documentation will answer any questions you may have:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt1u104/5.0?DT=19990113105507
Back to top
View user's profile Send private message
mssasidhar

New User


Joined: 23 May 2005
Posts: 2

PostPosted: Mon May 23, 2005 4:49 pm
Reply with quote

Place the Null statement after the Step5. Then the first 5 steps only be executed.
Null statement means : //
Ex:
//JOB1 JOB
//STEP1 EXEC
//STEP2 EXEC
//STEP3 EXEC
//STEP4 EXEC
//STEP5 EXEC
//
//STEP6 EXEC
//STEP7 EXEC

In the above example the first 5 steps will be executed.
Back to top
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Mon May 23, 2005 5:07 pm
Reply with quote

Hi,
Good answer mssasidhar.
Back to top
View user's profile Send private message
machswap

New User


Joined: 19 Apr 2005
Posts: 14

PostPosted: Mon May 23, 2005 5:39 pm
Reply with quote

ovreddy wrote:
Hi,

Your question is not clear. If you want to stop your program at 5th step, then code only 5 steps. are use COND parameter in 6th step that never executes the 6th step ( In both the cases when 5th step executed successfully or filed).

If you dont mind one more suggestion, Please use your own name instead of learnmf. So that all of us will be in a friendly mode to address each other.

Thanks,
Reddy.


u have to just give // at the end of the 5th step
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