Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can source code be generated from Loadlib ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Can source code be generated from Loadlib ?
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

Active Member


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

PostPosted: Thu Jun 21, 2007 5:28 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Thu Jun 21, 2007 5:47 pm    Post subject:
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    Post subject:
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    Post subject:
Reply with quote

I found the following link which has some relevant information.

http://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    Post subject:
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

Site Director


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

PostPosted: Thu Jun 21, 2007 8:32 pm    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us