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 DataPower » Looping

Post new topic  Reply to topic
 Looping « View previous topic :: View next topic » 
Author Message
wmquser
PostPosted: Thu Dec 09, 2010 10:53 pm    Post subject: Looping Reply with quote

Apprentice

Joined: 20 Aug 2008
Posts: 32

Hi,
I have to loop for the input data, dynamically. ie., the number of time to loop will be a part of the input. The input is from cobol, and its fixed length. I cant use for-each because we are getting empty space also which we shouldnt map. The count field in input will give us the infomation on how many time to loop to avoid the empty mapping. If i have custom xls for-loop, how to pass the input data to the custom xls. Please advise.

Thanks in advance
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Dec 10, 2010 5:28 am    Post subject: Re: Looping Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

wmquser wrote:
The input is from cobol, and its fixed length.


Do you mean the COBOL construct OCCURS DEPENDING ON, or simply that there's a field count in the copybook?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
harish_td
PostPosted: Mon Dec 13, 2010 12:45 am    Post subject: Re: Looping Reply with quote

Master

Joined: 13 Feb 2006
Posts: 236

wmquser wrote:
I have to loop for the input data, dynamically. ie., the number of time to loop will be a part of the input.


You can do arithmetic using XSLT.
http://stackoverflow.com/questions/3389089/arithmetic-operation-in-xslt

In your custom XSLT, it should be easy to assign your count field to a variable and decrement it as and when you build the output.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere DataPower » Looping
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.