View Full Version : Trailing blanks truncated during download
Guest.Visitor
01-01-1995, 02:00 AM
Hello all, I think that this has been covered before but I can't find it. I download a file from an AS/400 to a PC with client access. But once on the PC, the record length of the PC file is not the same as on the AS/400. All trailing blanks got removed. We use this file to communicate with a bank and they require that the length match. Any suggestion?
Guest.Visitor
03-27-2001, 10:29 AM
Denis, Create a temporary clone of your PF and add a two byte field onto the end of the record layout. Fill in all of the other fields and then fill that two byte field with X'OD' and X'25' (EBCDIC for carriage return and line feed). When you download the file, the trailing blanks will be preserved and the last two bytes will convert to X'OD' and X'0A' which are ASCII for carriage return and line feed. Chris
Guest.Visitor
04-11-2001, 12:36 PM
<DIV><FONT face=Arial size=2>Denis,</FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2>I just found out about this today:</FONT></DIV> <DIV><FONT face=Arial size=2>If you have selected to output to an ASCII File. You will notice a box labeled "Details". The option behind this box is "Truncate spaces from end of records" and the default is checked. There ya go!</FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2>Bill</FONT></DIV> <BLOCKQUOTE style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> I download a file from an AS/400 to a PC with client access. But once on the PC, the record length of the PC file is not the same as on the AS/400. All trailing blanks got removed. We use this file to communicate with a bank and they require that the length match.</P></BLOCKQUOTE>
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.