title: What is the logic to write a COBOL program to reverse records and move from 1 file to another?
body: <p>For example:</p>
  
  <p><strong>File1</strong></p>
  
  <pre><code>AAA
  BBB
  CCC
  DDD
  </code></pre>
  
  <p><strong>File2</strong></p>
  
  <pre><code>DDD
  CCC
  BBB
  AAA
  </code></pre>