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