Why do you use SELECT SECOND?

2009/3/4, Schuh, Richard <[email protected]>:
>
> 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
>



--
Kris Buelens,
IBM Belgium, VM customer support

Reply via email to