IBM Support

PI52652: A SIMPLE WARNING FROM DB2 ABOUT A SEMI-COLON AT THE END OF THE SQL STATEMENT RESULTS IN A MAP FAILURE.

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Testing with a simple map doing a select from a table.
    
    When the JCL has an input override like this:
    
    -ID1 '-STMT SELECT * FROM TEST1'
    
    ...the map completes successfully.
    
    Hoeever, when it is changed to:
    
    -ID1 '-STMT SELECT * FROM TEST1;'    <--- (note the semi colon
                                                 at the end)
    
    ...then DB2 issues a warning, and the map fails.  Audit shows:
    
    <ExecutionSummary MapStatus="Error" mapreturn="75"
    ElapsedSec="-0.7993" BurstRestartCount="0">
       <Message>Adapter failed to get data on input</Message>
       <CommandLine>MAPTORUN -AE -WH -TIO -ID1 '-STMT SELECT * FROM
    TEST1;' -OF1 OUTPUT</CommandLine>
    
    <SourceReport   card="1"   adapter="DB"   bytes="0"
    adapterreturn="-1006">
       <Message>Failed to prepare the SQL statement</Message>
       <Settings>0006106D4EF0</Settings>
    </SourceReport>
    
    JOBOUT shows:
    
     Starting a database unload...
     Query      : SELECT * FROM TEST1;
     Query size : 20
     Context: Input Card, Transaction scope: Map
     On Failure: Rollback, On Success: Keep
     TRACE command specified, file: //DD:DBTRACE
     DBS_ExecuteStmtDirect: EXEC SQL PREPARE Q(0-7) FROM :sqlst
     SELECT * FROM TEST1;
     DSNT404I SQLCODE = 098, WARNING:  A DYNAMIC SQL STATEMENT ENDS
     WITH A
     SEMICOLON
     DSNT418I SQLSTATE   = 01568 SQLSTATE RETURN CODE
     DSNT415I SQLERRP    = DSNHTOKR SQL PROCEDURE DETECTING ERROR
     DSNT416I SQLERRD    = X'00000000'  X'00000000'  X'00002710'
                           X'42DB09EB'  X'00000013'  X'00000322'
    

Local fix

  • WTXCQ - WTX00047862
    PB / PB
    As a workaround, avoid SQL statements that produce warnings in
    DB2
    

Problem summary

  • Users Affected:
    WebSphere Transformation Extender customers who use DB2 adapter
    on z/OS
    
    Problem Description:
    A simple warning from DB2 about a semi-colon at the end of the
    SQL statement appears to be the cause of a map failure, when it
    should not fail.
    
    Platforms Affected:
    z/OS
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI52652

  • Reported component name

    WTX COMMAND SER

  • Reported component ID

    5655R9501

  • Reported release

    831

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-11-17

  • Closed date

    2015-12-16

  • Last modified date

    2016-07-05

Fix information

  • Fixed component name

    WTX COMMAND SER

  • Fixed component ID

    5655R9501

Applicable component levels

  • R831 PSY

       UP

  • R841 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSVSD8","label":"IBM Transformation Extender"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.3","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
05 July 2016