Mike, you say these are external stored procedures. Is the external
program RPG?. If so then the snippet I sent is what I use in my external
stored procedures (RPG is the language). By setting the SQL environment
to NAMING=*SYS you are telling the stored procedure (the external program
and any SQL in it) to use the library list. So by changing the
NAMING=*SYS you will be able to find the service programs using the
library list.
If not clear, the NAMING=*SYS goes in the external program not the CREATE
PROCEDURE statement...
Robert Rogerson
On 2011-11-28 12:06 PM, Michael Naughton wrote:
Bryan - thank you! What a great utility -- it's been _very_ helpful.
I've confirmed that I can get a job to run using my test user profile, but Dan was right -- the job's library list doesn't change. I'm going to look into how to change it on the connection string -- I'm not using a DSN, so I can't do it there.
Robert - thanks, but unless I'm missing something I don't think NAMING will help me here, as these are external stored procedures, and I don't see any place to tell them what naming to use (it doesn't seem to be an option on the CREATE PROCEDURE
command).
I know I can change the library list once the job has started, but what I want to do (if I can) is to have the stored procedure use the library list to find the service program that has the procedure that it's supposed to use. Seems simple enough in
theory .... ;-}
Thanks to all of you for your help so far,
Midrange Systems Technical Discussion [1]<midrange-l@xxxxxxxxxxxx> writes:
I wrote a utility to help find the QZDASOINIT jobs. WRKODBCJOB, [2]
http://home.roadrunner.com/~jbmmdietz/wrkodbcjob.html
Double check the jobd that is attached to the user profiles.
Bryan
Mike Naughton
Senior Programmer/Analyst
Judd Wire, Inc.
124 Turnpike Road
Turners Falls, MA 01376
413-676-3144
Internal: x 444
[3]mnaughton@xxxxxxxxxxxx
****************************************
NOTICE: This e-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that any use is
strictly prohibited. If you have received this e-mail in error, please notify us immediately by replying to it and then delete it from your computer.
References
Visible links
1. mailto:midrange-l@xxxxxxxxxxxx
2.
http://home.roadrunner.com/~jbmmdietz/wrkodbcjob.html
3. mailto:mnaughton@xxxxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.