On 12/5/2013 12:48 PM, FAULHABER Michael wrote:
> Following SPEC generates an empty record after the wanted ones. 
> Because I failed to prevent this by IF ^EOF() ... FI I filter this
> with LOCATE as shown in this cutout:
> 
> '|a:spec a: w1 . select 1 b: w1 . select second c: w1 .',
>      '  select 0 print ((a + b - c + 128) // 128) d2c 1.1 r|l',
> 
> What would be the canonical way to do this?

As long as there's no explicit WRITE, you can cancel writing the record
with EOF NOWRITE at the end of the spec.  If you were using WRITE (say,
if you produced more than one record), then you'd need an IF ¬EOF()
clause to skip the whole mess in the runout.

¬R

Reply via email to