Fixed length file & leading spaces
Kenneth Brody
kenbrody at bestweb.net
Wed Nov 17 15:39:40 PST 2004
Dennis Malen wrote:
>
> Ken,
>
> Your the best. That's all I needed.
Thanks.
[...]
> The Problem:
>
> A fixed length file is created without the use of -x because we are trying to
> use -a. All the fields created are exported perfectly, except for the first
> field which has leading spaces. In that case the field moves left causing the
> file to be out of sync for the receiver of the file who is expecting a certain
> length.
No. You are exporting _one_field_!!! It is this _one_field_ that has
its leading and trailing spaces stripped. There is nothing special about
the "first field". _Every_ field you export without the "-x" flag will
have its leading and trailing spaces stripped.
[...]
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap at gmail.com>
More information about the Filepro-list
mailing list