title: Remove duplicates on specific record type using JCL sort
body: <p>can you please help me to achieve below goal JCL sort ?
  I have input file with different set if records. I need to remove the duplicates only specific record type based on 10,04 position. There should not be any change in other types of records.  </p>
  
  <p>I need to remove duplicates oly for P4 on position 10,4. </p>
  
  <p>iNPUT:</p>
  
  <p>P1AAAAAAA0101xxxxxxx</p>
  
  <p>P2AAAAAAA0101xxxxxxx</p>
  
  <p>P4AAAAAAA0101xxxxxxx</p>
  
  <p>P4AAAAAAA0101xxxxxxx</p>
  
  <p>P4AAAAAAA0102xxxxxxx</p>
  
  <p>P4AAAAAAA0103xxxxxxx</p>
  
  <p>P4AAAAAAA0104xxxxxxx</p>
  
  <p>P5AAAAAAA0101xxxxxxx</p>
  
  <p>P7AAAAAAA0101xxxxxxx</p>
  
  <p>P9AAAAAAA0101xxxxxxx</p>
  
  <p>EXPECTED OUTPUT:</p>
  
  <p>P1AAAAAAA0101xxxxxxx</p>
  
  <p>P2AAAAAAA0101xxxxxxx</p>
  
  <p>P4AAAAAAA0101xxxxxxx</p>
  
  <p>P4AAAAAAA0102xxxxxxx</p>
  
  <p>P4AAAAAAA0103xxxxxxx</p>
  
  <p>P4AAAAAAA0104xxxxxxx</p>
  
  <p>P5AAAAAAA0101xxxxxxx</p>
  
  <p>P7AAAAAAA0101xxxxxxx</p>
  
  <p>P9AAAAAAA0101xxxxxxx</p>