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 » Fixed length field, variable length records

Post new topic  Reply to topic
 Fixed length field, variable length records « View previous topic :: View next topic » 
Author Message
Tonedef
PostPosted: Tue Mar 13, 2007 12:49 am    Post subject: Fixed length field, variable length records Reply with quote

Apprentice

Joined: 05 Feb 2007
Posts: 44

I am trying to transform a a flat file of fixed length fields, but the last few fields are conditional making it variable length.

first I set the record type to Fixed Length, but after doing some reading this really is only for fixed length records, but the AL3 type seems to allow for what I want to do.

so I change the min/max to 0/1 at field level, select Acord AL3 as the record type, and set the delimiter as <CR><LF>
but it failed and appears to ignore the <CR><LF> and expect the remaining fields,
if I removed the fields from the type def, then the file worked, and I got the output I wanted, so for me it proves there is soething I still need to do to allow optional fields.


does anyone have any pointers please?
Back to top
View user's profile Send private message MSN Messenger
jefflowrey
PostPosted: Tue Mar 13, 2007 4:18 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Acord AL3 should only be used for Acord AL3 data.

If you're trying to use delimited data, then you need to use TDS.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Mar 13, 2007 5:32 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I would recommend that you change from 'Fixed Length' to 'Use Data Pattern'. Instead of setting the length=N on each element, set the data pattern to .{N}.
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 » Fixed length field, variable length records
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.