Page 1 of 2

Source code missing

PostPosted: Wed Aug 04, 2010 11:22 pm
by rahul.cts
Hi,
I have got a situation where some cobol module source codes are missing. We have only executable files to run the jobs. Is there any way to get the source code using the executable files?

Regards
Rahul

Re: Source code missing

PostPosted: Wed Aug 04, 2010 11:46 pm
by Robert Sample
As a general rule of thumb, it is not possible to recover source code from executable code. There are some exceptions to this rule (such as when something like Xpediter makes a copy of the source during the compilation process for debugging), but those exceptions are usually well understood in advance. Reasons for this include assembler code changes due to optimization, loss of variable names, loss of record and group identifiers, and loss of procedure names.

Re: Source code missing

PostPosted: Thu Aug 05, 2010 12:06 am
by MrSpock
I believe that it's been mentioned elsewhere, which came about as a result of Y2K, that there are companies that can perform this process with some level of success.

Re: Source code missing

PostPosted: Thu Aug 05, 2010 1:12 am
by rahul.cts
Thanks for response. Our code is micro-focus cobol modules.

Re: Source code missing

PostPosted: Thu Aug 05, 2010 1:16 am
by dick scherrer
Hello and welcome to the forum,

Well, source is typically source.

When i've worked with Micro-Focus COBOL, the source has been stored away from the mainframe.

Where have you looked for the source?

Re: Source code missing

PostPosted: Thu Aug 05, 2010 2:13 pm
by rahul.cts
Thanks Dick scherrer ..It's a new system which we got access recently and we are just exploring it right now.

Re: Source code missing

PostPosted: Thu Aug 05, 2010 11:40 pm
by dick scherrer
Hello,

If this new system is from some vendor, it is most likely that they do not intend to share their source. . .

Re: Source code missing

PostPosted: Wed Feb 16, 2011 3:53 am
by Src-jim
Check with www.source-recovery.com.

They've been recovering Cobol source code since 1994.

Re: Source code missing

PostPosted: Wed Feb 16, 2011 4:08 am
by dick scherrer
Hello,

Something to consider is that in many cases it is illegal to "reverse engineer" from a purchased/leased executable to source. . .

Re: Source code missing

PostPosted: Sun Feb 27, 2011 6:07 am
by Quasar
Hello -

First, there are always a few modules at any shop, that do not have the source code. Source code recovery is a project in itself. There's no magic by which you get the source back. It turns out that the company I worked for, did outsource this work to one such firm with source-code recovery expertise. We all had our load-modules(and dbrms) shipped to them in the xmi format over e-mail. After months, they sent us the source code, and I was happy.

This is not just a mainframes-centric phenomenon. I once had my manager, pull his hair out when they had lost the source-code of a few DLLs, of an application on MS Windows platform, and the client had asked for a small change.

Thank you very much.