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
 

 

How to recover a dataset that's been deleted

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

New User


Joined: 13 Jun 2005
Posts: 24

PostPosted: Wed Jan 11, 2006 6:39 am    Post subject: How to recover a dataset that's been deleted
Reply with quote

hi guyz,
1.how to recover a dataset thatz been deleted.
2.how to recover a gdg generation that has been uncataloged.take it as i've given empty scratch and the limit is 5.so if i'm creating 1 more generation all the old 5 will b lost.how to retrieve that.
3.my jcl has 1 step.if i give cond parameter for the 1st step return code of which step will b taken.

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

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Wed Jan 11, 2006 9:18 am    Post subject: Re: interview ques
Reply with quote

HI,

Quote:
1.how to recover a dataset thatz been deleted.


Your Admin can recove teh dataset if he has backup of that dataset.

Quote:
2.how to recover a gdg generation that has been uncataloged.take it as i've given empty scratch and the limit is 5.so if i'm creating 1 more generation all the old 5 will b lost.how to retrieve that.

The GDG can be recove at perticular extend by HRECOVER command.


Hope this helps

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

New User


Joined: 10 May 2005
Posts: 28
Location: Pune

PostPosted: Wed Jan 11, 2006 10:25 am    Post subject:
Reply with quote

HI RUPESH,


Can u explain HRECOVER command thru example.

thanks
vinod
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Wed Jan 11, 2006 10:31 am    Post subject: Re: interview ques
Reply with quote

Hi Vinod,


Quote:
Can u explain HRECOVER command thru example


As mentioned Shammiullah, that how to recover a gdg generation that has been uncataloged.take it as i've given empty scratch and the limit is 5.so if i'm creating 1 more generation all the old 5 will b lost.how to retrieve that. Takin this is a n exaple,

Suppose your last GDG name isn Rupesh.G0005V00 with limit 5 andnow you creat a 6 generation. so 1 generation lost. In that case you can use Hrecover command as follows.

Go to option 6 (
And give following command.
Code:
 HRECOVER Rupesh.G0001V00' NEWNAME('Rupesh.G0001v00.Old')


In this way you can recover your old GDG.

Hope it is clear now.

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

New User


Joined: 11 Dec 2005
Posts: 32

PostPosted: Wed Jan 11, 2006 11:14 am    Post subject:
Reply with quote

hi,

Quote:
Q3. my jcl has 1 step.if i give cond parameter for the 1st step return code of which step will b taken.


Ans. Cond parametre is ignored when used at first step in the job. The only exception is COND = ONLY , this will bypass the step if it is coded at the first step.


Regards

Vikas


Quote:
Back to top
View user's profile Send private message
vinodmaanju

New User


Joined: 10 May 2005
Posts: 28
Location: Pune

PostPosted: Wed Jan 11, 2006 4:22 pm    Post subject:
Reply with quote

Thanks Rupesh

I'll check it.
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Wed Jan 11, 2006 9:26 pm    Post subject: Re: How to recover a dataset that's been deleted
Reply with quote

Hi,


Search the forum. Your first query has already been discussed.

I had provided the JCL for recovering the DS.

Let me know in case of any concerns.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Jan 15, 2006 10:16 am    Post subject:
Reply with quote

Hi,

As Rupesh has mentioned you can reestablish your DS if it was backed up. You'll notice I didn't say "recover" because I didn't want to confuse this case w/HRECOVER.

HRECOVER is used for MIGRATED not DELETED datasets. Which leads me to the GDG ques. Since the GDG was created w/SCRATCH EMPTY all 5 of the previously created DS are gone, goodbye, kaput, DELETED. As the manual says, "they cease to exist". No room for misinterpretation there. You can't get them back unless they were backed up.

Actually there IS a 2nd way to get them back, but it's a bit impractical. If the DA space used by the file has not been reallocated, a sysprog can create a format4 (I think it's 4) DSCB to point to that data area, thereby "recreating" the file.

I say it's impractical because the activity in today's systems would almost guarantee that the space would be used before the sysprog could do his thing.
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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm


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