You could use something like joincont and reject records that do not have the SUCCESS trailer and those which do not interest you. Regards, Richard Schuh
> -----Original Message----- > From: CMSTSO Pipelines Discussion List > [mailto:[email protected]] On Behalf Of Glenn Knickerbocker > Sent: Tuesday, July 13, 2010 12:40 PM > To: [email protected] > Subject: between, but only if completed > > I have a file like so: > > REQUEST 1 > data > data > SUCCESS > OTHER REQUESTS > I don't > care about > SUCCESS > REQUEST 2 > data > data > nothing here to indicate failure > REQUEST 3 > data > data > SUCCESS > > Anybody have any neat tricks I'm overlooking to pull out the > lines for just the successful requests of interest? > > REQUEST 1 > data > data > SUCCESS > REQUEST 3 > data > data > SUCCESS > > Or will I just have to use a sipping stage to read each > request up to either success or the next request? > > ¬R >
