> In regard to: > > "The ISA segment is always 105 characters in length - fixed length, so > you can get the EOS character by checking the 106th character in the EDI > text string. " > > I am thrilled at the pleasure of being the first to point out *this > time* that this is not true. As long time denizens of this list will > remember, Jonathan Allen many years ago brought to our attention that > the ISA might be 106 bytes with the segment terminator in the 107th > byte, this due to the fact that the control number can be negative. True > also that this almost never happens, but if you want a bullet proof > completely compiant parser you'll need to accomodate this idiosyncracy.
In addition, the "105 or 106 characters" thing ASSUMES you are not dealing with 'blocked' data ... that is, 'n' chars, newline, 'n' more chars, newline, 'n' more chars, newline... ... or 'one segment per record, space padded if necessary to reach record length.' Fortunately, Windows users may download - for free - the "EDI Clean" command-line utility (new version about a month ago!) from my website which WILL reformat the data for you "from any, to any" (does NOT handle "signed interchange control number.") (Because I still think it is silly, that's why!) >From home page (link below) hit the "tech corner" tab and find "EDICLEAN" on the page. Michael C. Mattias Tal Systems Inc. Racine WI [email protected] http://www.talsystems.com ------------------------------------ ... Please use the following Message Identifiers as your subject prefix: <SALES>, <JOBS>, <LIST>, <TECH>, <MISC>, <EVENT>, <OFF-TOPIC> Job postings are welcome, but for job postings or requests for work: <JOBS> IS REQUIRED in the subject line as a prefix.Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/EDI-L/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/EDI-L/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
