Re: [CMS-PIPELINES] 407 Help

2009-03-04 Thread Schuh, Richard
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

Re: [CMS-PIPELINES] 407 Help

2009-03-04 Thread Kris Buelens
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:

Re: [CMS-PIPELINES] 407 Help

2009-03-04 Thread Bruce Hayden
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: > >  

Re: [CMS-PIPELINES] 407 Help

2009-03-04 Thread Rollin Hill
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

Re: [CMS-PIPELINES] 407 Help

2009-03-04 Thread Glenn Knickerbocker
"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

Re: [CMS-PIPELINES] 407 Help

2009-03-04 Thread Schuh, Richard
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

Re: [CMS-PIPELINES] 407 Help

2009-03-04 Thread Kris Buelens
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

[CMS-PIPELINES] 407 Help

2009-03-04 Thread 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', With the idea of having the output of the stage include the first word