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

Only to execute STEP100


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Sep 16, 2008 1:34 pm
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
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: 2481
Location: @my desk

PostPosted: Tue Sep 16, 2008 3:45 pm
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: 1702
Location: Australia

PostPosted: Tue Sep 16, 2008 3:57 pm
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
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: 1702
Location: Australia

PostPosted: Tue Sep 16, 2008 3:59 pm
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
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
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
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
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
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
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: 2481
Location: @my desk

PostPosted: Tue Sep 16, 2008 4:17 pm
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: 8797
Location: Welsh Wales

PostPosted: Tue Sep 16, 2008 4:59 pm
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
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: 1702
Location: Australia

PostPosted: Fri Sep 19, 2008 5:00 am
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
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: 8797
Location: Welsh Wales

PostPosted: Mon Sep 22, 2008 5:02 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Fetch data from programs execute (dat... DB2 3
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
No new posts Execute REXX on logon with ISPF CLIST & REXX 3
Search our Forums:

Back to Top