Remove "select second".  You aren't comparing records, looking for
breaks, etc. so you don't need that option.

On Wed, Mar 4, 2009 at 2:05 PM, Schuh, Richard <[email protected]> wrote:
> I have a file from which I have extracted data. I am passing this data
> through the following seemingly simple specs stage:
>
>  '| spec select second a: 1.8 1 b: w2 . c: w3 .',
>        'set #0:=b+c  print #0 picture zzzz9 11',
>
> With the idea of having the output of the stage include the first word
> of the input in columns 1-8 and the sum of the second and third words in
> columns 11-15. This works fine for all input records except the last.
> The first word is correct, but the second seems quite arbitrary, usually
> orders of magnitude larger than the sum should be. One example, 585
> instead of 17. I have also seen numbers in the tens of thousands when
> the actual totals were under 1000.  What did I do wrong and how can I
> correct the plug-board?
>
>
> Regards,
> Richard Schuh
>



-- 
Bruce Hayden
Linux on System z Advanced Technical Support
IBM, Endicott, NY

Reply via email to