TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft BizTalk Server

Notices

Positional flat file line variable length

Microsoft BizTalk Server


Reply
 
Thread Tools Display Modes
Old 08-12-2007, 01:36 AM   #1
mohamed.souiai@gmail.com
Guest
 
Posts: n/a
Positional flat file line variable length

Dear All,

I have to parse a positional flat file. I am using the biztalk xml
flat file disassembler with a complex schema that I defined. The issue
is that there are some lines that the length is variable. Sometimes
it's 200 and sometime it's 201 positions

Do you please know a suitable way to solve this?

custom pipeline probing ???

Thanks is advance!!!
Mohamed.

  Reply With Quote
Old 08-12-2007, 05:31 AM   #2
Jan Eliasen
Guest
 
Posts: n/a
Re: Positional flat file line variable length

On Fri, 7 Dec 2007 09:28:09 -0800 (PST),
wrote:

>I have to parse a positional flat file. I am using the biztalk xml
>flat file disassembler with a complex schema that I defined. The issue
>is that there are some lines that the length is variable. Sometimes
>it's 200 and sometime it's 201 positions
>
>Do you please know a suitable way to solve this?

First: A positional file should ALWAYS have the same number of bytes
in each record. That is the definition of a positional file...

Anyway, depending on which element has the extra byte, you have some
options. You can declare an optional field at the end of the record
with size 1.

Or you can set the length to be the longest (the one that will give
you 201 characters) and allow early record termination on the schema
(not 100% sure about the name of the property).

There are probably other ways around it.

But really... tell the people that send you variable length positional
files to stop it :-)

--
eliasen, representing himself and not the company he works for.

Private blog:

Private email:
  Reply With Quote
Reply

Thread Tools
Display Modes



< Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 06:22 PM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2009, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional