title: Writing characters after x amount of records using a JCL Sort
body: <p>I have written a JCL SORT that will sort/reformat various fields and print them to a new output file as in the code below. I need to amend this code to simply print the number '9' at the beginning of every tenth(10th) record. I presume I need an 'IFTHEN' but I'm not sure if it can be used with 'OUTREC FIELDS'. </p>
  
  <pre><code>SORT FIELDS=COPY
    OUTREC FIELDS=(2:26,5,
                   7:38,8,
                   22:15,9,
                   46:C'AAA')
  </code></pre>