If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > syntax error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-30-08, 02:07
janeprodriguez janeprodriguez is offline
Registered User
 
Join Date: Oct 2008
Posts: 11
syntax error

Hello,

I am executing the following command but i am getting error


C:\Documents and Settings\jane>db2 "bind c:/program~/ibm/sqllib/bnd/@ddcs400.lst blocking all sqlerror continue messages mvs.msg grant public"

but i keep getting this error
SQL0104N An unexpected token "files/ibm/sqllib" was found following
"<identifier>". Expected tokens may include: "ACTION". SQLSTATE=42601

thanks.

Jane
Reply With Quote
  #2 (permalink)  
Old 10-30-08, 07:51
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
The error message does not seem to correspond to the command you've shown. What is the actual command that you are running and the actual error message?
Reply With Quote
  #3 (permalink)  
Old 10-30-08, 22:36
janeprodriguez janeprodriguez is offline
Registered User
 
Join Date: Oct 2008
Posts: 11
this is the actual syntax that i am executing

db2 "bind c:/program~/ibm/sqllib/bnd/@ddcs400.lst blocking all sqlerror continue messages mvs.msg grant public"

this is the exact error:

SQL0104N An unexpected token "files/ibm/sqllib" was found following
"<identifier>". Expected tokens may include: "ACTION". SQLSTATE=42601
Reply With Quote
  #4 (permalink)  
Old 10-31-08, 01:04
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
There seems to be some problem in the lst file (@ddcs400.lst)..... it would be more helpful if you post the contents of the same.
Reply With Quote
  #5 (permalink)  
Old 10-31-08, 01:11
janeprodriguez janeprodriguez is offline
Registered User
 
Join Date: Oct 2008
Posts: 11
hi nick,

here is the contents of the ddcs400.lst

db2ajgrt.bnd+
db2clipk.bnd+
db2clist.bnd+
db2clpcs.bnd+
db2clprr.bnd+
db2clpur.bnd+
db2clpnc.bnd+
db2clprs.bnd+
db2arxcs.bnd+
db2arxrr.bnd+
db2arxrs.bnd+
db2arxnc.bnd+
db2arxur.bnd+
db2uexpm.bnd+
db2uimpm.bnd+
db2ueiwi.bnd+
db2uimtb.bnd


thanks.

Jane
Reply With Quote
  #6 (permalink)  
Old 10-31-08, 01:42
madhu_kaza madhu_kaza is offline
Registered User
 
Join Date: Apr 2008
Posts: 39
syntax to bind utilities is as follows.

bind path/bnd/@ddcsmvs.lst blocking all sqlerror continue
messages mvs.msg grant public

where path corresponds to the DB2PATH registry value.

Check if you have set the DB2PATH registry variable.

Thanks,
Madhavi
Reply With Quote
  #7 (permalink)  
Old 10-31-08, 06:16
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
As an alternative, change to the sqllib/bnd/ directory and execute the bind inside that directory without specifying the path.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On