export ascii & write command
Dennis Malen
dmalen at malen.com
Thu Jun 3 14:29:27 PDT 2004
Jeff,
Thanks for your response.
Before I get to the export command I have test conditions to make sure that
one of the write commands will work.
Regards,
Dennis Malen
516.479.5912
----- Original Message -----
From: "Jeff Harrison" <Jeff.Harrison at Epixweb.com>
To: "'Dennis Malen'" <dmalen at malen.com>; <filepro-list at lists.celestial.com>
Sent: Thursday, June 03, 2004 12:51 PM
Subject: RE: export ascii & write command
> Dennis Malen wrote:
> >
> > Can I use the following two write commands when creating an
> > ascii export
> > file or must I loop back to the original ascii export command
> > and write the
> > second line. This assumes that both conditions are met below.
> >
> > 10 ------- - - - - - - - - - - - - -
> > ~ If: 6 ne "" 'ss# rec#
> > Then: rnx(1)=6;rnx(2)=@rn;ct(5,.0,g)=ct+"1";write rnx
> > 11 ------- - - - - - - - - - - - - -
> > ~ If: 8 ne "" 'ss# rec#
> > Then: rnx(1)=8;rnx(2)=@rn;ct=ct+"1";write rnx;end
> > 12 ------- ------------------------------------------
> > If:
> > Then: end
> >
> > Bottom line can I use two write commands without going back up to:
> >
> > "export ascii rnx=/tmp/asciirn r=\r r=\n -x -a" which is at
> > the top of the
> > processing.
> >
> > Thanks,
> >
> > Dennis Malen
> > 516.479.5912
> >
>
> Yes, I have seen it done the way you suggest with no ill effects. My
> personal style is to loop back to the export ascii line, but I believe
that
> you can do it this way if you wish.
>
> I suppose one drawback would be the fact that there may be a case where
none
> of your if conditions are true - if that happens then you will still get a
> blank line in your export file - probably not what you want.
>
> Jeff Harrison
> jeff.harrison at epixweb.com
>
> Author of JHExport and JHImport - The fastest and easiest ways to generate
> code for filepro exports and imports. Demos available upon request.
>
>
More information about the Filepro-list
mailing list