× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




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 thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.