|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ffd choice |
« View previous topic :: View next topic » |
Author |
Message
|
wmquser |
Posted: Tue Oct 18, 2011 10:19 am Post subject: ffd choice |
|
|
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 |
|
 |
Vitor |
Posted: Tue Oct 18, 2011 11:03 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Tue Oct 18, 2011 11:14 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Tue Oct 18, 2011 11:33 am Post subject: |
|
|
 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 |
|
 |
wmquser |
Posted: Tue Oct 18, 2011 8:33 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|