title: How to parse fields from different lines to build a new record whith all this fileds
body: <p>I have a file with this structure:</p>
  <p><a href="http://paste.ubuntu.com/21136265/" rel="nofollow noreferrer">http://paste.ubuntu.com/21136265/</a></p>
  <p>And I have to capture all the data from the line 'ADSTART  ACTION(ADD)' to the next line with this same text, to create a single record, or line.</p>
  <p>Sorry but I Can't post an example of the output because is all the data between the 'ADSTART' lines  in a single line or record, I'm working under z/OS and we have the concept of record length.</p>
  <p>I'm trying this in REXX for z/OS  and in AWK in UNIX SYSTEM SERVICES for z/OS, but I'm stuck putting all fields in a line, and I can't figure out how to do it.</p>
  <p>I'm capturing the data trough nested loops, but I don't know haw to put it in a single line.</p>