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
 

 

Only to execute STEP100

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
swapnadeep.ganguly

Active User


Joined: 21 Mar 2007
Posts: 203
Location: India

PostPosted: Tue Sep 16, 2008 1:29 pm    Post subject: Only to execute STEP100
Reply with quote

Hi,

In an interview I was asked following question:

There is a job that contains 200 steps. It is required to execute only the 100th Step. How can this be done?

I have the idea about how to restart the job from STEP100 by using RESTART=STEP100. But how can we by pass the remaining steps (i.e. STEP101 to STEP200)???

Its a bad method to used DSN=DUMMY and over ride the remaining steps. Is there any short method?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 16, 2008 1:34 pm    Post subject:
Reply with quote

Ho hummm, this has been asked so many times before.

Restart at the required step and code COND=(0,LE) on the jobcard.
Back to top
View user's profile Send private message
swapnadeep.ganguly

Active User


Joined: 21 Mar 2007
Posts: 203
Location: India

PostPosted: Tue Sep 16, 2008 3:42 pm    Post subject:
Reply with quote

But are we to code this COND=(0,LE) for all the steps?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2158
Location: @my desk

PostPosted: Tue Sep 16, 2008 3:45 pm    Post subject:
Reply with quote

swapnadeep.ganguly,

Quote:
Restart at the required step and code COND=(0,LE) on the jobcard.

I guess you missed this out icon_lol.gif .

Thanks,
Arun
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Sep 16, 2008 3:57 pm    Post subject:
Reply with quote

I can't wait for the next reply icon_lol.gif


Gerry
Back to top
View user's profile Send private message
swapnadeep.ganguly

Active User


Joined: 21 Mar 2007
Posts: 203
Location: India

PostPosted: Tue Sep 16, 2008 3:59 pm    Post subject:
Reply with quote

Hi,

I think there is some issue with my computer for which the same reply is being posted two times.

Moderator can you please remove one of the replies.

This is creating a bit of confusion.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Tue Sep 16, 2008 3:59 pm    Post subject:
Reply with quote

Also I'm assuming Mr Ganguly didn't do well with his interview.


Gerry
Back to top
View user's profile Send private message
swapnadeep.ganguly

Active User


Joined: 21 Mar 2007
Posts: 203
Location: India

PostPosted: Tue Sep 16, 2008 4:01 pm    Post subject:
Reply with quote

Gerry,

That's not the issue... This was one of the questions on which I faltered... For that reason to have my knowledge enhanched, I posted the same question in the forum....
Back to top
View user's profile Send private message
Manuneedhi K

Active User


Joined: 07 May 2008
Posts: 115
Location: Chennai

PostPosted: Tue Sep 16, 2008 4:05 pm    Post subject:
Reply with quote

I think you are missing the point here.

You jobcard must include this to run just the step100
RESTART=STEP100,COND=(0,LE)
Back to top
View user's profile Send private message
swapnadeep.ganguly

Active User


Joined: 21 Mar 2007
Posts: 203
Location: India

PostPosted: Tue Sep 16, 2008 4:06 pm    Post subject:
Reply with quote

Thanks Manu.
Back to top
View user's profile Send private message
Manuneedhi K

Active User


Joined: 07 May 2008
Posts: 115
Location: Chennai

PostPosted: Tue Sep 16, 2008 4:07 pm    Post subject:
Reply with quote

Oops.. Please ignore my post . I was referring to the double post and only now saw you clarifying that it wasn't done deliberately.
Back to top
View user's profile Send private message
vishal_arora

New User


Joined: 20 May 2005
Posts: 16

PostPosted: Tue Sep 16, 2008 4:12 pm    Post subject: Reply to: Only to execute STEP100
Reply with quote

One more easy way :

1. On the jobcard put RESTART=STEP100 and after STEP100 put a // so next steps will not get executed.

2. On STEP100 put a label as .A on the Num being displayed.
Then do SUB .A . This will ensure only step100 will execute.
Back to top
View user's profile Send private message
swapnadeep.ganguly

Active User


Joined: 21 Mar 2007
Posts: 203
Location: India

PostPosted: Tue Sep 16, 2008 4:14 pm    Post subject:
Reply with quote

Hi Vishal,

We are not to make any changes in the PROC. What ever changes that we are doing, we can update the Job card that we are using....
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2158
Location: @my desk

PostPosted: Tue Sep 16, 2008 4:17 pm    Post subject:
Reply with quote

Swapnadeep,

The below link might be of some help.

http://publib.boulder.ibm.com/infocenter/zos/v1r9/index.jsp?topic=/com.ibm.zos.r9.ieab500/iea2b54086.htm

Thanks,
Arun
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 16, 2008 4:59 pm    Post subject:
Reply with quote

Just for clarification, by coding COND=(0,LE) on the JOBCARD this will apply that particular condition checking for every step within the job, except for the first step or the step from where a restart was executed.
Back to top
View user's profile Send private message
gvel19

New User


Joined: 20 Jul 2008
Posts: 19
Location: Schenactady, US

PostPosted: Thu Sep 18, 2008 6:11 pm    Post subject: Reply to: Only to execute STEP100
Reply with quote

Hi Swapnadeep,

Write a new jcl using PGM=IEBEDIT and mention the input file (which has got 200 steps) and under the SYSIN mention the following

INCLUDE COND=(STEP100)

Then run the new job. Now your job will invoke only STEP100 and only that step will get executed.

Thanks,
Velmurugan G
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Fri Sep 19, 2008 5:00 am    Post subject:
Reply with quote

Hi,

I have some questions regarding IEBEDIT

How do you extract the step from a PROC ?


Also IEBEDIT does not handle IF/THEN/ELSE/ENDIF very well when selecting a STEP or STEPS.

It leaves the ENDIF statement hanging without the IF statement.


Gerry
Back to top
View user's profile Send private message
gvel19

New User


Joined: 20 Jul 2008
Posts: 19
Location: Schenactady, US

PostPosted: Mon Sep 22, 2008 4:38 pm    Post subject: Reply to: Only to execute STEP100
Reply with quote

I have a JCL which 200 steps. How do I execute 100 th step
alone.


//STEP001 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXX.GENERAL.STUDY(TEST001),DISP=SHR
//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP100)/*
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Sep 22, 2008 5:02 pm    Post subject:
Reply with quote

gvel19

I believe that your job will not extract the required from the procedure.

Please post you sucessful output.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm
No new posts CALL MACRO EXECUTE FORM - Setting the... sudarshan.srivathsav PL/I & Assembler 7 Tue Feb 09, 2016 10:32 pm
No new posts How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm


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