title: SPSS: warning in loop command
body: <p>I have artificially manipulated the following data to understand the loop command in <code>SPSS</code>.</p>
  
  <pre><code> JYEAR   POSITION
   89      
   89       2
   89       1
            2
            1
   99       1     
   99       
   99       2
  </code></pre>
  
  <p>THE BLANK SPACE DENOTE <code>MISSING VALUE</code>.</p>
  
  <p>I WROTE DOWN THE SYNTAX:</p>
  
  <pre><code> DO IF (JYEAR GT 90).
   COMPUTE BONUS=0.
   ELSE IF (POSITION EQ 1).
   COMPUTE  BONUS=.75.
   END IF.
   EXECUTE.
  </code></pre>
  
  <p>I SUPPOSED I WOULD GET THE FOLLOWING RESULT:</p>
  
  <pre><code> JYEAR   POSITION   BONUS
   89                 
   89       2
   89       1          .75
            2          
            1          .75
   99       1           0
   99                   0
   99       2           0
  </code></pre>
  
  <p>BUT I GOT THE FOLLOWING <code>WARNING</code>:</p>
  
  <pre><code> Warning # 142.  Command name: EXECUTE 
   LOOP has no effect on this command. 
   Error # 4095.  Command name: EXECUTE 
   The transformations program contains an unclosed LOOP, DO IF, or complex file 
   structure.  Use the level-of-control shown to the left of the SPSS Statistics 
   commands to determine the range of LOOPs and DO IFs. 
   Execution of this command stops.
  </code></pre>