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 IndexWebSphere Message Broker SupportIterating Row variable names

Post new topicReply to topic
Iterating Row variable names View previous topic :: View next topic
Author Message
simonalexander2005
PostPosted: Tue Jul 03, 2018 12:24 am Post subject: Iterating Row variable names Reply with quote

Apprentice

Joined: 13 Jun 2016
Posts: 34

Hi,

I have been looking at the documentation (https://www.ibm.com/support/knowledgecenter/en/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ak17815_.htm) for information about ROW variables.

I can see from the linked documentation that ROW variables are formed of name-value pairs in each record. E.g:

Code:
PartNumber  = 1
Description = 'Chocolate bar'
Price       = 0.30


I can see how you iterate through the values, for known names, using:
Code:
WHILE LASTMOVE(cursor) DO
    SET value = row.knownName;
    MOVE cursor NEXTSIBLING;
END WHILE


but how can I iterate the Names if they've been set programmatically elsewhere, and so are not known to me; or get the name of the record that's currently under my cursor?
Back to top
View user's profile Send private message
simonalexander2005
PostPosted: Tue Jul 03, 2018 2:49 am Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2016
Posts: 34

Never mind, I found it!

For anyone else looking, there's a FIELDNAME function:

https://www.ibm.com/support/knowledgecenter/en/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ak05540_.htm
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportIterating Row variable names
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.