Author Topic: Number of documents loaded in CMOD?  (Read 3334 times)

jose.arotinco

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Number of documents loaded in CMOD?
« on: May 24, 2011, 10:17:09 AM »

Hi all,

Is there any way of knowing how many there are documents loaded in CMOD of all the AG?  there may be a command or example that can give me

Thank you very much..

Regards;

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: Number of documents loaded in CMOD?
« Reply #1 on: May 24, 2011, 12:38:53 PM »
Hello Jose,

Well the most direct way would be to do a "SELECT COUNT(*) FROM AGTableSegment"

where AGTableSegment is the all the tablename of an Application Group.

exemple

SELECT COUNT(*) FROM ADA1

To find the active table segment:

SELECT AGID, TABLE_NAME FROM ARSSEG

or if you love better to see the actual name instead of the AGID:

SELECT DISTINCT A.NAME, B.TABLE_NAME FROM ARSAG AS A,  ARSSEG AS B WHERE A.AGID=B.AGID

I hope this helps.

Cheers,
Alessandro
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

jose.arotinco

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Re: Number of documents loaded in CMOD?
« Reply #2 on: May 24, 2011, 01:44:49 PM »
Thanks Alessandro! with the help of your example, I did the following query:

SELECT
DISTINCT A.NAME
B.TABLE_NAME,
SUM (B.INS_ROWS) AS INSERTED,
SUM (B.DEL_ROWS) AS DELETED
ARSAG FROM AS A AS B ARSSEG
WHERE A.AGID = B.AGID
GROUP BY A.NAME, B.TABLE_NAME
ORDER BY 3

Regards,