title: How to convert IBM file to hexadecimal using DFSORT?
body: <p>I'm trying to pass a IBM file to hex values.</p>
  
  <p>With this input:</p>
  
  <pre><code>H800    
  </code></pre>
  
  <p>Would save this output in a file:</p>
  
  <pre><code>48383030
  </code></pre>
  
  <p>I tried by this way:</p>
  
  <pre><code>//R45ORF80V  JOB (EFAS,2SGJ000),'LLAMI',NOTIFY=R45ORF80,
  //     MSGLEVEL=(1,1),MSGCLASS=X,CLASS=A,             
  //     REGION=0M,TIME=5                               
  //*---------------------------------------------------
  //SORTEST   EXEC PGM=ICEMAN                            
  //SORTIN   DD DSN=LF58.DFE.V1408001,DISP=SHR         
  //SORTOUT  DD DSN=LF58.DFE.V1408001.OUT,             
  //            DISP=(NEW,CATLG,DELETE),                
  //            LRECL=4,DATACLAS=CDMULTI             
  //SYSOUT   DD SYSOUT=X                                
  //SYSPRINT DD SYSOUT=X                                
  //SYSUDUMP DD SYSOUT=X                                
  //SYSIN    DD *                                       
    SORT FIELDS=COPY                                    
    OUTREC FIELDS=(1,4,HEX)                                 
    END                                                 
  /*           
  </code></pre>
  
  <p>But it outputs the following:</p>
  
  <pre><code>C8F1F0F0
  </code></pre>
  
  <p>What am I doing wrong?
  Is posible to convert to hexadecimal a file with 500 of LREC with COMP-3 fields too?
  Just by the way I could use "HEX" command while I browse a file using file manager.              </p>