Fw: Export file and the use of Append -a

Dennis Malen dmalen at malen.com
Mon Oct 18 12:23:36 PDT 2004


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
> >
> >
>



More information about the Filepro-list mailing list