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
 

 

Restarting steps of PROC from JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
maabh

New User


Joined: 08 Apr 2005
Posts: 3

PostPosted: Fri Apr 15, 2005 11:00 am    Post subject: Restarting steps of PROC from JCL
Reply with quote

How can we restart a step(say step010) of particular PROC (when we are calling many PROC's) from JCL.

Can anyone give me clue icon_idea.gif

Regards
maabh
Back to top
View user's profile Send private message

ajaychandra

New User


Joined: 31 Mar 2005
Posts: 16
Location: Bangalore

PostPosted: Fri Apr 15, 2005 3:15 pm    Post subject:
Reply with quote

Dear Friend,

Each proc has its individual name. Say if u are calling procedures (PROC1 to PROC10) in JCL named 'ResJCL' and if u want to restart Step010 in PROC5, In the JOB statement code it as

Restart=PROC5.Step010

Ajay Chandra
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Apr 15, 2005 3:26 pm    Post subject: Re: Restarting steps of PROC from JCL
Reply with quote

Here is the reference material:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B650/20.23?DT=20040712170508

and the format is RESTART=JOBSTEPNAME.PROCSTEPNAME, so it should be RESTART=STEP010.PROC5.
Back to top
View user's profile Send private message
ajaychandra

New User


Joined: 31 Mar 2005
Posts: 16
Location: Bangalore

PostPosted: Fri Apr 15, 2005 4:14 pm    Post subject:
Reply with quote

Dear Friend,

I am sorry ..... i misguided you!... He is correct it should be
Restart = stepname.procname
Back to top
View user's profile Send private message
andycool

New User


Joined: 12 Apr 2005
Posts: 64

PostPosted: Mon Apr 18, 2005 8:23 pm    Post subject:
Reply with quote

Hey !!
Its procname.stepname...You are right ajaychandra.
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Tue Apr 19, 2005 12:18 am    Post subject:
Reply with quote

It should be jobstepname.procstepname

Quote:
How can we restart a step(say step010) of particular PROC (when we are calling many PROC's) from JCL.


Maabh,

If you are executing proc1 from step2 in a job and if you want to restart step010 of that proc (proc1) then you have to code the restart step as follows.

Code:
RESTART=STEP2.STEP010


HTH
Back to top
View user's profile Send private message
andycool

New User


Joined: 12 Apr 2005
Posts: 64

PostPosted: Wed Apr 20, 2005 10:20 pm    Post subject:
Reply with quote

Hey Anu,
If i am using the normal instream procedure it will be procname.stepname ..right?

Like JOBPM001 is my JCL. In this i want to restart at its step PM001050..then it ill be like:

Restart=JOBPM001.PM001050

Please correct me if m goin wrong !
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Thu Apr 21, 2005 12:55 am    Post subject:
Reply with quote

Quote:
If i am using the normal instream procedure it will be procname.stepname ..right?


If it is instream then you have to give procname.stepname

Quote:
Like JOBPM001 is my JCL. In this i want to restart at its step PM001050..then it ill be like:

Restart=JOBPM001.PM001050


If JOBPM001 is your JCL then you can restart your step directly as
Restart=PM001050

HTH
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Apr 21, 2005 5:49 pm    Post subject: Re: Restarting steps of PROC from JCL
Reply with quote

For those in this post who insist on posting incorrect and misleading information that is contrary to the documented process, I would like to see a proof of your theory.
Back to top
View user's profile Send private message
gnagakishore

New User


Joined: 26 Mar 2005
Posts: 25
Location: Hyderabad

PostPosted: Sun Apr 24, 2005 12:12 pm    Post subject: Re: Restarting steps of PROC from JCL
Reply with quote

RESTART=PROCSTEP.STEPNAME.

where PROCSTEP:------> name of the step which invoked the procedure.
& STEPNAME:------> procedure step which u want to invoke
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Apr 25, 2005 4:47 am    Post subject:
Reply with quote

Hi All,

The confusion lies in the labels (or names) used in the IBM Manuals:

jobstepname or should be read - the name of the step in the job JCL
stepname
procstepname should be read - the name of the step in the proc JCL

For proof you could read this from the same manual that SuperK cited:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B650/5.2.1.1?SHELF=&DT=20040712170508&CASE=
Quote:
If the keyword parameter is to override the parameter or be added to only one EXEC statement in the procedure, code .procstepname immediately following the keyword. The procstepname is the name field of the procedure EXEC statement containing the keyword parameter to be overridden. For example, the ACCT parameter applies to only step PSTEPWED:


//STEP1 EXEC PROC=RPT,ACCT.PSTEPWED=5670

It's obvious from this (to me, at any rate) that the ".procstepname" quoted above references a step in the proc JCL, not the job JCL. That "jobstepname" or "stepname" is the name of the step in the job JCL can be inferred from this.
Back to top
View user's profile Send private message
kumar119119

New User


Joined: 31 May 2010
Posts: 25
Location: Pune

PostPosted: Thu Oct 21, 2010 12:45 pm    Post subject:
Reply with quote

Hi Anuradha,

you said in the post
i.e

If it is instream then you have to give procname.stepname

are you sure about it?

you are telling this theoretically or by experinece,

did you use instream proc restart in your organisation?

Please clarify me,
In my post
http://ibmmainframes.com/viewtopic.php?p=252467#252467

SUPERK told that he never seen instream procs, even me also never seen instream procs,

Can you clarify me on this?

If your organisation using instream proc please provide me a sample code?

Thanks in advance.
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: Thu Oct 21, 2010 12:46 pm    Post subject:
Reply with quote

kumar119119

Any particular reason you have replied to a thread which has been dormant for five and a half years ?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Oct 21, 2010 12:51 pm    Post subject: Reply to: Restarting steps of PROC from JCL
Reply with quote

and here are the statistics

Code:
The topic has been resurrected after
...          5 year(s) - (months difference / 12 )
...          5 year(s) - (difference )
...         66 months
...       2005 days
...      48127 hours
...    2887678 minutes
...  173260680 seconds


seem like a record to me
Back to top
View user's profile Send private message
kumar119119

New User


Joined: 31 May 2010
Posts: 25
Location: Pune

PostPosted: Thu Oct 21, 2010 12:55 pm    Post subject:
Reply with quote

Yes Expat,
I have the reason,

Please see the
http://ibmmainframes.com/viewtopic.php?p=252467#252467

In that I & Superk discussed about restarting instream proc,

we came to know that in our organisations we didn't see instream procs,

but in the above post Anuradha said that
RESTART=procname.procstepname
is sufficient for instream proc

that's why I want to know how she told this,
Is she told based on experinece or by any reference material,

please tell me is it correct for instream proc
RESTART=procname.procstepname

Thanks in advance.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Oct 21, 2010 1:01 pm    Post subject: Reply to: Restarting steps of PROC from JCL
Reply with quote

the last post from anuradha was in 2006, I doubt that he/she will bother to reply after 4 years
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: Thu Oct 21, 2010 1:06 pm    Post subject:
Reply with quote

kumar119119 wrote:
please tell me is it correct for instream proc
RESTART=procname.procstepname
Sorry, but I do not have time to do your testing for you.

Why don't YOU test it.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Thu Oct 21, 2010 1:08 pm    Post subject: Reply to: Restarting steps of PROC from JCL
Reply with quote

the give me the jcl, tells me if attitude is beginning to percolate also to the IBM.MAIN list icon_wink.gif
Back to top
View user's profile Send private message
kumar119119

New User


Joined: 31 May 2010
Posts: 25
Location: Pune

PostPosted: Thu Oct 21, 2010 1:13 pm    Post subject:
Reply with quote

Hi expat & enrico-sorichetti,
Sorry,

Actually I released from the project,
I need to join in organisation in a week,

So that I can't test it,

It's ok, Sorry for repost about instream proc,

Thanks for your replies.
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 -> 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 New PROC not reflecting in prod even ... Musab Ahmed CA Products 9 Tue Mar 15, 2016 12:45 pm
This topic is locked: you cannot edit posts or make replies. Executing JCL specific steps at speci... Shruti Takkar JCL & VSAM 6 Mon Feb 22, 2016 12:39 pm
No new posts How steps execute in Job in case of a... richiewalia JCL & VSAM 4 Tue Jan 12, 2016 12:34 pm
No new posts PROC to JCL mapping jena_samirkumar JCL & VSAM 13 Tue Dec 08, 2015 12:37 pm
No new posts JCL/job to PROC -- Symbolic to be use... Elixir JCL & VSAM 2 Thu Aug 20, 2015 2:56 am


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