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



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.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.