Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 11th, 2006, 07:35 PM
Keith
Guest
 
Posts: n/a
Default Token SQL was not valid.

I am trying to create my first stored procedure using ISeries
Navigator. I receive the following error.

Token SQL was not valid. Valid tokens: C CL COBOL COBOLLE FORTRAN PLI
RPG RPGLE JAVA.

In the New SQL Procedure form I have put the name of the procedure in
on the general tab and used the following code in the SQL Statements
tab.

CREATE PROCEDURE Quote_Report()
LANGUAGE SQL READS SQL DATA
BEGIN
DECLARE variable1 INTEGER;
SET variable1 = 22215;
SELECT PQCLQ#, PQBTC#
FROM OMQMPF
WHERE PQCLQ# = variable1;
END

I will enter parameters after I get this to run.

I have written many sp in MS SQL that I call from crystal reports,
which what my final goal is.

Thanks in advance

Keith

  #2  
Old August 12th, 2006, 11:45 AM
Tonkuma
Guest
 
Posts: n/a
Default Re: Token SQL was not valid.

I don't know so much about iSeries.
But, this Note may be related with your problem.

iSeries
DB2 Universal Database for iSeries SQL Reference
Version 5

Chapter2. Language Element

Tokens
....
....
Note: $, @, #, and all other variant characters should not be used in
identifiers
because the code points used to represent them vary depending on the
CCSID of the string in which they are contained. If they are used,
unpredictable results may occur. For more information about variant
characters, see the Variant characters topic in the iSeries Information
Center.

 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles