×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

COBOL C compatibility under linux

COBOL C compatibility under linux

COBOL C compatibility under linux

(OP)
Hi All,

Currently we are migrating from HP-UX to Red Hat. Most of the code is in Cobol and C.
Cobol and C functions calls each other and working perfect under HPUX.

Before migrating to Linux, I need to do the POC (Proof of Concept). For that I need to design the test cases.
I am looking for the discussion on what kind of test cases I should include in my POC.

Like passing different of structure (different combination of datatypes) from cobol to c or otherway.

Any tip will be very helpful.
Also is there any website having same discussion?

Thanks,
 

RE: COBOL C compatibility under linux

main thing you need to look at is if you are moving from a 32 bit environment to a 64 bit environment in terms of how you compile your C and COBOL source. Mainly C can be affected if you are at the moment working as 32 bit and you move to 64 bit. COBOL programs most of the times dont have that issue, but it can still arise.

Second... are you using static linked programs, .int, .gnt or shared objects on HP? and will you be doing the same on RedHat? This may also have an impact on how you do things on the new environment.

Regards

Frederico Fonseca
SysSoft Integrated Ltd
www.syssoft-int.com

FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?
FAQ181-2886: How can I maximize my chances of getting an answer?

RE: COBOL C compatibility under linux

(OP)
Yes, we are using static linking, and it's going to be the same on RedHat. I didn't understand properly you do you mean by .int, *.gnt or shared object on HP.

Please explore your comment. Looks like a very good tip.

Thanks for your comments.

RE: COBOL C compatibility under linux

search the net and your cobol vendor documentation for "static vs shared object". there are pros and cons on each one, and this is not the place to discuss this.

This is a decision that needs to be made by your technical architects, and does require a good knowledge of both your COBOL version on both hp and redhat, and also knowledge of how objects (programs) work and interact on redhat.

.int, .gnt are microfocus cobol specific formats for programs which is the most common COBOL vendor used on hp (apart from Liant's RM/COBOL).  

Regards

Frederico Fonseca
SysSoft Integrated Ltd
www.syssoft-int.com

FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?
FAQ181-2886: How can I maximize my chances of getting an answer?

RE: COBOL C compatibility under linux

(OP)
Just to add, it's microfocus cobol on HP-UX and going to be the same on RedHat. But may be because of OS change run time output will be quite different.

Yes you are right it's not a place to discuss, but I am looking for the place and documentation on net to get some sort of help.

RE: COBOL C compatibility under linux

Do watch out for the Endian-nes of HP-UX, at least, it's different if you come from PA-RISC(2) and go to Intel, and swapping bytes between binary datatypes of Cobol (comp-3 etc.) and your datastore... Your data may not be forward-compatible :-|

RE: COBOL C compatibility under linux

There may be a lot to it. it all depends on what you do with your C programs and up to a certain point with your COBOL programs.

Also bear in mind that it is not only those that you have to worry about, but also the unix scripts and commands you may be using.
Things like sort commands, printers, etc, all of them can behave differently on Linux.

My first advice is to compile everything on Linux (both C and COBOL programs) and see if they even compile. I'm in the middle of a migration from HP to AIX, and a few COBOL programs will not compile at all, and fail with a COBOL internal error.

Whatever emulator you use will also need to be tested, as the way terminal emulators work with HP settings may not work with the ones on Linux.

Also some type of file opening that worked fine on HP may not work on newer versions of COBOL. specially case I remember from previous upgrades on other clients, was the fact that on HP COBOL 2.2 you could define 2 line sequential files with diff size, and open them within the same run unit without any problem, and on 5.5 it failed.

So basic test is compile, fix compile errors, then run everything to identify other errors. then worry with the full test

Regards

Frederico Fonseca
SysSoft Integrated Ltd
www.syssoft-int.com

FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?
FAQ181-2886: How can I maximize my chances of getting an answer?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close