Purpose

This page will explain how to find the file types that do not contribute to LOC on the Dashboard. 

Details

There are a few files for example *.BMS, that will not be counted when calculating the LOC on the dashboard. 

To identify this, you can run the below query on your local schema - 

Query to identify the type of files
For CAST 8.3.36 and lower:

SELECT COUNT(k1.idkey)
FROM keys k1,
 keys k2
WHERE k1.idkey IN (SELECT ( object_id )
 FROM ctt_object_applications
 WHERE application_id  in(354,404,435)
 AND properties = 0)
 AND k1.idkey = k2.idkey
 AND k2.objtyp IN (SELECT DISTINCT t.idtyp
 FROM typ t,
 typcat tc
 WHERE t.idtyp = tc.idtyp
 AND tc.idcatparent IN (SELECT cat.idcat
 FROM cat
 WHERE
 catnam LIKE 'APM Inventory Files'))

For CAST 8.3.37 and higher:

SELECT COUNT(k1.idkey)
FROM keys k1,
 keys k2
WHERE k1.idkey IN (SELECT ( object_id )
 FROM ctt_object_applications
 WHERE application_id  in(354,404,435)
 AND properties & 255 = 0)
 AND k1.idkey = k2.idkey
 AND k2.objtyp IN (SELECT DISTINCT t.idtyp
 FROM typ t,
 typcat tc
 WHERE t.idtyp = tc.idtyp
 AND tc.idcatparent IN (SELECT cat.idcat
 FROM cat
 WHERE
 catnam LIKE 'APM Inventory Files'))

An example for a filetype that does not contribute to the LOC - *.BMS

If you have *.BMS files in your source code, you will see that they are not included in the file count on the Dashboard. 

This is because BMS (Basic mapping support) is an interface between CICS programs and terminal devices. This is not an implemented source code.

So, there is no functional reason to count the number of lines of code. Moreover, there are no quality rules for these files and objects.

There is more information for this here on what BMS  is. 

https://www.tutorialspoint.com/cics/cics_bms.htm

https://www.ibm.com/support/knowledgecenter/en/SSGMCP_4.2.0/com.ibm.cics.ts.applicationprogramming.doc/topics/dfhp3_intro_bms.html

Notes/comments


Related Pages