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 > DB2SET on Command Prompt giving error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-31-10, 18:56
Rajesh1203 Rajesh1203 is offline
Registered User
 
Join Date: Aug 2010
Posts: 38
DB2SET on Command Prompt giving error

On command prompt I typed

DB2 DB2SET -all

this is the error I got
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0104N An unexpected token "END-OF-STATEMENT" was found following "DB2SET".
Expected tokens may include: "JOIN <joined_table>". SQLSTATE=42601

Any Idea what's going on?
Reply With Quote
  #2 (permalink)  
Old 10-31-10, 20:27
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by Rajesh1203 View Post
DB2 DB2SET -all

Did you actually enter "db2" prior to "db2set -all"?
Reply With Quote
  #3 (permalink)  
Old 10-31-10, 20:50
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
In the Command Reference Manual, there are two types of commands:
  • CLP commands
  • System Commands
System commands do not require (nor allow) you to preface them with "db2".
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 11-01-10, 15:35
Rajesh1203 Rajesh1203 is offline
Registered User
 
Join Date: Aug 2010
Posts: 38
Quote:
Originally Posted by Marcus_A View Post
In the Command Reference Manual, there are two types of commands:
  • CLP commands
  • System Commands
System commands do not require (nor allow) you to preface them with "db2".
Thanks Marcus, Tried as a system command without DB2 and it worked.

BTW where can I find the command Reference Manual?
Reply With Quote
  #5 (permalink)  
Old 11-01-10, 16:46
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Quote:
Originally Posted by Rajesh1203 View Post
BTW where can I find the command Reference Manual?
Links to PDF Manuals are near the bottom of this page:
IBM - DB2 database product documentation
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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