Help ID characters

Jeff Harrison jeffaharrison at yahoo.com
Tue Dec 7 13:49:18 PST 2004


--- "Lerebours, Jose" <Jose.Lerebours at EagleGL.com>
wrote:

> 
> This is what I see
> 
>
626*0*P*:<85>GS*FA*001495472*3055940038*20041207*1147*626*X*004030<85>ST*997*62
> 
>          ^^^^                                       
>              ^^^^^
>

Jose, once you figure out what the record delimiter is
you are still going to have problems reading this with
the import command, I suspect.  If I remember my EDI
correctly - (Its been several years) - you could have
any number of fields per physical record.  This is
because there can be various logical records within
each physical record.

I seem to recall that the firt record is fixed lenth,
and it tells you what the field and record delimiters
are.  What I did was pre-read the file to determine
what the delimiters were, and then started over again
at the top of the file using the raw IO commands.  I
processed the file one field at a time so that I could
follow the appropriate looping mechanisims that were
built into each physical record.

You may want to read the entire record as one field
using the import command and then parse it out
appropriately.

Good Luck.

Jeff Harrison
jeffaharrison at yahoo.com

------------------------------------------------------
Author of JHImport and JHExport.  The fastest and 
easiest way to create code for filePro Imports
and Exports.
------------------------------------------------------


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Filepro-list mailing list