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
 

 

In s2 and s3 steps if s3 abends can i restart s3

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

New User


Joined: 29 Apr 2005
Posts: 38

PostPosted: Tue Jun 07, 2005 12:29 pm    Post subject: In s2 and s3 steps if s3 abends can i restart s3
Reply with quote

1) I have 3 steps S1,S2 and S3 respectively
In s1 i am creating a temporary data set and i am using it in s2 and s3 steps if s3 abends can i restart s3?

pls help me

thanks

vbhat
Back to top
View user's profile Send private message

David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Tue Jun 07, 2005 1:29 pm    Post subject:
Reply with quote

Hi Vbhat,

temp data set remain only till the job is executing once the execution is over they are not available.

Since you are creating the temp data set in the first step and second and third step you are using that, in case any of your second or third step abends you will have to start from the first step as the temp data set will
only be available after the completion of first step.

So the answer to your question is you cannot restart from step 3. you will have to execute step1 first and create the temp data set again.

let me know in case of any clarification.

David.
Back to top
View user's profile Send private message
vbhat

New User


Joined: 29 Apr 2005
Posts: 38

PostPosted: Tue Jun 07, 2005 2:45 pm    Post subject: thanks
Reply with quote

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

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Wed Jun 08, 2005 10:14 pm    Post subject:
Reply with quote

I think that you can...
Not all the temporary dataset are deleted when the job is ended... and not all the temporary dataset are preceded by a && icon_wink.gif
Try with this:

Code:
//S1 EXEC PGM=MYPGM
//DD1   DD DISP=(,PASS),LRECL=XX,RECFM=XX,SPACE...,
//        DSN=MYUSER.SEQ
//S2 EXEC PGM=MYPGM
//DD1   DD DISP=(OLD,PASS,CATLG),LRECL=XX,RECFM=XX,SPACE...,
//        DSN=MYUSER.SEQ
//S3 EXEC PGM=MYPGM
//DD1   DD DISP=(OLD,DELETE,CATLG),LRECL=XX,RECFM=XX,SPACE...,
//        DSN=MYUSER.SEQ

If I'm not wrong, and I'm not... if your second or third step have an abend you can restart from the same point where you have stopped.
Back to top
View user's profile Send private message
M Alam

New User


Joined: 13 Jun 2007
Posts: 1
Location: pune

PostPosted: Wed Jun 20, 2007 4:27 pm    Post subject: Re: In s2 and s3 steps if s3 abends can i restart s3
Reply with quote

MGIndaco,
Since the dataset was not Cataloged or kept in step S1 in first run, how will in second run, the dataset will be found by step S3? Please clarify.

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

Senior Member


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

PostPosted: Wed Jun 20, 2007 4:37 pm    Post subject:
Reply with quote

Alam,

Quote:
Since the dataset was not Cataloged or kept in step S1 in first run, how will in second run, the dataset will be found by step S3? Please clarify.


Once the temp dataset is passed to next step, the disp of the dataset is determined in that step.

In MGIndaco code, step S2 has DISP=(OLD,PASS,CATLG). So when the job abends in this step, the dataset remains intact.
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: Wed Jun 20, 2007 6:21 pm    Post subject:
Reply with quote

Hello,

By definition, a cataloged dataset is not a temporary dataset - it may possibly be a transient dataset, but it is not a temporary dataset.

True "temporary datasets" cannot exist once a job completes - whether successful, abended, or an in-run jcl error.
Back to top
View user's profile Send private message
murmohk1

Senior Member


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

PostPosted: Thu Jun 21, 2007 10:46 am    Post subject:
Reply with quote

Dick,

This was taken from QW -

Quote:
PASS

The data set will be passed to a subsequent step in the same job. Its
final disposition will be determined by that step.
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: Thu Jun 21, 2007 6:24 pm    Post subject:
Reply with quote

Hello,

Yes, but that quote has nothing to do with true temporary datasets. If you PASS a dataset with DSN=&&stuff.data.file it will not exist when the job ends. If you have a dataset with DSN=my.data.file, it exist after the job completes, but that is not a tgemporary dataset.

The dsn determines whether the dataset is a temporary dataset, not the usage intention of the author.
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
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 IEFZB476 getting various 0C4 abends Grant Goodale PL/I & Assembler 18 Sat Sep 12, 2015 9:27 pm
No new posts SEQNUM and RESTART zh_lad DFSORT/ICETOOL 2 Tue Aug 25, 2015 8:17 pm
No new posts Restart Logic suraaj DB2 5 Fri Feb 27, 2015 8:47 pm


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