APAR status
Closed as documentation error.
Error description
There is a common misconception that the count returned from the following API find command: ./api.sh -u <admin> -p <pass> find --count "select * from ComputerSystem" should equal the sum of the results from the following two API find commands: ./api.sh -u <admin> -p <pass> find --count "select * from ComputerSystem where manufacturer == 'IBM'" and ./api.sh -u <admin> -p <pass> find --count "select * from ComputerSystem where manufacturer != 'IBM'" However, this is not an accurate assumption as a comparison of NULL values evaluates to 'unknown'. Thus, all records with NULL attribute values will be excluded from the result. Documentation for 'Model Query Language overview' should be enhanced with description and examples of queries that use not equal to operator: In queries that use not equal to operator ('!=', 'not-equals') like: select * from ComputerSystem where manufacturer != 'IBM' or select * from ComputerSystem where not(manufacturer == 'IBM') one may expect that the results will also contain ComputerSystems with manufacturer set to NULL. However, when NULL value is used in the comparison the result is evaluated to 'unknown', thus it is excluded from the result. The correct way to select all the ComputerSystems thathave manufacturer other than IBM is to use the following query: select * from ComputerSystem where manufacturer != 'IBM' or manufacturer is-null. Table 1 in document http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2. luw.sql.ref.doc/doc/r0000754.html contains information how search conditions are evaluated when there is 'unknown' value. Please also add an example of using the --count parameter with the API find as shown above.
Local fix
n/a
Problem summary
DOCUMENTATION FOR MQL QUERIES USING != (NOT EQUAL TO) OR NOT KEYWORD NEEDS TO BE ADDED.
Problem conclusion
Link with the changes: http://eden1.tivlab.austin.ibm.com:9997/help/topic/com.ibm.taddm .doc_721fp4/SDKDevGuide/c_cmdbsdk_mql_introducing.html
Temporary fix
Comments
APAR Information
APAR number
IV44537
Reported component name
APP DEPENDENCY
Reported component ID
5724N5500
Reported release
721
Status
CLOSED DOC
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2013-06-20
Closed date
2013-09-16
Last modified date
2013-09-16
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":"SSPLFC","label":"Tivoli Application Dependency Discovery Manager"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"721","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
16 September 2013