Source code missing



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Source code missing

Postby rahul.cts » Wed Aug 04, 2010 11:22 pm

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
rahul.cts
 
Posts: 3
Joined: Thu Mar 18, 2010 1:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Source code missing

Postby Robert Sample » Wed Aug 04, 2010 11:46 pm

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.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Source code missing

Postby MrSpock » Thu Aug 05, 2010 12:06 am

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.
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Source code missing

Postby rahul.cts » Thu Aug 05, 2010 1:12 am

Thanks for response. Our code is micro-focus cobol modules.
rahul.cts
 
Posts: 3
Joined: Thu Mar 18, 2010 1:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Source code missing

Postby dick scherrer » Thu Aug 05, 2010 1:16 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Source code missing

Postby rahul.cts » Thu Aug 05, 2010 2:13 pm

Thanks Dick scherrer ..It's a new system which we got access recently and we are just exploring it right now.
rahul.cts
 
Posts: 3
Joined: Thu Mar 18, 2010 1:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Source code missing

Postby dick scherrer » Thu Aug 05, 2010 11:40 pm

Hello,

If this new system is from some vendor, it is most likely that they do not intend to share their source. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Source code missing

Postby Src-jim » Wed Feb 16, 2011 3:53 am

Check with www.source-recovery.com.

They've been recovering Cobol source code since 1994.
Src-jim
 
Posts: 2
Joined: Wed Feb 16, 2011 3:36 am
Has thanked: 0 time
Been thanked: 0 time

Re: Source code missing

Postby dick scherrer » Wed Feb 16, 2011 4:08 am

Hello,

Something to consider is that in many cases it is illegal to "reverse engineer" from a purchased/leased executable to source. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Source code missing

Postby Quasar » Sun Feb 27, 2011 6:07 am

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.
Quasar Chunawala,
Software Engineer, Lives at Borivali, Mumbai
User avatar
Quasar
 
Posts: 102
Joined: Wed Nov 10, 2010 7:11 pm
Location: Borivali, Mumbai
Has thanked: 13 times
Been thanked: 2 times

Next

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post