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 » ffd choice

Post new topic  Reply to topic
 ffd choice « View previous topic :: View next topic » 
Author Message
wmquser
PostPosted: Tue Oct 18, 2011 10:19 am    Post subject: ffd choice Reply with quote

Apprentice

Joined: 20 Aug 2008
Posts: 32

We have a requirement. We need to transform a xml data into fixed file (cobol copy book/s390 system). We are using ffd for this. Based on the input, the cobol copy structure will change. In the cobol copy book, the header length will be the same, but the data group will change (the number of fields and the total length of the data group will also change). We are planning to use choice group in ffd, but it always calls the first group in the choice. Could you guide us on this, any sample code will also help us.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 18, 2011 11:03 am    Post subject: Reply with quote

Grand High Poobah

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

How do you know (looking at the file) that a given record is a header or a data record?

Code that information into the definitions of header & data and then WMB will know which layout to choose.

Or if you've got different copybooks for header and data layout(s), import them as separate records and select the correct record in the ESQL.

I've leave it to kimbert to expound on the pros & cons of each method, and to post an even simpler & more ingenious way of doing this...
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Oct 18, 2011 11:14 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
Or if you've got different copybooks for header and data layout(s), import them as separate records and select the correct record in the ESQL.

I've leave it to kimbert to expound on the pros & cons of each method, and to post an even simpler & more ingenious way of doing this...


Except this is on DataPower, not WMB, and DataPower doesn't support ESQL or any of the modelling tools that kimbert is familiar with...

I think wmquser needs to better understand how XSD handles choices.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 18, 2011 11:33 am    Post subject: Reply with quote

Grand High Poobah

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

Doh!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
wmquser
PostPosted: Tue Oct 18, 2011 8:33 pm    Post subject: Reply with quote

Apprentice

Joined: 20 Aug 2008
Posts: 32

there is a way to handle in FFD by using Choice group. But it always select the first group in the choice group. I know there are ways in XSD to handle, but this should be handled in FFD only. If anyone have tried using the FFD choice, advise us.
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 DataPower » ffd choice
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.