I think you're expecting the results to flow out of the "bottom" of the pipe. If you moved the ">" stage after the faninany (dropping the ": a2" connection) you'd probably have what you want. That after all is where you're feeding the records selected by the locates.
-- Mike Harding z/VM System Support /sp CMSTSO Pipelines Discussion List <CMS-PIPELINES@vm.marist.edu> wrote on 07/23/2014 03:03:20 PM: > From: Miguel Soltero Diaz <mig...@live.com> > To: CMS-PIPELINES@vm.marist.edu > Date: 07/23/2014 03:04 PM > Subject: Re: Trying to use the Locate > Sent by: CMSTSO Pipelines Discussion List <CMS-PIPELINES@vm.marist.edu> > > Hi Ronald, > After further review with All Stage, I couldn't find a way to > specify the location of the codes 0690/1090. So it gave me all > records where the codes were found. > > So, I tried again with LOCATE as suggested. > I must be missing something important, because I got all input > records, ignoring the Locate stage > > here is my code > 'pipe (endchar ?)', > '< AUDIT EXTRCT1', > '| a1: locate (29-32) /0690/ ', > '| b: faninany', > '? a1:', > '| a2: locate (29-32) /1090/ ', > '| b: ', > '? a2:', > '| > AUDIT SUBSET a ' > > what am I missing? > > Thanks >