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
 

 

Execution of a Single step

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Execution of a Single step
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    Post subject:
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: 87
Location: bangalore

PostPosted: Wed Sep 05, 2007 12:02 pm    Post subject: Reply to: Execution of a Single step
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    Post subject: Reply to: Execution of a Single step
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: 1288
Location: Chennai, India

PostPosted: Wed Sep 05, 2007 12:21 pm    Post subject: Reply to: Execution of a Single step
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    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Thu Sep 20, 2007 12:13 pm    Post subject:
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: 1288
Location: Chennai, India

PostPosted: Thu Sep 20, 2007 12:13 pm    Post subject: Reply to: Execution of a Single step
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: 356
Location: New York

PostPosted: Thu Sep 20, 2007 12:18 pm    Post subject:
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    Post subject:
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    Post subject:
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: 356
Location: New York

PostPosted: Thu Sep 20, 2007 2:15 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: Execution of a Single step
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

Site Director


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

PostPosted: Fri Sep 21, 2007 8:32 pm    Post subject:
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.    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 Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts output DDname JESMSGLG job during exe... italo_pm TSO/ISPF 16 Tue Jun 21, 2016 11:13 am


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