Roy
I won't actually be returning the variable. What I'm doing is building a routine that is going to be executing a specific SQL query with a specific user/password. So I'm hard coding everything into a routine so when this is used in the jobs, the routine call is going to be very simple and I only have to provide the necessary elements.
Call from a job:
Then the routine would look like this:
Code: Select all
user = $env_user
pass = $env_pass
query = "very specific query where list_name =" : Arg1
execute query
Ans = query.results
The user and password that needs to execute this query will never change and I don't want the other developers on the project to have to remember or know which database user should be used. I just want them to only have to pass in the list name and get a result back.