Welcome Guest ( Log In | Register )


 
Reply to this topicNew Topic
Trailing blanks on non EDI-split data
Greg Arnold
post 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.
Go to the top of the page
 
+Quote Post
JayWilliamson@su...
post Jan 11 2010, 03:02 PM
Post #2


Visitor
*

Group: Members
Posts: 7
Joined: 20-January 09
Member No.: 294


QUOTE (Greg Arnold @ Dec 10 2009, 06:54 AM) *
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
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Skin designed by IPB Forum Skins