|
>From the department of not looking in the archives first... This was just discussed yesterday. Please take a look in the archives. Matt -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bruce Collins Sent: Wednesday, April 26, 2006 3:07 PM To: RPG programming on the AS400 / iSeries Subject: Connecting to a remote database I am connecting to an AIX Partition that is running a DB2 database. I have put a RDB Entry in and when I do STRSQL I connect to it. In my RPGLE program what would be the syntax look like to make the connection via the program? D DB2USER s 10a inz('db2usr') D DB2PWD s 10a inz('db2pwd') C/EXEC SQL C+ CONNECT TO ACTSASDB USER :DB2USER USING :DB2PWD C/END-EXEC Above is just a wild guess I took. I would appreciate any and all assistance. Thanks Bruce "Hoss" Collins IBM Certified Specialist - eServer i5 iSeries System Administrator V5R3 Cisco Certified Network Associate AAA Cooper Transportation Dothan, AL 36303 (334)793-2284 x2434
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.