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
 
Extracting cobol source code from loadlib

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Extracting cobol source code from loadlib
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: 1786
Location: Bloomington, IL

PostPosted: Mon May 26, 2014 5:37 pm    Post subject: Re: Extracting cobol source code from loadlib
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Mon May 26, 2014 5:52 pm    Post subject: Reply to: Extracting cobol source code from loadlib
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Mon May 26, 2014 6:56 pm    Post subject: Reply to: Extracting cobol source code from loadlib
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Mon May 26, 2014 7:07 pm    Post subject: Reply to: Extracting cobol source code from loadlib
Reply with quote

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

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10457
Location: italy

PostPosted: Mon May 26, 2014 7:13 pm    Post subject: Reply to: Extracting cobol source code from loadlib
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Linkage editor is part of COBOL, z/OS... ankit.jain COBOL Programming 4 Fri Apr 20, 2018 4:17 pm
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts Getting GG return code abdulrafi IMS DB/DC 2 Tue Apr 10, 2018 12:31 pm
No new posts COBOL MVS options BiswajitDG COBOL Programming 8 Fri Apr 06, 2018 12:35 am

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