View previous topic :: View next topic
|
Author |
Message |
Vidhya Karthi
New User
Joined: 28 Aug 2007 Posts: 18 Location: Chennai
|
|
|
|
Hi,
I have 10 steps in JCL. But, I have to execute only 5th step.
Can anyone provide the syntax for executing the particular step using COND parm?
Thanks,
Vidhya. |
|
Back to top |
|
|
manihcl85 Warnings : 1 New User
Joined: 11 Jan 2007 Posts: 52 Location: chennai
|
|
|
|
Hi,
Use Restarrt option and use // to stop after step5
e.g
//XXXXXX JOB 'MANI',CLASS=D,MSGCLASS=I,
// NOTIFY=&SYSUID,RESTART=STEP5
***
STEP 5PROCESSING END HERE
//
Regards,
Mani |
|
Back to top |
|
|
chandracdac
New User
Joined: 15 Jun 2007 Posts: 92 Location: bangalore
|
|
|
|
by using restart option we can do this |
|
Back to top |
|
|
Vidhya Karthi
New User
Joined: 28 Aug 2007 Posts: 18 Location: Chennai
|
|
|
|
Hi Mani,
Thanks for u'r reply. The reply u provided was right. But, I got a feedback from many of the interviewers that it is not a good programmer practise. Best option is usage of COND parameter. But, I'm not aware of the syntax. So, if possible plz do provide. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
Back to top |
|
|
Vidhya Karthi
New User
Joined: 28 Aug 2007 Posts: 18 Location: Chennai
|
|
|
|
Got the answer..
Thanks for the replies.. |
|
Back to top |
|
|
ram.prabhu
New User
Joined: 12 Sep 2007 Posts: 3 Location: chennai
|
|
|
|
Hi Vidhya
As per the above discussion we can use the COND parameter by using the use of RC.... The second way of soing this is in the JCL we can use JE# and JI# Cards... for eg:-
Code: |
JE#
//STEP010 EXEC PGM=ICEMAN
//INPUTFLE DD DSN=AAA.BBB.CCC,DISP=SHR
//OUTPUTFLE DD DSN=XXX.YYY.ZZZ,DISP=(NEW,CATLG,CATLG)
JE#
/*
JI#
STEP020 EXEC PGM=FILEAID
//INPUTFLE DD DSN=AAA.BBB.CCC,DISP=SHR
//OUTPUTFLE DD DSN=XXX.YYY.ZZZ,DISP=(NEW,CATLG,CATLG)
JI#
In the above JCL the First Step is Excluded and the Second Step is included by using the JI# card.. So the result is only the Second Step would be executed and the first step is Ommitted... We can also use the JO# ( Omit Card )...If u still have any clarifications pls revert back..or mail me ram.prabhu@ge.com
Thanks & Regards,
V.Ram Narayan |
|
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Ram,
Please dont include mail id in the post.
Moderators,
Please edit ram.prabhu post. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
what did you use? RESTART or COND or IEBEDIT. Please share the solution. |
|
Back to top |
|
|
ksk
Active User
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
Hi,
Here is the JCL which would execute only the given step in the EDIT
TYPE of the sysin card. I executed this successfully.
//JOBNAME JOB (2404),TEST,MSGLEVEL=(1,1),CLASS=K,MSGCLASS=X,
// NOTIFY=&SYSUID
//STEP0001 EXEC PGM=IEBEDIT
//SYSUT1 DD DISP=SHR,DSN=TEST.JCL(MEMBER)
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DATA
EDIT TYPE=INCLUDE,STEPNAME=S5
KSK |
|
Back to top |
|
|
diwa_thilak
Active User
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
|
|
|
|
Ram,
What do you mean by Include/Exclude/Omit ?
So when will be the step010 will be executed ?
Vidhya,
Just take some time to share your solution with us.
Cheers,
Diwakar
------------------
Nobody is Perfect. I am Nobody |
|
Back to top |
|
|
snehalpatel
New User
Joined: 13 Sep 2007 Posts: 37 Location: India
|
|
|
|
ksk wrote: |
Hi,
Here is the JCL which would execute only the given step in the EDIT
TYPE of the sysin card. I executed this successfully.
//JOBNAME JOB (2404),TEST,MSGLEVEL=(1,1),CLASS=K,MSGCLASS=X,
// NOTIFY=&SYSUID
//STEP0001 EXEC PGM=IEBEDIT
//SYSUT1 DD DISP=SHR,DSN=TEST.JCL(MEMBER)
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DATA
EDIT TYPE=INCLUDE,STEPNAME=S5
KSK |
Thanks for this JCL
It went fine. I would like to know :
1) If we had 10 steps and wanted to excute 5 and 8 steps only then what changes are required in this JCl (IEBEDIT ) ?
2) Suppose we want to excute step5 onwards all remaining steps then what changes are required in this JCl (IEBEDIT ) ? |
|
Back to top |
|
|
ksk
Active User
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
Hi snehalpatel,
1) If you want to execute steps 5 and 8, just you need to change STEPNAME in controlcard.
E.g, STEPNAME=(S5,S8)
2) If you want to execute all reamining steps after STEP S5, code all STEP names for this parameter.
E.g, STEPNAME=(S5,S6,S7,S8,S9,S10)
I hope, I answered ur question.
KSK |
|
Back to top |
|
|
snehalpatel
New User
Joined: 13 Sep 2007 Posts: 37 Location: India
|
|
|
|
ksk wrote: |
Hi snehalpatel,
1) If you want to execute steps 5 and 8, just you need to change STEPNAME in controlcard.
E.g, STEPNAME=(S5,S8)
2) If you want to execute all reamining steps after STEP S5, code all STEP names for this parameter.
E.g, STEPNAME=(S5,S6,S7,S8,S9,S10)
I hope, I answered ur question.
KSK |
Thanks a lot ;-) Both JCL went fine ;-) |
|
Back to top |
|
|
Arun Kumar Tupili
New User
Joined: 30 Nov 2006 Posts: 14 Location: Banglore
|
|
|
|
Can't we use DPRTY=(15,15) for Step5, so that Step5 gets priority First and gets executed if we have 10 steps (for Example) in a Job.
Arun |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Can't we use DPRTY=(15,15) for Step5, so that Step5 gets priority First and gets executed |
No, you cannot. |
|
Back to top |
|
|
|