Thanks, all. The problem was in another part of the pipe that was adding
unwanted data into the pipe. I have improved the pipe with the suggested
streamlining. Thanks, all.
Regards,
Richard Schuh
> -Original Message-
> From: CMSTSO Pipelines Discussion List
> [mailto:cms-pipeli...@v
Other remark: you even don't need to use counter 0. Usually counters are
used to sum things spanning multiple records. You could code
'| spec a: 1.8 1 b: w2 . c: w3 .',
'print b+c picture 9 11',
And, as was suggested, I debug things alike by printing the intermediate
things too, so:
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 wrote:
> I have a file from which I have extracted data. I am passing this data
> through the following seemingly simple specs stage:
>
>
A suggestion to make it easier to diagnose would be to output the values for b
and c on each output record as well as the generated b+c value in counter 0.
Rollin Hill
"Schuh, Richard" wrote:
> 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.
Any chance that last record just happens to have more
No good reason. I was flailing around trying to find something that
works. If I remove it, the results are identical - the sum in the last
record is still the same bogus number.
Regards,
Richard Schuh
> -Original Message-
> From: CMSTSO Pipelines Discussion List
> [mailto:cms-pipel
Why do you use SELECT SECOND?
2009/3/4, Schuh, Richard :
>
> 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 9 11',
>
> W
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 9 11',
With the idea of having the output of the stage include the first word