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 » WebSphere Message Broker (ACE) Support » SELECT ERROR!!!!!!!

Post new topic  Reply to topic
 SELECT ERROR!!!!!!! « View previous topic :: View next topic » 
Author Message
asamanta
PostPosted: Sat Nov 08, 2003 6:37 am    Post subject: SELECT ERROR!!!!!!! Reply with quote

Novice

Joined: 20 Aug 2003
Posts: 18

DECLARE rEnvVar REFERENCE TO Environment.Variables.Data[];

CREATE FUNCTION FnXYZ('val' CHAR,rEnvVar REFERENCE) RETURNS CHARACTER
BEGIN
BEGIN
DECLARE rEnvVar1 REFERENCE TO rEnvVar.Data1[];
DECLARE sCHAR1 CHARACTER;
DECLARE sCHAR2 CHARACTER;

SET rEnvVar1.FnI[] = (SELECT T.CHAR1,T.CHAR2 FROM Database.ARDH AS T WHERE T.ABS ='val' );

SET sCHAR1 = rEnvVar1.FnI[1].CHAR1;
SET sCHAR2 = rEnvVar1.FnI[1].CHAR2;

RETURN sCHAR1;
END;

Can anyone help me where this is wrong????

It gives error like: "The dynamic field reference supplied to the SET statement does not resolve to a non-list field in a modifiable message tree. The dynamic field reference supplied to the SET statement must resolve to a non-list field in a modifiable message tree. Ensure that only non-list references to modifiable trees are passed to the SET statement."
Back to top
View user's profile Send private message
mpuetz
PostPosted: Mon Nov 10, 2003 4:37 pm    Post subject: Reply with quote

Centurion

Joined: 05 Jul 2001
Posts: 149
Location: IBM/Central WebSphere Services

Hi,

the offending line is

DECLARE rEnvVar1 REFERENCE TO rEnvVar.Data1[];


You have a assign a reference to an array, which is a list structure

DECLARE rEnvVar1 REFERENCE TO rEnvVar.Data1[1];

should do the trick (if that's what you intended).
_________________
Mathias Puetz

IBM/Central WebSphere Services
WebSphere Business Integration Specialist
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 » WebSphere Message Broker (ACE) Support » SELECT ERROR!!!!!!!
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.