|
I can debug it as see the Library List begin altered upon execution (via
ServerUserId),
So, yeah, it appears that I have everything setup properly, and I am
executing my CGI program.
I can debug it as see the Library List begin altered upon exection (via
ServerUserId),
And I am able to get properly execute my CLI programs and retrieve data.
Except when there is a function in the SQL statement.
It's just not making sense.
Thanks, Scott
David
David L. Mosley, Jr.
Technical Solutions Architect
Dancik International, Ltd.
2000 CentreGreen Way, Suite 250
Cary, NC 27513
www.dancik.com
Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
08/28/2010 12:32 AM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
To
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
cc
Subject
Re: RPG - CLI SQL problem. (Where's my stored functions)...
I seem to be missing part of the equasion, here... what does Apache
have to do with it? Is this running in a CGI program?
Have you set the library list in Apache with SetEnv
QIBM_CGI_LIBRARY_LIST? Or... what do you mean by Apache is setting the
library list? You said something about ServerUserId... I'm not
familiar
with that, but it sure sounds like the userid that the server runs
under
(and therefore, I don't understand what it has to do with a library
list.)
On 8/27/2010 10:42 PM, dmosley@xxxxxxxxxx wrote:
I am setting the "SQL_ATTR_DBC_SYS_NAMING" attribute, and it allowsme
to
access service programsinclude
and execute normal SELECT sql statements, (as long as they don't
my functions).supposed
My Apache config includes a ServerUserID, which (I thought) is
to
set the library listlibrary
when accessed.
It's just a odd mystery why this isn't working.
Thanks
David
David L. Mosley, Jr.
Technical Solutions Architect
Dancik International, Ltd.
2000 CentreGreen Way, Suite 250
Cary, NC 27513
www.dancik.com
Scott Klement<rpg400-l@xxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
08/27/2010 05:29 PM
Please respond to
RPG programming on the IBM i / System i<rpg400-l@xxxxxxxxxxxx>
To
RPG programming on the IBM i / System i<rpg400-l@xxxxxxxxxxxx>
cc
Subject
Re: RPG - CLI SQL problem. (Where's my stored functions)...
hi David,
Are you setting SQL_ATTR_DBC_SYS_NAMING? If so, it'll use your
list to locate your functions (unless explicitly qualified)find.
Or are you using SQL naming? (If so, I it searches the SQL PATH.)
Make sure your *LIBL or PATH includes the functions that it can't
(Not the programs behind them, but the actual functions.) Also, ifjob
you're using a server job, make sure the *LIBL is set on the server
rather than on your local job.in
HTH
On 8/27/2010 4:08 PM, dmosley@xxxxxxxxxx wrote:
I am performing SQL reads and fetches using the CLI SQL functions,
RPG.the
Everything works wonderfully, except for the fact that it is have
thatworst time reading
my SQL stored functions. It keeps telling me not found. I know
tothat message can
be misleading, and yes, I have checked the signature of the function
myprofile
actual execution,
and they make.
I am connected via SQLConnect, using *LOCAL, and null user and
work(which to my understanding
will make the default job settings like library list default for the
SQLConnect).
Any ideas would be greatly appreciated. Of course there are always
andarounds like not using
the CLI stuff (haha), but the structure that I have is very slick
very
dynamic, it would be a shame
to ugly it up just because stored functions won't work.
Thanks in advanced,
David
David L. Mosley, Jr.
Technical Solutions Architect
Dancik International, Ltd.
2000 CentreGreen Way, Suite 250
Cary, NC 27513
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.