IBM Support

IT21563: amqspub and amqssub sample client programs do not use MQSAMP_USER_ID to send userID and password

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

  • When running amqspub/amqssub sample programs with the
    environment variable MQSAMP_USER_ID set, the sample programs do
    not prompt for the password.
    
    This also applies to the amqspubc and amqssubc client variants
    of the sample applications.
    
    amqspubc/amqssubc client application gets an error:    MQCONN
    ended with reason code 2538 i.e. MQRC_HOST_NOT_AVAILABLE
    2538 = MQRC_HOST_NOT_AVAILABLE
    
    And the Queue Manager  error log shows:
    AMQ5540: Application 'amqssubc.exe' did not supply a user ID
       and password
    AMQ9557: Queue Manager User ID initialisation failed for
    'XXXXX'.
     (where the UserId noted is the user that ran the application
      and NOT the one set in MQSAMP_USER_ID)
    
    Note: For the MQ sample programs, MQSAMP_USER_ID can be set to
    the user ID to be used for connection authentication. When this
    is set, the program will prompt for a password to accompany
    that user ID.
    see amqsputc/getc example at:
    https://www.ibm.com/support/knowledgecenter/SSFKSJ_9.0.0/com.ibm
    .mq.dev.doc/q024270_.htm
    

Local fix

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    Users running the sample MQ applications amqspub and amqssub who
    wish to use MQSAMP_USER_ID to configure the userid, and prompt
    for a password, to connect to the Queue Manager.
    
    This also affects users running the amqspubc and amqssubc client
    variants, and users reviewing the supplied source code files,
    amqspuba.c and amqssuba.c
    
    
    Platforms affected:
    MultiPlatform
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    Logic to retrieve the environment variable MQSAMP_USER_ID
    contents and prompt for a password was not present in the
    amqspuba.c and amqssuba.c sample application code.
    

Problem conclusion

  • The amqspuba.c and amqssuba.c sample applications have been
    modified to retrieve the environment variable MQSAMP_USER_ID
    contents and prompt for a password.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v9.0 CD    9.0.4
    v9.0 LTS   9.0.0.3
    
    The latest available maintenance can be obtained from
    'WebSphere MQ Recommended Fixes'
    http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006037
    
    If the maintenance level is not yet available information on
    its planned availability can be found in 'WebSphere MQ
    Planned Maintenance Release Dates'
    http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006309
    ---------------------------------------------------------------
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT21563

  • Reported component name

    IBM MQ BASE M/P

  • Reported component ID

    5724H7261

  • Reported release

    903

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-07-24

  • Closed date

    2017-07-31

  • Last modified date

    2017-07-31

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

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

Fix information

  • Fixed component name

    IBM MQ BASE M/P

  • Fixed component ID

    5724H7261

Applicable component levels

  • R903 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"903","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
31 July 2017