Unix Technical Forum

DB2 7.2 CALL command question

This is a discussion on DB2 7.2 CALL command question within the DB2 forums, part of the Database Server Software category; --> Hello - I am trying to issue the DB2 CLP "CALL" command from a DB2 UDB V7.2 (Windows NT) ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 10:05 AM
Perry R Shindle
 
Posts: n/a
Default DB2 7.2 CALL command question

Hello -

I am trying to issue the DB2 CLP "CALL" command from a DB2 UDB V7.2
(Windows NT) command line to invoke a stored procedure on DB2 for
OS/390. I have been able to successfully do this in all cases except
where I need to pass a space/blank as one or more of the input
parmaters. I tried, for example, "call foo(a, ,b,c)" and "call
foo(a,' ',b,c)" but it keeps returning a SQL0104N syntax error:

SQL0104N An unexpected token "," was found following ",". Expected
tokens
may include: "<identifier>". SQLSTATE=42601


However, if I try, for example "call foo(a,x,b,c)" it works just fine.

Does anyone know to pass a space/blank as an input parm in the DB2
call command?

Thanks.


Perry Shindle
BearingPoint, Inc.
Harrisburg, PA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 10:05 AM
Serge Rielau
 
Posts: n/a
Default Re: DB2 7.2 CALL command question

Perry,

Are using the CLP intercatively? I suspect your shell may eat the single
quotes.
try: db2 "call(..., ' ', ...)"

Cheers
Serge


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com