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

Want to restart at 3'rd step only in PROCS


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
suresh_gop1
Warnings : 1

New User


Joined: 23 May 2006
Posts: 18

PostPosted: Sun Apr 29, 2007 10:12 am
Reply with quote

Hi,

I faced question about PROCS in the interview recently. I have one PROC which contains 3 steps. first step executed successfully. second step got abened. I want to restart at 3'rd step only. how can I put condition here.
please tell me
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sun Apr 29, 2007 1:36 pm
Reply with quote

Hello,

Look up RESTART in the JCL manual linked to from this site (top of the page, there is a "Manuals" button).

For your example, you would "restart" the job in step3.
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Mon Apr 30, 2007 2:55 pm
Reply with quote

hi,

Use restart parameter in the job card.

Additionally if u want to run only the third step then place a null statement after the step in the proc.

thanks
Back to top
View user's profile Send private message
murmohk1

Senior Member


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

PostPosted: Mon Apr 30, 2007 3:00 pm
Reply with quote

pingte,

Quote:
if u want to run only the third step then place a null statement after the step in the proc.


Could you please share how can you put NULL character after 3rd step which is there inside the proc from job?
Back to top
View user's profile Send private message
pingte

Active User


Joined: 03 Dec 2005
Posts: 120
Location: india

PostPosted: Mon Apr 30, 2007 3:15 pm
Reply with quote

hi murmohk1,

null character has to be put manually in the proc...
i never mentioned that the job will put it in the proc

pingte
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Apr 30, 2007 7:18 pm
Reply with quote

Hello,

A null statement should not be put in a proc.

The RESTART is the way to accomplish this requirement.
Back to top
View user's profile Send private message
suresh_gop1
Warnings : 1

New User


Joined: 23 May 2006
Posts: 18

PostPosted: Mon Apr 30, 2007 7:26 pm
Reply with quote

Please write the RESTART code.
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Mon Apr 30, 2007 7:31 pm
Reply with quote

you will find it in the manuals icon_wink.gif
Any way here it is
Quote:
Syntax:

RESTART={* }
{stepname }
{stepname.procstepname }
{stepname.procstepname,checkid}

'*' says the job will restart at the top or within the first job
step

'stepname' names the step in the job where restart is to done

'procstepname' is the name of the procedure step (within the proc
invoked by job step 'stepname') for which restart is to done

'checkid' is the number of the checkpoint where MVS should restart
execution. If the 'checkid' contains special characters, it must be
enclosed in apostrophes.


For your functionality it will be
RESTART=STEP03
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat May 05, 2007 9:56 pm
Reply with quote

Hi Suresh,

Try putting this in the jobcard:

RESTART=STEPx.PSTEP3,COND=(0,LE)

This executes the 3rd procstep ONLY; nothing before, nothing after.

The restart= will begin the job's execution at your procstep 3.

The COND= prevents any step in the job (except the 1st executed step) from executing if that step returns ANY RC whatsoever.
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top