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



Without going back to the CLI manual, I'll say to test hdbc for not being NULL, and maybe the other handles - check the manual - it probably has something there.

HTH

-------------- Original message ----------------------
From: JLong@xxxxxxxxxx
Hi all,

I have 2 programs using SQLCLI. Both are standalone programs and
function perfectly when called directly. Now I want pgmA to call pgmB
but I have a CLI error on my SQLConnect(...). rc = -1.

Both programs when called directly go through the following and each time
rc=0

rc = SQLAllocEnv(henv);
rc = SQLAllocConnect(henv:hdbc);
rc = SQLConnect(hdbc: szDSN: cbDSN: szUID: cbUID:szAuthStr: cbAuthStr);

I know it's related to the SQLConnect because I created a short pgm doing
nothing but the above steps and then calling either program and I get the
same errors. How do I get around the called program doing SQLConnect so
that the other SQL calls function correctly???

We are on V5R4

Thanks in advance.

Jack W. Long Jr.
CBK LTD.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.