Sql query as parameter

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

Post Reply
LD
Premium Member
Premium Member
Posts: 32
Joined: Thu Oct 21, 2010 9:03 am

Sql query as parameter

Post by LD »

Hello All,

In my job, I want to run multiple sql queries in oracle stage and pass the output to a sequential file using RCP.

In parallel jobs, I can not provide sql in a file for oracle stage. This option is available with server jobs. This would have been first preference but looks like not possible. Any one know any hidden method to do so?

If not, I need to pass the sql as parameter. My queries will be huge in size. Is there any upper limit on parameter size to type String?

Thanks,

Shashank
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No real limit. Try it. It works.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

While there may be 'no limit' to the parameter string size, there is definitely one for SQL in the Oracle stage. Check with your official support provider.
-craig

"You can never have too many knives" -- Logan Nine Fingers
LD
Premium Member
Premium Member
Posts: 32
Joined: Thu Oct 21, 2010 9:03 am

Post by LD »

Thanks Ray and Craig for clarification. I'm going ahead for now and will check with IBM on the Oracle stage limits.

Thanks,

Shashank
Post Reply