ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Creating a sample stored procedure to use with MQListener

Post new topic  Reply to topic
 Creating a sample stored procedure to use with MQListener « View previous topic :: View next topic » 
Author Message
najafi1977
PostPosted: Mon Sep 03, 2007 4:01 am    Post subject: Creating a sample stored procedure to use with MQListener Reply with quote

Newbie

Joined: 03 Sep 2007
Posts: 6

hi
i use WebSphere MQ with DB2
and i do whole steps in the ibm's book "application programming and sql guide" to use mqlistener.but when i want to create a sample stored procedure to use with mqlistener(APROC) according to the instruction i get a error:
this command is:
CREATE PROCEDURE TEST.APROC (
IN PIN VARCHAR(25),
OUT POUT VARCHAR(2))
LANGUAGE SQL
FENCED
NOT DETERMINISTIC
NO DBINFO
COLLID TESTLSRN
WLM ENVIRONMENT TESTWLMX
ASUTIME NO LIMIT
STAY RESIDENT NO
PROGRAM TYPE MAIN
SECURITY USER
PROCEDURE1: BEGIN
INSERT INTO PROCTABLE VALUES(PIN); SET POUT= 'OK';
END PROCEDURE1

when i run this syntax,the following error is appear:
DSNT408I SQLCODE = -104, ERROR: ILLEGAL SYMBOL "<END-OF-STATEMENT>". SOME
SYMBOLS THAT MIGHT BE LEGAL ARE: ;
DSNT418I SQLSTATE = 42601 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNHPARS SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = 502 0 0 -1 1050 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'000001F6' X'00000000' X'00000000' X'FFFFFFFF'
X'0000041A' X'00000000' SQL DIAGNOSTIC INFORMATION
please tell me how can i solve this problem.
regards
N.Najafi

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Creating a sample stored procedure to use with MQListener
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.