list of parameters in stored procedures

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
dscnn
Participant
Posts: 26
Joined: Tue May 17, 2005 1:11 pm

list of parameters in stored procedures

Post by dscnn »

I am trying to pass a list of string parameters in a stored procedure, which will be used in IN clause inside my SP SQL. It used to work in v7 but isn't in v8.

Example, CALL schema.testsp('#pINSQLList#');

while running, I am giving value of parameter as ''1'',''2''. Its failing with error

} is not a valid property list: Expected "," or "}", got: "'1'"

Any ideas how I can pass the values in this variable?
fyi, the SP works when executed from DB2 Toad: CALL schema.testsp('''1'',''2''')

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

Post by chulett »

Have you tried escaping the inner quotes?
-craig

"You can never have too many knives" -- Logan Nine Fingers
dscnn
Participant
Posts: 26
Joined: Tue May 17, 2005 1:11 pm

Post by dscnn »

Yes! Apparantly a single quote Is the escape character, otherwise I have tried /\ spaces, you name it.
kollurianu
Premium Member
Premium Member
Posts: 614
Joined: Fri Feb 06, 2004 3:59 pm

Post by kollurianu »

Try with the double quotes..

CALL schema.testsp("#pINSQLList#");
dscnn
Participant
Posts: 26
Joined: Tue May 17, 2005 1:11 pm

Post by dscnn »

Doesn't work.

Like I said, I have tried with single, double triple quotes, /,\,space. It seems it is a bug in v8.1
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then your next stop should be your official support provider.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply