Pass SQL Query @ Run time not working

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

ps. Here is the TechNote for the issue and APT environment variable in question.
-craig

"You can never have too many knives" -- Logan Nine Fingers
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

IBM asked me to do 3 steps and out of 3 I already did 2 (one is your suggestion of the APT) and i have mentioned it here.

Code: Select all

Check if the quoted ID is enabled for the problem DSN, if so disable it and run the job again.
I tried it, but no luck.

I am going to share my log details and based on their reply!
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

H i craig

Your suggestions was the right one. I declared it for the job level rather than the project level was the issue. If i could did it properly at the time when you given that APT, I could have resolved it.

IBM guy noticed my mistake and asked me to declare it globally.

Now the issue is resolved.

Code: Select all

As Craig said, add this variable $APT_OSL_PARAM_ESC_SQUOTE  in the project level and use it in the job by passing the value as 1
Thanks to all for your time and suggestion.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sweet! Thanks for the clarification, I would have thought having it at the job level would have been fine as well. Good to know. 8)
-craig

"You can never have too many knives" -- Logan Nine Fingers
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

chulett wrote:I would have thought having it at the job level would have been fine as well. Good to know. 8)
I was also in the same thought is the another reason why i declared it in job level.

thanks
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
Post Reply