![]() ![]() |
Trailing blanks on non EDI-split data |
Dec 10 2009, 12:54 PM
Post
#1
|
|
|
Visitor ![]() Group: Members Posts: 1 Joined: 9-December 09 Member No.: 896 |
I have a trading partner that is unable to process my EDI data when it is not processed through the EDI splitter. The data is coming from a mainframe and is sent as binary data from an 80 byte fixed length file. Synchrony packages the file and sends it without truncated the trailing spaces. If multiple transactions are sent from the mainframe, the EDI splitter does truncate all trailing spaces from each interchange.
The documentation for the EDI splitter mentions it truncating all trailing spaces, but this is not happening when only 1 interchange is processed. |
|
|
|
Jan 11 2010, 03:02 PM
Post
#2
|
|
|
Visitor ![]() Group: Members Posts: 7 Joined: 20-January 09 Member No.: 294 |
I have a trading partner that is unable to process my EDI data when it is not processed through the EDI splitter. The data is coming from a mainframe and is sent as binary data from an 80 byte fixed length file. Synchrony packages the file and sends it without truncated the trailing spaces. If multiple transactions are sent from the mainframe, the EDI splitter does truncate all trailing spaces from each interchange. The documentation for the EDI splitter mentions it truncating all trailing spaces, but this is not happening when only 1 interchange is processed. Greg: This doesn't answer your question as to why this is occurring but thought I would share with you how we handle the same situation. We have a pre-process script that runs in a scheduler to pickup all EDI outbound data extracted from the mainframe which is 80-byte wrapped. The pre-process script removes all line feeds to unwrap the data and also removes any trailing spaces from each interchange prior to dropping the resulting modified file into the splitter pickup directory. Just another option for you to consider - the command for this looks like this... #**************************************************************************** # Perl in-line command below replaces any line feeds with nothing (UNWRAP FILE) # Perl in-line command also replaces any tildes followed by one or (REMOVE TRAILING SPACES) # more spaces with just the tilde #**************************************************************************** /usr/bin/perl -wpe 's/\n//g;s/(\x7E)\s+/$1/g' < $PREPROC_DIR/$i > $SPLITTER_DIR/$i rm $PREPROC_DIR/$i |
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
Lo-Fi Version | Time is now: 30th July 2010 - 01:09 PM |
Skin designed by IPB Forum Skins
Expand / Collapse Navigation



Dec 10 2009, 12:54 PM



