Cobol access to DB2 data over multiple LPARs

5 pts.
Tags:
AS/400 LPAR
COBOL
DB2
iSeries V6R1
LPAR
I have an iSereis with 2 LPARs - one running V6R1 with a Cobol compiler (not ILE) and the other LPAR is running V5R3 with DB2 files.  What code and/or compiler options do I use to connect the v6r1 Cobol with the v5r3 database and how do I create the Cobol program to run on v5r3? Thanks

Software/Hardware used:
Cobol on iSeries
ASKED: July 28, 2011  10:39 PM
UPDATED: March 31, 2012  7:41 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    First, the only unidentified non-ILE COBOL compiler that can get an answer would probably be the OPM compiler; so, you'd use the TGTRLS( V5R3M0 ) parameter value on the CRTCBLPGM command to compile back to V5R3. Second, you don't necessarily do anything to the program, unless it's a SQL COBOL program that will execute a CONNECT to the remote database. If it's just doing normal COBOL OPENs, CLOSEs, READs, WRITEs, etc., it's probably easiest just to define DDM files to the the remote files. COBOL could then access those just as if they were local files. For SQL, you'd want to add an entry into the remote database directory through the WRKRDBDIRE command. For DDM, you'd create the DDM file(s) with the CRTDDMF command. ...to connect the v6r1 Cobol with the v5r3 database... Going in that direction, the commands would be run on your i 6.1 system. They would create definitions that pointed to your V5R3 system. One reasonable assumption would be that all of it would run over TCP/IP. There can be a variety of details, of course, that will depend on what server jobs you run, what security options you need and others. Those should be answered as they arise because alternatives can branch out quickly. BTW, is there a reason you can't use the ILE compiler? It would definitely be a better option. It can cover (almost) everything OPM can do plus add a lot more. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following