IBM Support

JR41196: In parallel xform stage, using loop variables in a derivation with IF, SETNULL() FUNCTION CAUSES NULL FOR BOTH THEN AND ELSE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • In a Transformer stage, there is a loop while @ITERATION <= 2,
    to create two output rows for each input row.
    There is also a loop variable that uses a SetNull() in its
    derivation: If @ITERATION = 1 Then SetNull() Else "Z"
    In the Output link the loop variable are used in the derivation
    of one of the columns.
    If SetNull() is used, then the output column is set to null for
    both output rows.
    But, we expect that the first row to have null, and the second
    row to have "Z".
    

Local fix

  • If a dummy nullvalue is used, then we get the expected
    behaviour:
    Change the loop variable to use a dummy null value in its
    derivation: If @ITERATION = "NULLVALUE" Then SetNull() Else "Z"
    In the derivation of the Output column, check for the dummy null
    value: If @ITERATION = 2 Then "NULLVALUE" Else "Z
    

Problem summary

  • In a Transformer stage, there is a loop while @ITERATION <= 2,
    to create two output rows for each input row.
    There is also a loop variable that uses a SetNull() in its
    derivation: If @ITERATION = 1 Then SetNull() Else "Z"
    In the Output link the loop variable are used in the derivation
    of one of the columns.
    If SetNull() is used, then the output column is set to null for
    both output rows.
    But, we expect that the first row to have null, and the second
    row to have "Z".
    

Problem conclusion

Temporary fix

  • f a dummy nullvalue is used, then we get the expected
    behaviour:
    Change the loop variable to use a dummy null value in its
    derivation: If @ITERATION = "NULLVALUE" Then SetNull() Else "Z"
    In the derivation of the Output column, check for the dummy null
    value: If @ITERATION = 2 Then "NULLVALUE" Else "Z
    

Comments

APAR Information

  • APAR number

    JR41196

  • Reported component name

    WIS DATASTAGE

  • Reported component ID

    5724Q36DS

  • Reported release

    850

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-11-15

  • Closed date

    2012-06-14

  • Last modified date

    2012-06-14

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

  • R850 PSN

       UP

  • R870 PSN

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSVSEF","label":"IBM InfoSphere DataStage"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
14 June 2012