I would guess not since crlf is two characters. The terminator as well as all separators can only be one character. You could use a dec 10 (LF) or dec 12 (CR) character. I believe either the LF or CR is treated as a CRLF in dos.
Or there are other characters that are commonly used as segment terminators. Depends upon what your TP will accept (if it matters) and/or what your software will handle.
Usually we use Tilde (~) as the Segment Terminator since it's only 1 character. CRLF is 2 characters - one for Carriage Return and the other for Line Feed. Since the X12 guide says that it can be only one character, I personally think that CRLF can not be used as Segment Terminator.
Thanks ! Rajesh
What OS are you using? We're using Unix and you can run a 'tr' command to translate (replace) certain characters into another and then display the converted text making the file much more readable. This is useful since trading partners use different terminators and separators and if you have a script to do this you can display any file you want with the terminators replaced with crlf. I'm not familar with any dos/win utilities that do this , but I'm sure that there is one.
We're running Windows Server 2000. I have created a script that will replace the existing segment terminator w/ crlf. My inquiry was mostly to see if we need to modify this on the outbound files for the receiving TP's. Readability is greatly enhanced w/ crlf. I'd love to see this as a valid X12 delimiter.
Yes, I would say you HAVE to reconvert the crlf back to some single character (ex: "~" before you send it to your TP. They will definately reject your document if not. I'm not sure how all translation software works, but the isa segment is fixed and it expects the 160th char (i think) to identify segment terminator... if you send 2 chars then the rest of the segments will be unidentifiable. The 2nd seg (GS) would start with lfGS and not match any valid segment id.
It's highly unlikely you will ever see these standards change to allow for 2 char separators and/or terminators.
If you want to make it readable... you'll just have to use your scripts to switch chars and/or maybe your translation software can generate formated reports?
PS. Have you tried using just 0a(lf) or 0D(cr)as a terminator? Win may add the cr or lf when viewing in some editors?? Haven't tried it... just guessing.
We've been using CRLF as our default segment delimiter. This was unintentional on our part but so far we've only had a couple trading partners that couldn't process with it.
Many of our TP's send their files using the CRLF as well and we haven't had any problems with it.
I have heard that the windows OS will read CRLF as if it is a single character - I am not certain this is true or not.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.