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:[email protected]] On Behalf Of Kris Buelens > Sent: Wednesday, March 04, 2009 1:51 PM > To: [email protected] > Subject: Re: 407 Help > > 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 zzzz9 11', > And, as was suggested, I debug things alike by printing the > intermediate things too, so: > '| spec a: 1.8 1 b: w2 . c: w3 .', > 'print b+c picture zzzz9 11 print b 25 print c 40'', > > > 2009/3/4, Bruce Hayden <[email protected]>: > > > > 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 > > > > > > -- > Kris Buelens, > IBM Belgium, VM customer support >
