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 > SQL Stored Procedure Compile w/SCLM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-25-05, 09:59
sln007 sln007 is offline
Registered User
 
Join Date: Jan 2005
Posts: 2
Question SQL Stored Procedure Compile w/SCLM

We are having problems with compiling SQL Stored Procedures that have the
"DECLARE EXIT HANDLER....." statement.

Compiler, from SCLM, gives us:
DSNH016I E DSNHPARS LINE 65 COL 12 "GLOBAL" REQUIRED
DSNH199I E DSNHPARS LINE 65 COL 12 INVALID KEYWORD "EXIT"; VALID SYMBOLS ARE: GLOBAL

DBA's can't get compiler options correct.
Any suggestions?
Reply With Quote
  #2 (permalink)  
Old 01-28-05, 00:05
jacampbell jacampbell is offline
Registered User
 
Join Date: Jan 2005
Posts: 191
Exact code please.

One of the fun things about syntax errors is that the reported position is not necessarily the actual position. Sometimes an inappropriate use of a keyword will send the parser down some wild path, and the reported position is where the parser ends up - hence by "exact" I mean just that.

Doubt SCLM has anything to do with the problem - it's just driving the pre-pre-compile.

James Campbell
Reply With Quote
  #3 (permalink)  
Old 01-28-05, 22:52
mike.abel mike.abel is offline
Registered User
 
Join Date: Apr 2002
Location: Chicago
Posts: 10
Can you post the entire source code for your procedure?
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