View previous topic :: View next topic
|
Author |
Message |
subbubannurutcs
New User
Joined: 15 Oct 2006 Posts: 11
|
|
|
|
How to skip the steps in the proc
For example the PROC consists of 5 steps the proc can be used by 3 jobs
Q1.the first job skip the second step in the proc and execute the other steps how
Q2 the second job executes the last three steps how
Q3 the third job executes the only first 3 steps how
With out changing the PROC what to do in the jobs |
|
Back to top |
|
|
SumanM
New User
Joined: 24 Sep 2006 Posts: 9 Location: CALCUTTA
|
|
|
|
hi ,
u simply override the cond parameter from jobs like
........,COND=(0,LE,STEPNAME).
-SUMAN |
|
Back to top |
|
|
subbubannurutcs
New User
Joined: 15 Oct 2006 Posts: 11
|
|
|
|
Hey piyush,
how to skip the first two steps in the proc and executes the last three steps in th eproc through jcl? |
|
Back to top |
|
|
mansoor22
New User
Joined: 12 Apr 2006 Posts: 3
|
|
|
|
subbubannurutcs wrote: |
How to skip the steps in the proc
For example the PROC consists of 5 steps the proc can be used by 3 jobs
Q1.the first job skip the second step in the proc and execute the other steps how
Q2 the second job executes the last three steps how
Q3 the third job executes the only first 3 steps how
With out changing the PROC what to do in the jobs |
For Q1 & Q3 in the Proc invoking step have the following logic
//PRINVSTP EXEC PROC1,
// COND.STEP002=(0,LE)
For Q2 in the Job card have
//............ NOTIFY=&SYSUID,RESTART=PRINVSTP.STEP003
I don't think we can bypass the first step of a Proc or Job with a COND parameter, correct me if I am wrong. |
|
Back to top |
|
|
SHAILESH OZA
New User
Joined: 10 Jun 2005 Posts: 21 Location: Mumbai
|
|
|
|
if you us COND=ONLY THEN YOU CAN SKOP FIRST STEP |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
Instead of using the old cond-parameter, you could also control the
StepFlow with teh IF parameter.
// IF (RC EQ 4) THEN
//*
//STEP100 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=DatasetName
//SYSUT2 DD SYSOUT=*
//*
// ENDIF
//*
Regards, UmeySan |
|
Back to top |
|
|
nabarun
New User
Joined: 27 Apr 2005 Posts: 13 Location: india
|
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi nabarun !
What do you tink, i was talking about ?
But thanks for the nice link !
Regards, Umeysan |
|
Back to top |
|
|
rajesh_1183
Active User
Joined: 24 Nov 2005 Posts: 121 Location: Tadepalligudem
|
|
|
|
Code: |
//JOBNAME,JOB,NOTIFY=&SYSUID,TIME=1
//STEP EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT1 DD DSN=(PATH WHERE 5 STEP JCL IS PRESENT),DISP=SHR
//SYSUT2 DD DSN=(*,INTRDR),DISP=SHR
//SYSIN DD *
EDIT TYPE=INCLUDE
STEP NAME=(STEP1,STEP2,STEP4,STEP5)
/*
//
|
THIS WILL EXECUTE ONLY THE MENTIONED STEPS IN THE SYSIN CARD.
Thanks,
Rajesh |
|
Back to top |
|
|
mansoor22
New User
Joined: 12 Apr 2006 Posts: 3
|
|
|
|
Hi SHAILESH OZA
Thanks for the input. It really works !!!
Regards,
Mansoor. |
|
Back to top |
|
|
|