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
 

 

Want to restart at 3'rd step only in PROCS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Want to restart at 3'rd step only in PROCS
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

Site Director


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

PostPosted: Sun Apr 29, 2007 1:36 pm    Post subject:
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    Post subject: Restart
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: 1439
Location: Bangalore,India

PostPosted: Mon Apr 30, 2007 3:00 pm    Post subject:
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    Post subject: murmohk1
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

Site Director


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

PostPosted: Mon Apr 30, 2007 7:18 pm    Post subject:
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    Post subject: Want to restart at 3'rd step only in PROCS
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: Chennai

PostPosted: Mon Apr 30, 2007 7:31 pm    Post subject: Re: Want to restart at 3'rd step only in PROCS
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    Post subject:
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    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 Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 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 Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm


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