Fw: Export file and the use of Append -a

Dennis Malen dmalen at malen.com
Thu Oct 14 12:07:28 PDT 2004


----- Original Message -----
From: "Dennis Malen" <dmalen at malen.com>
To: "Bob Stockler" <bob at trebor.iglou.com>
Sent: Thursday, October 14, 2004 3:06 PM
Subject: Re: Export file and the use of Append -a


> Bob,
>
> Thanks for the reply. Only question is the set up of out(1). Can I use
dummy
> fields in the following manner:
>
> aa(10,*)=1,bb(5,*)=7
>
> out(1)=aa&bb&"\n"
>
> The length of the filepro file may not be what the client wanted and they
> may be looking for a different length of field.
>
> Thanks,
>
> Dennis
>
> ----- Original Message -----
> From: "Bob Stockler" <bob at trebor.iglou.com>
> To: <filepro-list at lists.celestial.com>
> Sent: Thursday, October 14, 2004 2:37 PM
> Subject: Re: Export file and the use of Append -a
>
>
> > On Thu, Oct 14, 2004 at 12:07:54PM -0400, Dennis Malen wrote:
> > |
> > | Then how does one create a fixed length file and append to it.
> >
> > I'm not Ken, but . . .
> >
> >   Then: fi = "/tmp/fixed_length_ascii.txt"
> >   Then: export ascii out=(fi) -a
> >   Then: out(1) = 1 & 3 & 5 & 10 & 12 & "\n"
> >
> > or, if you want to export entire records:
> >
> >   Then: dim record[1](nnn) ' where "nnn" is the filePro record length
> >   Then: fi = "/tmp/fixed_length_ascii.txt"
> >   Then: export ascii out=(fi) -a
> >   Then: out(1) = record["1"] & "\n"
> >
> > On Windows you'd want to end the assignment to out(1) with:
> >
> >   & "\r" { "\n".
> >
> > Bob
> >
> > --
> > Bob Stockler - bob at trebor.iglou.com
> > Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User
> Menus.
> > Fully functional (time-limited) demos available by email request
(specify
> OS).
> > _______________________________________________
> > Filepro-list mailing list
> > Filepro-list at lists.celestial.com
> > http://mailman.celestial.com/mailman/listinfo/filepro-list
> >
> >
>



More information about the Filepro-list mailing list