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 » How to access a field contain "-" character

Post new topic  Reply to topic
 How to access a field contain "-" character « View previous topic :: View next topic » 
Author Message
hunghip95
PostPosted: Mon Oct 16, 2017 1:46 am    Post subject: How to access a field contain "-" character Reply with quote

Apprentice

Joined: 12 Oct 2017
Posts: 30

I'm trying to access the X-Remote-Addr field in HTTPInputHeader.
But ESQL syntax refuse "-" character.
My code is:
DECLARE Addr CHAR InputRoot.HTTPInputHeader.X-Remote-Addr ;
But it's error.
So, how can I access a field contain "-" character.
Thank you.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Oct 16, 2017 3:50 am    Post subject: Re: How to access a field contain "-" character Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

hunghip95 wrote:
how can I access a field contain "-" character.


Exactly like that. By using " ".
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
andrewfemin
PostPosted: Tue Oct 17, 2017 3:23 am    Post subject: Reply with quote

Acolyte

Joined: 26 Aug 2017
Posts: 54

Code:

DECLARE Addr CHAR InputRoot.HTTPInputHeader."X-Remote-Addr";
Back to top
View user's profile Send private message
hunghip95
PostPosted: Tue Oct 17, 2017 6:14 pm    Post subject: Re: How to access a field contain "-" character Reply with quote

Apprentice

Joined: 12 Oct 2017
Posts: 30

mqjeff wrote:
hunghip95 wrote:
how can I access a field contain "-" character.


Exactly like that. By using " ".
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 » How to access a field contain "-" character
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.