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

How to recover a dataset that's been deleted


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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: 463

PostPosted: Wed Jan 11, 2006 9:18 am
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
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: 463

PostPosted: Wed Jan 11, 2006 10:31 am
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
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
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: 411
Location: Colarado, US

PostPosted: Wed Jan 11, 2006 9:26 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top