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

Extract COPYBOOK from LOAD MODULE


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
manoopatil

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Tue Mar 23, 2010 10:17 pm
Reply with quote

Hi,

The COPYBOOK PDS for my application is deleted with no back ups available. We have the load module and COBOL source code. Now there is a need to change few of the COBOL programs.

Is there a way we can extract the COPYBOOK from load module.

Any pointer to achieve the above mentioned task will be of great help.

Thank you
-Manohar
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue Mar 23, 2010 10:25 pm
Reply with quote

manoopatil wrote:
Is there a way we can extract the COPYBOOK from load module.

No.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 23, 2010 11:10 pm
Reply with quote

Hello,

How long ago did the PDS "dissappear"?

While possibly inconvenient to work with, there would hopefully still be a full-volume disaster recovery backup . . .

Have you talked with your storage management people?
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Wed Mar 24, 2010 2:11 am
Reply with quote

the reason that this is not possible is that a copybook (assuming it is not executable code) is simply a map of some random storage area. When code is generated to a load module, the code uses those offsets but there is no particular reference to the copybook per se in executable code. Now... IF the code was both compiled and linked with TEST options that preserve source code within the load module, then you *might* be able to recover the source for the copy books and code. Highly unlikely! but browse the load module to see if the actual source is there. Other options include finding old listings, old SYSADATA files that were generated for debugging purposes, or any remnants of debugging that might contain source code or compiler generated cross reference data. All of this is unlikely to still exist, but you never know. Someone might have it on their PC or in a back up.
Back to top
View user's profile Send private message
manoopatil

New User


Joined: 07 Dec 2003
Posts: 56
Location: Montreal

PostPosted: Wed Mar 24, 2010 7:03 am
Reply with quote

Thank you guys! The PDS last backed up in 2004 with retention period of just 35 days. The application is not changed for years and its now when I realised that COPYBOOKs (both in PROD and TEST) are missing. I got to know this application just a month ago.

Regards
-Manohar
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Mar 24, 2010 7:26 am
Reply with quote

If your site has Compuware products and if the programs were compiled into a DDIO file, it is quite possible the listings are still in the DDIO. Big ifs, but something to look into -- the copy books could be recreated from the DDIO listings.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
No new posts How to load to DB2 with column level ... DB2 6
No new posts REASON 00D70014 in load utility DB2 6
Search our Forums:

Back to Top