IBM Support

IC81994: THE DB2_ALL COMMAND MAY FAIL WITH A KSH SYNTAX ERROR WHEN SINGLE QUOTES APPEAR IN THE COMMAND.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Problem Description:
    In DPF environment the db2_all command may fail with a ksh
    syntax error when a single quote appears within single quotes.
    For example :
    
    db2_all "db2 'values(current DBPARTITIONNUM)' "
    ksh: 0403-057 Syntax error at line 1 : `(' is not expected.
    ksh: 0403-057 Syntax error at line 1 : `(' is not expected.
    ksh: 0403-057 Syntax error at line 1 : `(' is not expected.
    ksh: 0403-057 Syntax error at line 1 : `(' is not expected.
    ksh: 0403-057 Syntax error at line 1 : `(' is not expected.
    ksh: 0403-057 Syntax error at line 1 : `(' is not expected.
    

Local fix

  • Possible workarounds are :
    1. db2_all "db2 values\(current DBPARTITIONNUM\) "  or
    2. db2_all 'db2 "values(current DBPARTITIONNUM)" '
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * DPF customer using a single quote in db2_all command.        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Problem Description:                                         *
    * In DPF environment the db2_all command may fail with a ksh   *
    * syntax error when a single quote appears within single       *
    * quotes.                                                      *
    * For example :                                                *
    *                                                              *
    * db2_all "db2 'values(current DBPARTITIONNUM)' "              *
    * ksh: 0403-057 Syntax error at line 1 : `(' is not expected.  *
    * ksh: 0403-057 Syntax error at line 1 : `(' is not expected.  *
    * ksh: 0403-057 Syntax error at line 1 : `(' is not expected.  *
    * ksh: 0403-057 Syntax error at line 1 : `(' is not expected.  *
    * ksh: 0403-057 Syntax error at line 1 : `(' is not expected.  *
    * ksh: 0403-057 Syntax error at line 1 : `(' is not expected.  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 9.7 FP6.                                      *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in DB2 9.7 FP6.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC81994

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-03-13

  • Closed date

    2012-06-25

  • Last modified date

    2012-06-25

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

    IC75785

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

    IC84578

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
25 June 2012