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

How to recover Source Library


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

New User


Joined: 21 Nov 2006
Posts: 48
Location: mumbai

PostPosted: Tue May 22, 2007 6:30 pm
Reply with quote

Hi all,

by mistake i compiled a program giving source library as link library.
Now my source library is showing undefined structure.
can you tell, how to recover the original PDS(source library) with same members?

Thanks,
Sudhakar.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue May 22, 2007 6:43 pm
Reply with quote

If you have HSM, try HRECOVER 'data set name' REPLACE
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue May 22, 2007 6:46 pm
Reply with quote

Or even better

HRECOVER 'dataset name' NEWNAME('new dataset name') REPLACE

For the original, use IEBGENER to create a dummy member pds(sillybit), using the SYSUT2 statement toredefine the RECFM & LRECL of the PDS.

Use the dataset recovered from HSM to replace the member that you have over written by your compile.
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 Calling an Open C library function in... CICS 1
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Access library name in REXX CLIST & REXX 6
Search our Forums:

Back to Top