title: how to use GO TO in COBOL
body: <p>I have the following code snippet in one of my COBOL program.</p>
  
  <pre><code>IF  FIRST &lt; SECOND
     MOVE FIRST TO WS
  END-IF.
  MOVE SECOND TO WS.
  MOVE WS TO RESULT.
  </code></pre>
  
  <p>I need to use GO TO inside the IF block to jump to the last statement (MOVE WS TO RESULT).</p>
  
  <pre><code>IF  FIRST &lt; SECOND
     MOVE FIRST TO WS
     GO TO &lt;last line.(MOVE WS to RESULT)&gt;
  END-IF.
  MOVE SECOND TO WS.
  MOVE WS TO RESULT.
  </code></pre>
  
  <p>in other word, i need to skip "MOVE SECOND TO WS.".<br>
  what is the simplest way to jump to a specific line in cobol?
  I read somewhere that this is possible by defining a PARAGRAPH, but don't know how to define it.</p>
  
  <p>It might seems very simple but I'm newbie to COBOL programming.</p>
  
  <p>Thanks.</p>
  
  <p>----------------* UPDATE *----------</p>
  
  <p>based on @lawerence solution, is this correct?</p>
  
  <pre><code>IF  FIRST &lt; SECOND
       MOVE FIRST TO WS
       GO TO C10-END.
    END-IF.
  
    MOVE SECOND TO WS.
  
  C10-END.
  MOVE WS TO RESULT.
  </code></pre>
  
  <p>i just moved back the last statement to be in first level. </p>