View previous topic :: View next topic
|
Author |
Message |
learnmf
Active User
Joined: 14 Mar 2005 Posts: 123
|
|
|
|
If you have 10 steps in a job then how could you execute the first five steps only. |
|
Back to top |
|
|
ovreddy
Active User
Joined: 06 Dec 2004 Posts: 211 Location: Keane Inc., Minneapolis USA.
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
sudhaaa
New User
Joined: 24 Mar 2005 Posts: 51
|
|
|
|
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 |
|
|
somasundaran_k
Active User
Joined: 03 Jun 2003 Posts: 134
|
|
|
|
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 |
|
|
uma
New User
Joined: 18 Mar 2005 Posts: 8
|
|
|
|
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 |
|
|
Prash
New User
Joined: 06 Apr 2005 Posts: 1 Location: Banglore
|
|
|
|
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 |
|
|
gvt460
New User
Joined: 04 Mar 2005 Posts: 23
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
mssasidhar
New User
Joined: 23 May 2005 Posts: 2
|
|
|
|
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 |
|
|
subhasis_50
Moderator
Joined: 09 Mar 2005 Posts: 363 Location: Earth
|
|
|
|
Hi,
Good answer mssasidhar. |
|
Back to top |
|
|
machswap
New User
Joined: 19 Apr 2005 Posts: 14
|
|
|
|
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 |
|
|
|