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

How to Recall a GDG version which is not on DASD


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Fri Nov 28, 2008 11:14 am
Reply with quote

Hi All,

Please let me know how to recover a GDG version which is currently not on DASD.




Thanks,
Abhishek
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Nov 28, 2008 11:22 am
Reply with quote

Hi Abhishek,

From subject line,
Quote:
How to Recall a GDG version which is not on DASD


From message,
Quote:
... how to recover a GDG version which is currently not on DASD


Recall or Recover?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Nov 28, 2008 11:25 am
Reply with quote

Hi,

are you saying the dataset is migrated ?

if so HRECALL will do it.


If the dataset does not exist at all, you will need to use HRECOVER as long as the dataset has been backed up by HSM or you will need to restore from whatever medium it was backed up to.

If no back up exists, then I'm afraid unless you can rebuild the file, the GDG is lost.


Gerry
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Nov 28, 2008 11:27 am
Reply with quote

To recall a migrated dataset,
Code:
TSO HRECALL 'dataset$name'

or
To Recover a data set from a backup version if you have back up,
Code:
TSO HRECOVER 'dataset$name'

Please check it with storage guys.
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Fri Nov 28, 2008 11:28 am
Reply with quote

Hi Gnanas,

I mean..I need it on DASD to view that version of GDG.Basically its making that version available to be viewed which is possibly on Tape right now.


Thaks,
Abhishek
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Nov 28, 2008 11:31 am
Reply with quote

Again, if that generation is migrated to TAPE, please use HRECALL to move it to DASD.

If that generation was created on TAPE, please use SORT or IEBGENER to copy it to DASD.
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Fri Nov 28, 2008 11:34 am
Reply with quote

Thanks Gnanas..I need to write a job which basically does that.



Thanks,
Abhishek
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Nov 28, 2008 12:22 pm
Reply with quote

Abhishek,

Quote:
I need to write a job which basically does that.


Search the forum adn you would find working examples for your requirement.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Nov 28, 2008 3:08 pm
Reply with quote

abhishek dadhichi wrote:
Thanks Gnanas..I need to write a job which basically does that.
Thanks,
Abhishek

Why not type HRECALL next to the GENERATION under 3.4 ?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Fri Nov 28, 2008 3:10 pm
Reply with quote

Quote:
Again, if that generation is migrated to TAPE, please use HRECALL to move it to DASD.

If that generation was created on TAPE, please use SORT or IEBGENER to copy it to DASD.
May be he has got the latter case.
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Fri Nov 28, 2008 3:21 pm
Reply with quote

Hi All,

Sorry for the delay in respose....Actually HRECALL and HRECOVER are not working for me.
I just searched for some JCL in the forum for the same but could not get it.

If anyone is aware of it by any chance ,plz let me know....Thanks..




Thanks,
Abhishek
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Nov 28, 2008 3:24 pm
Reply with quote

Quote:
Actually HRECALL and HRECOVER are not working for me.

I suspect that generation is on TAPE.

Please post error message when you use those commands.
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Nov 28, 2008 3:27 pm
Reply with quote

Again, I say.

HRECALL is for recalling migrated datasets.
HRECOVER is for recovering dataset from backup version.


Please clarify your things here.
Back to top
View user's profile Send private message
abhishek dadhichi

New User


Joined: 19 Apr 2007
Posts: 37
Location: Bangalore

PostPosted: Fri Nov 28, 2008 3:39 pm
Reply with quote

Hi,

My requirement is to recover a GDG version which is in Tape to DASD.
So,I tried using HRECALL, but it doesn't work....


Thanks,
Abhishek
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Nov 28, 2008 3:44 pm
Reply with quote

Hi Abhishek,

Here, HRECOVER won't work. It's for recovering deleted datasets.

Please use SORT or IEBGENER or any other copy utility for the same.

Note that if a dataset is migrated to TAPE, you can see its volume as MIGRAT/MIGRAT1. This time only, you can use HRECALL.

I hope everything is clear now icon_biggrin.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Nov 28, 2008 3:46 pm
Reply with quote

GDG management is a murky and painful issue
work closely with Your storage support to avoid troubles

RECALLING does not have any issues , the GDG generations are cataloged considered as existing
and the recall will NOT clobber the generation sequence and LIMIT

RECOVERING is a completely different beast, a careless RECOVERY will certainly disrupt the generation sequence

recover with a rename and evaluate with attention where the recovered dataset should be place in the generation sequence

- I have seen big men cry for a careless HRECOVER icon_biggrin.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Nov 28, 2008 4:52 pm
Reply with quote

Hi,

my experience with HRECOVER with GDG's is that if does not already reside on DASD, the HRECOVER version will come back as
ARC0770I SMS GDS XXXX.IOA.LOG.BACKUP.G6025V00 RECOVERED AS DEFERRED GDS but personally I would go along with Enrico and recover with a rename.



Gerry
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts How Can I Recall a Migrated Data Set ... PL/I & Assembler 3
No new posts DASD - non SMS - volser change - VSAM... JCL & VSAM 2
No new posts Copying GDG version(all/few) from pro... CLIST & REXX 13
Search our Forums:

Back to Top