We can accomplish your problem using the following,its tricky though
After you set the ~ as delimiter invoke the following:
pub.string:tokenize (set delim= ~)which gives out valueList) then
pub.string:makeString (map the above valueList and set the delim= ~ and also under that just enter the cursor (it gives the newline character)and close the setValue box)
I have another problem. In the document, which I receive will contains no delimiter. Neither record nor field delimiter. TN is not recognizing this. his Document type is X12 2040 850. If you have any solutions please suggest.
If it’s fixed length it’s not ANSI EDI.
They’re just calling the file an EDI file.
Like Sreedhar said treat it as a flat file, create your schema and away you go.
Tell the schema it’s a fixed length record and you delimiter issue will be gone.
HTH
One reason you might want the CR in there is for a system that does not handle wrapped data. It is unusual but I have had the request before from trading partners.
Dawn it still wouldn’t be fixed length. EDI is variable length.
If he’s getting blocked data then that’s a different issue.
As in blocked at 80 characters in a Bysnc connection from GXS or some other VAN.
In that case he can tell the VAN to send it as streamed data or write a pre-processing service to strip out CR/LF (0D/0A) and then pass the un-blocked data back to TN.
Chris,
The request could actually be for both to have CR and fixed record length at 80. I have had a variety of requests over the years and some companies don’t know how to handle the streamed data. I guess I missed in the thread where the fixed record length requirement was stated but in this case it would be padded with blanks to complete the 80 character fixed length requirement. All I was intending with my post is to note that I have had this request before and the reason someone might request this.
Thanks,
Dawn
I wasn’t trying to belittle you point I just don’t understand how an ANSI EDI file can be fixed length to 80 characters. That would mean you are padding the last field in every segment. I understand it can be blocked.
Chris,
No problem I didn’t think you were belittling anything. I get a lot of requests for weird things (I’ve been doing EDI since about 1985) and I agree the fixed length and padding with blanks is weird! I guess all the variety of issues that come up with integrating systems is why we have job security :o) As long as you make it work they keep coming back for more.
Thanks,
Dawn
I am using a Fixed Length record in a flatfile to send a confirmation back to the client, but the client needs a CRLF character at the end of each record. The fixed length is 550.
I tried to put a \n at the 548-549 position in a Fixed length record but that did not help.
How can I insert a CRLF at the end of each record?
your requirement indicates that you need a flatfile string with Delimiter(CRLF) as well fixedlength.
So in the FlatFileSchema editor use the RecordParser (Delimiter) option and select Record Character either (newline or carriagereturnlinefeed) optionlist.And keep the fixedlength fields as it is.
Finally test using the pub.flatFile:convertToString service you will see the results as expected CRLF for each record and fixedlenght data (550)