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

Can source code be generated from Loadlib ?


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

New User


Joined: 25 Jul 2005
Posts: 92
Location: India

PostPosted: Thu Jun 21, 2007 5:10 pm
Reply with quote

Hi all,

I had developed a cobol program a few months back. I had put that in a package managed by Changeman. My mainframe admin team has set up changeman in such a way that after a specific time, the package would automatically get deleted.

Now I have the loadlib for the program but have lost the source code.
There is no way they can retrieve the code. So is there any tool which would use the loadlib and generate the corresponding source code for me ?

Is there any way I can get the source code in a situation where I just have the loadlib ?

Please let me know asap.

Thanks for the help icon_smile.gif

Murali.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Thu Jun 21, 2007 5:28 pm
Reply with quote

Did you originally have the source in a non-Changeman PDS? Is it or a backup available?
Back to top
View user's profile Send private message
murali922

New User


Joined: 25 Jul 2005
Posts: 92
Location: India

PostPosted: Thu Jun 21, 2007 5:31 pm
Reply with quote

yes I did. But the backup source code is not the latest. There has been changes done to the source code which was there in the package, but was not updated in the back up.

So now I dont have the latest uptodate source code. But I have the load library for the same.

And the back up I have is not the latest.
Back to top
View user's profile Send private message
murali922

New User


Joined: 25 Jul 2005
Posts: 92
Location: India

PostPosted: Thu Jun 21, 2007 5:32 pm
Reply with quote

To be clearer : I have the correct and up-to-date source code. And the back up I have is not the latest version.
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Thu Jun 21, 2007 5:46 pm
Reply with quote

I know about decomplier in Java but not in COBOL, if you get to know about any please share the information. Don't you even have a backup of the source listing of the compiler job.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Jun 21, 2007 5:47 pm
Reply with quote

Murali,

Quote:
Is there any way I can get the source code in a situation where I just have the loadlib ?


I dont think its possible in MF
Back to top
View user's profile Send private message
murali922

New User


Joined: 25 Jul 2005
Posts: 92
Location: India

PostPosted: Thu Jun 21, 2007 5:50 pm
Reply with quote

I know where the source code was. Its now deleted off, and admin team is not able to retrieve it.

All I have is just the loadlib for the program. And I am looking for a tool by which I can get the source code.

Murali.
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Thu Jun 21, 2007 6:01 pm
Reply with quote

I found the following link which has some relevant information.

66.102.9.104/search?q=cache:gHINkqeaPW0J:www.essential-systems.com/resource/ESTC%2520Recovering%2520Source%2520Code.doc+COBOL+DECOMPILER&hl=en&ct=clnk&cd=4&gl=nl

But I am afraid this gives a vague picture of decomplation process rather than comprehensive tool to decompile.
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Thu Jun 21, 2007 7:43 pm
Reply with quote

The best that can be done is to disassemble it with one of the disassembler tools on the CBT website, but this will give you
the assembler code that is generated from the load module.
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: Thu Jun 21, 2007 8:32 pm
Reply with quote

Hello,

You might want to talk with your project management and make sure that other things do not "just go away" in the future. Managing the environment is a good thing, but once the investment is made in developing something (even a one-time-shot), the source should at least be archived for possible use later. The cost of creating a 1000 line module costs far more than saving it in some form.

Something that many of us do these days is to offload "our stuff" to a local drive so we have our own copy. You may want to begin saving your "stuff" offline.
Back to top
View user's profile Send private message
Suryanarayana.tadala

New User


Joined: 03 Nov 2005
Posts: 43
Location: St.Louis

PostPosted: Sat Jun 23, 2007 1:21 am
Reply with quote

I think you should be having compile listing of your code some where in some Changeman library when you promote your code...
Did u try checking with your changeman people on this..if you have this you can get the code back....
Back to top
View user's profile Send private message
mohanbabu_ib
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 8
Location: chennai

PostPosted: Sun Jun 24, 2007 9:27 pm
Reply with quote

Hi,

As suryanarayana have specified, when you promote the package, it will be promoted to next higher region, say model, then the source code will be there in some library to store model components. Please check with your admin.

I have experienced similar problem like this, but i dont have anyother go other than coding the stuff from the scratch. It was minor change so i didnt mind much.

I dont have any idea abt decompilers for cobol.. sorry...

some suggestions to avoid deletion of package:

You can avoid the deletion of package, whenever you go to changeman, it will list all the packages that will be deleted in next few days. The package usually gets deleted if the install date expires, so specify the install date of the package while creating it to some years in future so that you can change it accordingly while freezing it.

Hope this will help you.
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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top