View previous topic :: View next topic
|
Author |
Message |
wang_f_y1 Warnings : 1 New User
Joined: 16 May 2008 Posts: 47 Location: shenzhen
|
|
|
|
how to get original cobol source by decompiling a mainframe cobol executable module.
you know we have only a mainframe cobol executable module in some situation,if we want to get orignal source,how can we do? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
the <thing> has been debated a few times, it cannot be done without specific skills, knowledge, tools
just some hints why...
1) You would need to delink the load module, which means split it into separate csects
2) find out the User code csects, main and subroutines
3) isolate the language related instruction patterns,
very tricky because they depaend on the cobol compiler used and the optimizations carried on...
... add as many issues as You like
if Your organization has the need there are providers who can do it
for example www.source-recovery.com/gFAQ.htm
I am not endorsing nor advertising just posting one random link from those found googling for COBOL DISASSEMBLY |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
To slightly expand upon enrico's answer, you cannot recover the original source from the load module -- COBOL does not retain variable names, for example, in the load module. You can disassemble the load module into assembler code, and possibly even into COBOL code but the code you get will be strange since it will be mechanically produced. The logic will be the same but you'll spend a lot of time figuring out what was generated. |
|
Back to top |
|
|
|