title: How to remove records from a file having same values at a location?
body: <p>I have a sequential file having record length of 11. I have a field in-between starting from 9th position till 11th position and is of PIC 9(03). I want to delete all the records where I have same data in above specified location. This needs to be done using JCL only. Any utility can be used but should be supporting in microfocus cobol. See the example below:</p>
  
  <p>Example File:</p>
  
  <pre><code>Rob  ,d,012
  Mike ,h,013
  Kim  ,g,014
  Bob  ,k,014
  Wiz  ,t,015
  </code></pre>
  
  <p>In the above example I want to delete rows for Kim and Mike as it is having same value for the location i.e. 014 and final output should be:</p>
  
  <pre><code>Rob  ,d,012
  Mike ,h,013
  Wiz  ,t,015
  </code></pre>