export fixed length problem

Dennis Malen dmalen at malen.com
Wed Nov 17 13:30:17 PST 2004


Ken,

I am exporting many fields. In order to create a fixed length line without
using -x you suggested putting all the fields into one.

Your suggestion of a(10)=""{r will probably work. I'll let you know.
Thanks!!!!!

Dennis

----- Original Message ----- 
From: "Kenneth Brody" <kenbrody at bestweb.net>
To: "Dennis Malen" <dmalen at malen.com>
Cc: "filePro mailing list" <filepro-list at lists.celestial.com>
Sent: Wednesday, November 17, 2004 3:21 PM
Subject: Re: export fixed length problem


> Dennis Malen wrote:
> >
> > Ken,
> >
> > 1. I am only exporting one filed because that is how the filePro list
> > suggested I do it. It was also your suggestion to use the chr("10"). It
> > works great, except for the first field. You seem to be satisfied with
the
> > logic that all other fields hold the spaces but you are not concerned
with
> > the first field and seem to accept that. Why, I don't know.
>
> You are only exporting one field.  There are no "other fields" involved.
> The one field you are exporting starts with some spaces (which are
stripped)
> and ends with a newline (hence there are no trailing spaces to strip).
>
> > 2. Trailing spaces are not being stripped on subsequent fields on the
same
> > line. Again, it is only the first field. If I add xx(5) after a(10) then
the
> > 5 empty spaces in xx are retained. If I put it in front of a(10) and
cause
> > the xx to be the first field, it is not maintained.
>
> Again, you are only exporting one field.  There are no "subsequent
fields".
>
> > 3. I can not use the -X with -a.
>
> You can with the 5.0.14 update.
>
> > 4. You say to left justify. Whaaalaaa! You finally got it. That's the
> > question I have been asking. How do I do it???????????
>
> Rather than:
>
>     a(10,*) = r
>
> use:
>
>     a(10,*) = "" { r
>
> -- 
>
+-------------------------+--------------------+----------------------------
-+
> | 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