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 execute the first five steps among 10 steps

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to execute the first five steps among 10 steps
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    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Mar 24, 2005 10:33 pm    Post subject: Re: Bypass STEP execution
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    Post subject: Hi
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    Post subject:
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    Post subject: Re: How to execute the first five steps among 10 steps
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    Post subject: Re: How to execute the first five steps among 10 steps
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    Post subject: hai
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

Moderator Team Head


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

PostPosted: Thu Apr 28, 2005 3:42 pm    Post subject: Re: How to execute the first five steps among 10 steps
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:

http://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    Post subject: Re: How to execute the first five steps among 10 steps
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    Post subject: Re: How to execute the first five steps among 10 steps
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    Post subject:
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    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 TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
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
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


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