title: Mainframes JCL Record transposing using SORT
body: <p>I want to do following transposing of records into column using SORT (snycsort or DFSORT). It should be  scalable  to any number of records .Is this possible ?</p>
  
  <pre>
  DE001XYX   A <BR>
  CD100000   B <BR>
  CD200000   C <BR>
  DE001KKK   A <BR>
  CD100000   B <BR>
  DE003ZZZ   A <BR>
  DE001XYX   A <BR>
  CD100000   B <BR>
  CD200000   C <BR>
  DE001KKK   A <BR>
  CD100000   B <BR>
  ........
  </pre>
  
  <p>Transpose </p>
  
  <pre>
  DE001XYX   CD100000   CD200000   
  DE001KKK   CD100000   
  DE003ZZZ   
  DE001XYX   CD100000   CD200000   
  DE001KKK   CD100000   
  .....
  </pre>