title: I want a JCL Sort card to write all the records with column n to n+k in a dataset into a newfile. How to achieve this?
body: <pre><code>1234 ABCD  
  3991 ABCD
  3818 ABCD
  1939 PQRS
  2838 PQRS
  1939 ABCD
  2819 PQRS
  2102 FILQ
  2911 ABCD
  3912 FILQ
  </code></pre>
  
  <p>I want to write all the records with ABCD in a file, all the records PQRS in a file all the records with FILQ in a file and so on. I dont know what these columns are going to be before hand.</p>