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

Execution of a Single step


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
Vidhya Karthi

New User


Joined: 28 Aug 2007
Posts: 18
Location: Chennai

PostPosted: Wed Sep 05, 2007 11:51 am
Reply with quote

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
View user's profile Send private message
manihcl85
Warnings : 1

New User


Joined: 11 Jan 2007
Posts: 52
Location: chennai

PostPosted: Wed Sep 05, 2007 11:58 am
Reply with quote

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
View user's profile Send private message
chandracdac

New User


Joined: 15 Jun 2007
Posts: 92
Location: bangalore

PostPosted: Wed Sep 05, 2007 12:02 pm
Reply with quote

by using restart option we can do this
Back to top
View user's profile Send private message
Vidhya Karthi

New User


Joined: 28 Aug 2007
Posts: 18
Location: Chennai

PostPosted: Wed Sep 05, 2007 12:18 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Sep 05, 2007 12:21 pm
Reply with quote

You can use RESTART and COND parameter to execute the 5th step alone.

Also You can go for IEBEDIT . Search this forum for the keyword "IEBEDIT".

Do search this forum as it has been answered before. One such link is given below

http://ibmmainframes.com/viewtopic.php?t=23570&highlight=step
Back to top
View user's profile Send private message
Vidhya Karthi

New User


Joined: 28 Aug 2007
Posts: 18
Location: Chennai

PostPosted: Wed Sep 05, 2007 1:28 pm
Reply with quote

Got the answer..
Thanks for the replies..
Back to top
View user's profile Send private message
ram.prabhu

New User


Joined: 12 Sep 2007
Posts: 3
Location: chennai

PostPosted: Thu Sep 20, 2007 12:10 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Sep 20, 2007 12:13 pm
Reply with quote

Ram,

Please dont include mail id in the post.

Moderators,
Please edit ram.prabhu post.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Sep 20, 2007 12:13 pm
Reply with quote

Quote:

Got the answer..


what did you use? RESTART or COND or IEBEDIT. Please share the solution.
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Thu Sep 20, 2007 12:18 pm
Reply with quote

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
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Thu Sep 20, 2007 12:24 pm
Reply with quote

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
View user's profile Send private message
snehalpatel

New User


Joined: 13 Sep 2007
Posts: 37
Location: India

PostPosted: Thu Sep 20, 2007 1:09 pm
Reply with quote

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
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Thu Sep 20, 2007 2:15 pm
Reply with quote

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
View user's profile Send private message
snehalpatel

New User


Joined: 13 Sep 2007
Posts: 37
Location: India

PostPosted: Thu Sep 20, 2007 2:42 pm
Reply with quote

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
View user's profile Send private message
Arun Kumar Tupili

New User


Joined: 30 Nov 2006
Posts: 14
Location: Banglore

PostPosted: Fri Sep 21, 2007 12:48 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Fri Sep 21, 2007 8:32 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts combine multiple unique records into ... DFSORT/ICETOOL 2
No new posts SORT JCL to merge multiple tow into s... DFSORT/ICETOOL 6
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top