Mainview Middleware Administrator: Importing MQSC script files in MVMA fails with parsing error while trying to create MQ Objects

Version 1
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    MainView Middleware Administrator


    COMPONENT:

    MainView Middleware Administrator


    APPLIES TO:

    BMM-Admin TrueSight Middleware Administrator MainView Middleware Administrator



    PROBLEM:

    Users see parsing error while trying to import MQSC script files in MVMA/TSMA for MQ objects creation.
    Some errors are shown below:
     

    Failed to Modify queue manager '<QMGR_Name>' on connection '<WMQ_Connection_Name>': Decoding objects from MQSC-formatted string failed: Cannot convert into XML: Parsing MQSC failed - Possible invalid data: DEFINE CHL(<SOME.CHANNEL.NAME>) CHLTYPE(SDR) +
       
    Failed to Modify queue manager '<QMGR_Name>' on connection '<WMQ_Connection_Name>': Decoding objects from MQSC-formatted string failed: Cannot convert into XML: Parsing MQSC failed - Possible invalid data: DEFINE QL(<SOME.Q.NAME>) DESCR('Some Description')
      
      

     


    CAUSE:

    These problems are seen when the files are created manually and does not use absolute object type keywords and quotes for strings.


    SOLUTION:

    The solution to this problem is fairly simple.
    The users would need to fix the MQSC scripts by doing the following:

    1. Use the full object type keyword as opposed to their shorter names.
     Example: use CHANNEL instead of CHL or QLOCAL instead of QL in the DEFINE statement.

    Use: DEFINE CHANNEL(SOME.CHANNEL.NAME) CHLTYPE(SDR) ... or DEFINE QLOCAL(SOME.Q.NAME) ... or DEFINE QREMOTE(SOME.REMOTE.Q.DEFINITION) RNAME(... Do Not use: DEFINE CHL(SOME.CHANNEL.NAME) CHLTYPE(SDR) ... or  DEFINE QL(SOME.QUEUE.NAME) ... or DEFINE QR(SOME.REMOTE.Q.DEFINITION) RNAME(...
      

    2. Use quotes for the object names and other such string values in arguments. 
       Example: Use ('SOME.CHANNEL.NAME') instead of (SOME.CHANNEL.NAME) 
       
    DEFINE CHANNEL('SOME.CHANNEL.NAME') DESCR('Some Description') ... or DEFINE QLOCAL('SOME.Q.NAME') DESCR('Some Description') ... or DEFINE QREMOTE('SOME.REMOTE.Q.DEFINITION') DESCR('Some Description') ...
      
    Once the changes have been made, save the files and then import the MQSC files on your WMQ Connections in MVMA/TSMA. The files won't throw any parsing errors further. 
      

     


    Article Number:

    000186474


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles