IBM Support

PM51701: Example code in the API reference results in an error

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as documentation error.

Error description

  • Example code in the ClearQuest API Command Reference help for
    the GetInstalledMasters method results in an error.
    
    The code example:
    
    set sessionObj = GetSession
    Dim dbSets, masterDBs
    set dbSets = sessionObj.GetInstalledMasters (dbSets, masterDBs)
    For Each db in dbSets
      ? ...
    Next
    
    results in the error: Object
    required:?sessionObj.GetInstalledMasters (...)?
    
    To get it working, change the 3rd line to:
    sessionObj.GetInstalledMasters dbSets, masterDBs
    

Local fix

Problem summary

  • Example code in the ClearQuest API Command Reference help of the
    GetInstalledMasters method results in an error.  Here is the
    corrected example; note that the parentheses have been removed
    in line 3:
    
    set sessionObj = GetSession
    Dim dbSets, masterDBs
    set dbSets = sessionObj.GetInstalledMasters dbSets, masterDBs
    For Each db in dbSets
      ? ...
    Next
    
    results in the error: Object
    required:`sessionObj.GetInstalledMasters (...)
    

Problem conclusion

  • In the ClearQuest API Command Reference help for the
    GetInstalledMasters method, fixed line 3 in the code example to
    remove the embedded parentheses.
    
    The fix will appear in the next release in which the ClearQuest
    API Command Reference help is updated.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM51701

  • Reported component name

    CLEARQUEST WIN

  • Reported component ID

    5724G3600

  • Reported release

    712

  • Status

    CLOSED DOC

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-11-07

  • Closed date

    2012-08-14

  • Last modified date

    2012-08-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

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
14 August 2012