I am writing a piupeline that reads records in the format <attribute> <list of users> where the list of users may be one or many and write out a record for each user consisting of <attribute> <user>

The code I wrote shown below terminates while some partially processed records are in the pipeline (and get displayed on console). Please offer advice or code snippet.

Thanks
Graeme

'pipe (endchar ?) < VMTAPE CONFPROD A',
  '| append literal $STOP$ $STOP$ $STOP$'||,
  '| f: faninany',
  '| elastic',
  '| n: nlocate w3',
  '| specs w1 1 w2 nw',
  '| sort',
  '| unique',
  '| > users confprod a',
  '?',
  'n:',
  '| t: tolabel $STOP$'||,
  '| specs w1 1 w2 nw write w1 1 w3-* nw',
  '| f:',
  '?',
  't:',
'| console'

Reply via email to