title: Nested If-Then-Else usage in DataStage
body: <p>I am trying to write the following nested If-Then-else statements in Transformation Stage of DataStage but its giving me compilation error. Can anybody tell me is there any other way of doing this?</p>
  
  <pre><code>If IsNotNull(DSLink16.DECISION_ID) 
  Then (
      If DSLink16.DECISION_RESULT = 1 Then (
          If DSLink16.DECISION_CODE = 'ALOW' Then 'DENY'
          Else If DSLink16.DECISION_CODE = 'DENY' Then 'ALOW'
          Else If DSLink16.DECISION_CODE = 'NOIS' Then 'NOIS'
      )
      Else If DSLink16.DECISION_RESULT = 2 Then 'DSMS'
      Else If DSLink16.DECISION_RESULT = 3 Then (
          If APPELANT_CODE = 'CLMT' Then 'ALOW' Else 'DENY'
      )
      Else If DSLink16.DECISION_RESULT = 4 Then (
          If APPELANT_CODE = 'CLMT' Then 'DENY' Else 'ALOW'
      )
      Else If DSLink16.DECISION_RESULT = 5 Then DSLink16.DECISION_CODE
      Else If DSLink16.DECISION_RESULT = 6 or DSLink16.DECISION_RESULT = 7 or DSLink16.DECISION_RESULT = 8 Then 'DENY'
  )
  
  Else (
      If DSLink16.DECISION_RESULT = 1 Then 'DENY'
      Else If DSLink16.DECISION_RESULT = 2 Then 'DENY'
      Else If DSLink16.DECISION_RESULT = 3 Then 'ALOW'
      Else If DSLink16.DECISION_RESULT = 4 Then 'DENY'
      Else If DSLink16.DECISION_RESULT = 5 Then 'ALOW'
      Else If DSLink16.DECISION_RESULT = 6 Then 'DENY'
      Else If DSLink16.DECISION_RESULT = 7 Then 'DENY'
      Else If DSLink16.DECISION_RESULT = 8 Then 'DENY'
  )
  </code></pre>