IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Extracting cobol source code from loadlib


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Mon May 26, 2014 3:35 pm
Reply with quote

Hi,

We don't have cobol source code in my shop but we have loadlibs. I need to migrate to open system so I have the input file with VB size. Can we extract source code from loadlibs so that I will map the input data with layout and write a java program( I knew the logic everything but I need to have the layout for inputs file. Is there chance to reterive the soruce code or layout. Please let me know
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Mon May 26, 2014 5:37 pm
Reply with quote

vicky10001 wrote:
Hi,

We don't have cobol source code in my shop but we have loadlibs. I need to migrate to open system so I have the input file with VB size. Can we extract source code from loadlibs so that I will map the input data with layout and write a java program( I knew the logic everything but I need to have the layout for inputs file. Is there chance to reterive the soruce code or layout. Please let me know

There is essentially no possibility. Start doing some actual business analysis.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon May 26, 2014 5:52 pm
Reply with quote

If you have no source code at all, for a system, then it looks like you have a package, software supplied by a third-party. If that is the case, then what you are doing sounds a bit like "reverse engineering", which is probably prohibited by the license which allows you to use the product.

So you'll have to explain a lot about the situation to convince anyone to provide help.
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Mon May 26, 2014 6:18 pm
Reply with quote

Yes. you are correct. We are using a package. Just we need to find a layout from loadlib for couple of file. Let me know Is there any way to find source code from loadlib. I am not able to go by file since file type is VB and length also is more than 4k. Is there any tool available in marker for this conversion?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon May 26, 2014 6:56 pm
Reply with quote

If the Licensor is happy for you to use the record-layout, they will supply it to you.

If they are not happy for you to use it, because they own it and your licence does not allow direct use of it, then you are going to be stuck.

How you are going to know/guess the use and content of several thousand bytes of data in any reliable manner unless it is documented for you, I don't know either.

You could of course request access/documentation from them, and, possibly at some cost, they may supply it.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon May 26, 2014 7:07 pm
Reply with quote

The Source-Recovery Company of Roswell, Georgia, USA, can do this. They are the only one I know of -

www.source-recovery.com/
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon May 26, 2014 7:13 pm
Reply with quote

Quote:
Yes. you are correct. We are using a package

I doubt that the company selling the package will be happy
for the attempt at reversing engineering

and probably Source Recovery will want some legalese about the ownership of the sources being reversed.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Tue May 27, 2014 7:35 pm
Reply with quote

Are you sure it's COBOL?

I ask because your reasoning about it being VB and > 4K would not make much of a difference if trying to decode the layout.

There can only be one variable sliding section of a file layout as far as I know. The usual process is to have a fixed length section, and somewhere in there is a numeric field. That numeric field tells the number of occurrences of the variable section that follows.

Off the top of my head, I can't remember if you can have another fixed section after that or not.

So, if you're working with a 'traditional' COBOL program, that should be what you are seeing. However, if your file is really a line sequential, or a XML output, then you have a different challenge.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts run rexx code with jcl CLIST & REXX 15
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top