Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Decompiling" a mainframe cobol executable module.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
wang_f_y1
Warnings : 1

New User


Joined: 16 May 2008
Posts: 42
Location: shenzhen

PostPosted: Wed Sep 09, 2009 2:07 pm    Post subject: Decompiling" a mainframe cobol executable module.
Reply with quote

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
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Wed Sep 09, 2009 2:26 pm    Post subject: Reply to: Decompiling" a mainframe cobol executable mod
Reply with quote

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 http://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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8166
Location: East Dubuque, Illinois, USA

PostPosted: Wed Sep 09, 2009 3:10 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us