Printing question

Kenneth Brody kenbrody at spamcop.net
Thu Oct 22 10:48:44 PDT 2009


Brandt Eppler wrote:
> field 1 is allways going to be the same, I have +/- 45,000 records. So where 
> ever it picks up the value it looses it in the @once.
> 
> How can I keep the value and get the correct file name?
[...]
>      > ::nn(10,*,g)=1:
>      > @once::
>      > ::PRINTER FILE "/appl/output/"{NN{"_bu_check":
>      > ::end:
>     [...]
> 
>     The first time through this code, in @ONCE, field nn is blank. Then, for
>     every record that goes through output processing, you reset the output file
>     name again, using field 1 from that record as the value.

As I said, when the @ONCE event is triggered, field NN has not yet been 
assigned a value, and is therefore blank.  (It doesn't "lose" the value, 
since it was never given one to begin with.)

Then, for every record that you have selected, you execute the PRINTER FILE 
command again, using that record's field 1 as the value of NN.  If field 1 
never changes, then you are simply overwriting the file 45,000 times, 
leaving the last record's output in that file.

-- 
Kenneth Brody


More information about the Filepro-list mailing list