Export file and the use of Append -a

John Esak john at valar.com
Mon Oct 18 13:13:48 PDT 2004



> -----Original Message-----
> From: filepro-list-bounces at lists.celestial.com
> [mailto:filepro-list-bounces at lists.celestial.com]On Behalf Of Dennis
> Malen
> Sent: Monday, October 18, 2004 3:24 PM
> To: filepro-list at lists.celestial.com
> Subject: Fw: Export file and the use of Append -a
>
>
> Still have the problem of the append -a with fixed length. I am able to
> append but it does not create a new line for each new append.
	>
> pn="/tmp/rnx/rnx"{ex{xlate(@td,"/",""){".wp"
>
> export ascii rnf=(pn) -a
>
> a(10)=@rn;b(9)=6;c(40)=ww;d(40)=27;e(40)="";f(40)=28;g(2)=29;h(10)=13
>
> rnf(1)=a&b&c&d&e&f&g&h;write rnf;close rnf
>
> Do I need one of the following after &h above?:
> 1.&"\n" or
> 2.&chr("10")
>
> If anyone can confirm if this is what is to be done to add a new
> line please
> let me know.
>
> Ken Brody seemed to say that filepro takes care of the new line if you use
> an append -a and that nothing more is necessary. That does not seem to be
> the case.
>
> Dennis Malen
> 516.479.5912
>
>
> ----- Original Message -----
> From: "Dennis Malen" <dmalen at malen.com>
> To: "Kenneth Brody" <kenbrody at bestweb.net>; "Bob Stockler"
> <bob at trebor.iglou.com>
> Cc: <filepro-list at lists.celestial.com>
> Sent: Thursday, October 14, 2004 3:44 PM
> Subject: Re: Export file and the use of Append -a
>
>
> > Ken,
> >
> > Do you mean that neither "\n" or chr("10") is necessary or that
> chr("10")
> is
> > necessary to get a carriage return or new line?
> >
> > Dennis
> > ----- Original Message -----
> > From: "Kenneth Brody" <kenbrody at bestweb.net>
> > To: "Bob Stockler" <bob at trebor.iglou.com>
> > Cc: <filepro-list at lists.celestial.com>
> > Sent: Thursday, October 14, 2004 3:43 PM
> > Subject: Re: Export file and the use of Append -a
> >
> >
> > > Bob Stockler wrote:
> > > [...]
> > > >   Then: fi = "/tmp/fixed_length_ascii.txt"
> > > >   Then: export ascii out=(fi) -a
> > > >   Then: out(1) = 1 & 3 & 5 & 10 & 12 & "\n"
> > >
> > > ITYM:
> > >
> > >    Then: out(1) = 1 & 3 & 5 & 10 & 12 & chr("10")
> > >
> > > (Unless you want the literal backslash-en to be exported?)
> > >
> > > [...]
> > > > On Windows you'd want to end the assignment to out(1) with:
> > > >
> > > >   & "\r" { "\n".
> > >
> > > Not necessary, as EXPORT ASCII already does the NL-->CRLF translation,
> > > just as IMPORT ASCII does CRLF-->NL.
> > >
> > > --
> > >
> >
> +-------------------------+--------------------+------------------
----------
> > -+
> > > | Kenneth J. Brody        | www.hvcomputer.com |
> > |
> > > | kenbrody/at\spamcop.net | www.fptech.com     | #include
> > <std_disclaimer.h> |
> > >
> >
> +-------------------------+--------------------+------------------
----------
> > -+
> > >
> > > _______________________________________________
> > > Filepro-list mailing list
> > > Filepro-list at lists.celestial.com
> > > http://mailman.celestial.com/mailman/listinfo/filepro-list
> > >
> > >
> >
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list

I would need more of an explanation of what you mean by "add a new line".
Do you mean a new record from within the first export session...??  Do you
mean a new record from the 2nd export session (the one that would be
appending to the first?)  Tha must be it, right?

I would also think you need a "type" of export, such as -X  on the same line
as the -a... or how would filePro know what kind of export you want to do?

John



More information about the Filepro-list mailing list