Differences between summary and detail filters

Technote (troubleshooting)

Problem(Abstract)
What are the differences between a summary filter and a detail filter?
Resolving the problem
Summary and detail filters both sets of criteria you apply to a report to change the focus of the report. You can use a filter to emphasize information that is important to you by filtering out what is unnecessary.

The differences between summary and details filters are as follows:

When you use a detail filter to filter a report only on detail data items, none of the data items in a detail filter are summary data items. Examples of detail data items are product, order number, and customer name. You can filter detail data items that you select from a query or a catalog. A detail filter applies one or more specified conditions to each row of data. If the conditions are true for a row, the row is retrieved and appears in the report; if the conditions are not true, the row is not retrieved and does not appear in the report.

A summary filter is used to filter summary data items in a report. Before you create a summary filter, you must calculate the summary data items that you want to use in the filter. Summary data items that you include in the filter are calculated before the filter is applied while summary data
items that aren’t in the filter are calculated after the summary filter is applied. You can filter summary data items that you select from a report query or the catalog.
Historical Number
71706

 

Fuente: http://www-01.ibm.com/support/docview.wss?uid=swg21353558

SYSIBM.SYSINDEXES table

http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=%2Fcom.ibm.db2.doc.sqlref%2Fzindxs.htm

SYSIBM.SYSINDEXES table

Contains one row for every index.

Column name Data type Description Use
|NAME
VARCHAR(128)
NOT NULL
Name of the index. G
|CREATOR
VARCHAR(128)
NOT NULL
Authorization ID of the owner of the index. G
|TBNAME
VARCHAR(128)
NOT NULL
Name of the table on which the index is defined. G
|TBCREATOR
VARCHAR(128)
NOT NULL
Authorization ID of the owner of the table. G
UNIQUERULE
CHAR(1)
NOT NULL
Whether the index is unique:

D
No (duplicates are allowed)
U
Yes
P
Yes, and it is a primary index (As in prior releases of DB2, a value of P is used for primary keys that are used to enforce a referential constraint.)
C
Yes, and it is an index used to enforce UNIQUE constraint
N
Yes, and it is defined with UNIQUE WHERE NOT NULL
R
Yes, and it is an index used to enforce the uniqueness of a non-primary parent key
G
Yes, and it is an index used to enforce the uniqueness of values in a column defined as ROWID GENERATED BY DEFAULT.
G
COLCOUNT
SMALLINT
NOT NULL
The number of columns in the key. G
CLUSTERING
CHAR(1)
NOT NULL
Whether CLUSTER was specified for the index:

N
No
Y
Yes
G
CLUSTERED
CHAR(1)
NOT NULL
Whether the table is actually clustered by the index:

N
A significant number of rows are not in clustering order, or statistics have not been gathered.
Y
Most of the rows are in clustering order.
blank
Not applicable.

This is an updatable column that can also be changed by the RUNSTATS utility.

G
DBID
SMALLINT
NOT NULL
Internal identifier of the database. S
OBID
SMALLINT
NOT NULL
Internal identifier of the index fan set descriptor. S
ISOBID
SMALLINT
NOT NULL
Internal identifier of the index page set descriptor. S
|DBNAME
VARCHAR(24)
NOT NULL
Name of the database that contains the index. G
|INDEXSPACE
VARCHAR(24)
NOT NULL
Name of the index space. G
INTEGER
NOT NULL
Not used N
 
INTEGER
NOT NULL
Not used N
NLEAF
INTEGER
NOT NULL
Number of active leaf pages in the index. The value is -1 if statistics have not been gathered. This is an updatable column. S
NLEVELS
SMALLINT
NOT NULL
Number of levels in the index tree. If the index is partitioned, it is the maximum of the number of levels in the index tree for all the partitions. The value is -1 if statistics have not been gathered. This is an updatable column. S
BPOOL
CHAR(8)
NOT NULL
Name of the buffer pool used for the index. G
PGSIZE
SMALLINT
NOT NULL
Size, in bytes, of the leaf pages in the index: 256, 512, 1024, 2048, or 4096 G
ERASERULE
CHAR(1)
NOT NULL
Whether the data sets are erased when dropped. The value is meaningless if the index is partitioned:

N
No
Y
Yes
G
 
VARCHAR(24)
NOT NULL
Not used N
CLOSERULE
CHAR(1)
NOT NULL
Whether the data sets are candidates for closure when the limit on the number of open data sets is reached:

N
No
Y
Yes
G
SPACE
INTEGER
NOT NULL
Number of kilobytes of DASD storage allocated to the index, as determined by the last execution of the STOSPACE utility. The value is 0 if the index is not related to a storage group, or if STOSPACE has not been run. If the index space is partitioned, the value is the total kilobytes of DASD storage allocated to all partitions that are defined in a storage group. G
IBMREQD
CHAR(1)
NOT NULL
A value of Y indicates that the row came from the basic machine-readable material (MRM) tape. For all other values, see Release dependency indicators. G
CLUSTERRATIO
SMALLINT
NOT NULL WITH
DEFAULT
Percentage of rows that are in clustering order. For a partitioning index, it is the weighted average of all index partitions in terms of the number of rows in the partition. The value is 0 if statistics have not been gathered. The value is -2 if the index is for an auxiliary table. This is an updatable column. S
|CREATEDBY
VARCHAR(128)
NOT NULL WITH
DEFAULT
Primary authorization ID of the user who created the index. G
SMALLINT
NOT NULL
Internal use only I
 
SMALLINT
NOT NULL
Not used N
STATSTIME
TIMESTAMP
NOT NULL WITH
DEFAULT
If RUNSTATS updated the statistics, the date and time when the last invocation of RUNSTATS updated the statistics. The default value is ‘0001-01-01.00.00.00.000000’. This is an updatable column. G
INDEXTYPE
CHAR(1)
NOT NULL WITH
DEFAULT
The index type:

2
Type 2 index
blank
Type 1 index
|D
|Data-partitioned secondary index
#P
#An index that is both partitioned and is a Partitioning index#(index that is on a table that uses table-controlled partitioning).
G
FIRSTKEYCARDF
FLOAT
NOT NULL WITH
DEFAULT -1
Number of distinct values of the first key column. This number is an estimate if updated while collecting statistics on a single partition. The value is -1 if statistics have not been gathered. This is an updatable column. S
FULLKEYCARDF
FLOAT
NOT NULL WITH
DEFAULT -1
Number of distinct values of the key. The value is -1 if statistics have not been gathered. This is an updatable column. S
CREATEDTS
TIMESTAMP
NOT NULL WITH
DEFAULT
Time when the CREATE statement was executed for the index. If the index was created in a DB2 release prior to Version 5, the value is ‘0001-01-01.00.00.00.000000’. G
ALTEREDTS
TIMESTAMP
NOT NULL WITH
DEFAULT
Time when the most recent ALTER INDEX statement was executed for the index. If no ALTER INDEX statement has been applied, ALTEREDTS has the value of CREATEDTS. If the index was created in a DB2 release prior to Version 5, the value is ‘0001-01-01.00.00.00.000000’. G
PIECESIZE
INTEGER
NOT NULL
WITH DEFAULT
Maximum size of a data set in kilobytes for secondary indexes.A value of zero (0) indicates that the index is a partitioning index or that the index was created in a DB2 release prior to Version 5. G
COPY
CHAR(1)
NOT NULL WITH
DEFAULT ‘N’
Whether COPY YES was specified for the index, which indicates if the index can be copied and if SYSIBM.SYSLGRNX recording is enabled for the index.

N
No
Y
Yes
G
COPYLRSN
CHAR(6)
NOT NULL WITH
DEFAULT
X’000000000000′
FOR BIT DATA
The value can be either an RBA or LRSN. (LRSN is only for data sharing.) If the index is currently defined as COPY YES, the value is the RBA or LRSN when the index was created with COPY YES or altered to COPY YES, not the current RBA or LRSN. If the index is currently defined as COPY NO, the value is set to X’000000000000′ if the index was created with COPY NO; otherwise, if the index was altered to COPY NO, the value in COPYLRSN is not changed when the index is altered to COPY NO. G
CLUSTERRATIOF
FLOAT
NOT NULL WITH
DEFAULT
When multiplied by 100, the value of the column is the percentage of rows that are in clustering order. For example, a value of .9125 indicates 91.25%. For a partitioning index, it is the weighted average of all index partitions in terms of the number of rows in the partition. The value is 0 if statistics have not been gathered. The value is -2 if the index is for an auxiliary table. This is an updatable column. G
SPACEF
FLOAT(8)
NOT NULL WITH
DEFAULT -1
Kilobytes of DASD storage. The value is -1 if statistics have not been gathered. This is an updatable column. G
|REMARKS
VARCHAR(762)
NOT NULL WITH
DEFAULT
A character field string provided by the user with the COMMENT statement. G
|PADDED ||

CHAR(1)
|NOT NULL WITH
|DEFAULT
|
|Indicates whether keys within the index are padded |for varying-length column data:|

|

Y

|

The index contains varying-length character or graphic data |and is PADDED (the varying-length columns are padded to their maximum |length).|

|

N

|

The index contains varying-length character or graphic data |and is NOT PADDED (the varying-length columns are not padded to their |maximum length). Index-only access to all column data is possible.|

|

blank

|

The index does not contain varying-length character or graphic|data. The value is blank for indexes that have been created or altered |prior to Version 8.|

|

|G
|VERSION ||

SMALLINT
|NOT NULL WITH
|DEFAULT
|
|The version of the data row format for this index. |A value of zero indicates that a version-creating alter has never |occurred against this index. |G
|OLDEST_VERSION ||

SMALLINT
|NOT NULL WITH
|DEFAULT
|
|The version number describing the oldest format |of data in the index space and any image copies of the index. |G
|CURRENT_VERSION ||

SMALLINT
|NOT NULL WITH
|DEFAULT
|
|The version number describing the newest format |of data in the index space. A zero indicates that the index space |has never had versioning. After the version number reaches the maximum |value, the number will wrap back to one. |G
|RELCREATED ||

CHAR(1)
|NOT NULL WITH
|DEFAULT
|
|Release of DB2 that was used to create the object, |blank for indexes created before Version 8. For all other values, |see Release dependency indicators. |G
|AVGKEYLEN ||

INTEGER
|NOT NULL WITH
|DEFAULT -1
|
|Average length of keys within the index. The value |is -1 if statistics have not been gathered. |G

Test Switches

One of the fundamental elements of programming is the ability to make comparisons: you test for certain conditions to be able to make decisions. You can use the test command to evaluate many items, such as variables, strings, and numbers. I keep the information in this appendix close at hand since I haven’t memorized all of the parameters. I often use these switches for checking files and strings, and this is a simple quick reference for easy lookup.

Note that in Table A-1 the “test” column refers to the system command test such as /usr/ bin/test. The “bash” and “ksh” columns refer to the built-in test command for those shell

 

 

Active Desktop Recovery Regedit

Update,

have now sorted a fix for this problem

run regedit

find this entry – HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\SafeMode\Components

change the key value – DeskHtmlVersion REG_DWORD 0x00000110(272) to decimal zero

Close regedit log off and log back on.

This has worked for all our XP clients

DB2 SQL error: SQLCODE: -668, SQLSTATE: 57016, SQLERRMC: 3;

Este error se debe a que la tabla se vuelve inaccesible ya que quedan pendientes procesos por ejecutarse o terminaron incorrectamente y la tabla queda bloqueada. El error enviado es el siguiente:

An error occurred while performing the operation:
DB2 SQL error: SQLCODE: -668, SQLSTATE: 57016, SQLERRMC: 3;

La referencia que se tiene desde las paginas de ayuda de IBM para DB2 menciona lo siguiente:

SQLSTATE SIGNIFICADO
57016 No se puede acceder a la tabla porque no está activa.

Para desbloquearla simplemente enviamos un terminate a la tabla:

Primero nos conectamos mediante linea de comandos al servidor y establecemos una conexion con la base de datos:

$ db2 connect to DBNAME USER DBUSER USING PASSWORD

Database Connection Information

Database server = DB2/AIX64 8.2.7
SQL authorization ID = USER_NAME
Local database alias = DATABASE

$ db2
(c) Copyright IBM Corporation 1993,2002
Command Line Processor for DB2 SDK 8.2.7

You can issue database manager commands and SQL statements from the command
prompt. For example:
db2 => connect to sample
db2 => bind sample.bnd

For general help, type: ?.
For command help, type: ? command, where command can be
the first few keywords of a database manager command. For example:
? CATALOG DATABASE for help on the CATALOG DATABASE command
? CATALOG for help on all of the CATALOG commands.

To exit db2 interactive mode, type QUIT at the command prompt. Outside
interactive mode, all commands must be prefixed with ‘db2’.
To list the current command option settings, type LIST COMMAND OPTIONS.

For more detailed help, refer to the Online Reference Manual.

db2 => load from /dev/null of del terminate into SCHEMANAME.TABLENAME
SQL3501W The table space(s) in which the table resides will not be placed in
backup pending state since forward recovery is disabled for the database.

SQL3110N The utility has completed processing. «0» rows were read from the
input file.

Number of rows read = 0
Number of rows skipped = 0
Number of rows loaded = 0
Number of rows rejected = 0
Number of rows deleted = 0
Number of rows committed = 0

y listo, la tabla esta desbloqueada.

Elecciones 2012 para presidente en México

Hoy en día las redes sociales hacen que nos enteremos de cuantas cosas suceden a nuestro alrededor en un lapso de tiempo relativamente corto, contrario a lo que pasaba años atrás, cuando nos era casi imposible tener información de primera mano casi al instante. Este día he visto el boom de información acerca de un suceso relevante que es la elección de presidente en México, muchisima gente expresandose… quisiera decir que a favor y en contra, pero en el 99% de los casos en contra del resultado obtenido hasta ahora, el resultado que el maximo organismo encargado del rubro ha dado, me refiero al Instituto Federal Electoral (IFE).

Y en esta elección hay puntos interesantes a tocar, puntos que no podemos pasar desapercibidos como parte del proceso y como primeros afectados por el resultado de esta elección.

Para empezar debo decir que vivimos en un país de apariencias, es decir lo que cualquier cristiano en su sano juicio diría que es una inundación, aquí es un simple encharcamiento, lo que cualquiera diría que es una zanja descomunal en una avenida, aquí es simplemente un bache, de igual forma debo decir que no cualquier ciudadano es candidato a la presidencia o no todos podemos aspirar a un cargo tan importante, aun y cuando nuestro curriculum nos avale como personas capacitadas por el simple hecho de que no somos políticos y no estamos afiliados a un partido o corriente partidista.

Pero vamos mas allá de las simples apariencias, en México es un hecho que los ciudadanos no tenemos un organismo o un mecanismo real mediante el cual externar nuestras inconformidades, o mediante el cual pudiéramos calificar y juzgar la labor de nuestros gobernantes y en general de nuestra clase política, es decir en cualquier otro trabajo existe el riesgo de ser despedido por cometer un error excepto en la política mexicana. Peor aún cuando una inconformidad es presentada como tal y se exhibe a algún individuo en por mal ejercicio del cargo publico, corres el riesgo de represalias y no solo contra tu persona, sino contra tu familia o seres queridos. Y es en este punto cuando te preguntas, en donde esta la libertad que tanto se pregona, en donde esta toda aquella palabrería de que tenemos el poder de exigir como pueblo?

En segunda y esto es algo lamentable y triste de decir, somos un pueblo conformista, tengo que decirlo así como es, por muchos lados escucho decir, que para que hacemos corajes por que gano tal o cual, o que por que no simplemente aceptamos la victoria de cierto candidato y nos dedicamos a trabajar para sacar a México adelante, concuerdo con esto ultimo, en lo que no estoy de acuerdo es en trabajar para un gobierno que me roba el dinero, para un gobierno en el cual la clase política de por si protegida, vive como sanguijuelas de los impuestos que pagamos, regalándose sueldos exorbitantes que no merecen, por que veo como una persona que realmente se parte el lomo en el campo o en nuestros esteros solo gana para sobrevivir mientras unos pocos se llevan la riqueza que esas personas generan para el país.

Es mentira que en México tenemos un gobierno incluyente, solo están incluidos en el, los mismos políticos, sus familias y algunos allegados por no llamarlos lamebotas. Creo que en México tenemos un país civilizado mas no estúpido, bueno entre comillas. En esta elección se han dado casos  que a todas luces hacen pensar que hay favoritismos y por otro lado situaciones que hacen pensar que un fraude se esta llevando a cabo. Creo que en nuestro país en el cual se pregona democracia, no hay peor apariencia que esa, ya que muchos de los votos «democraticos» fueron condicionados mucho antes de la elección con regalos tanto en moneda como en especie, y bueno aprovechando que mas de la mitad de la población vive necesitada de este tipo de «ayudas» pues es ahí donde nos pegan una friega a todos.

Creo que lo mas importante hoy y en adelante, es tener una mentalidad abierta y participativa, tener union y levantar la voz cuando algo de lo que la clase politica decide, nos impacta directa o indirectamente en nuestros bolsillos, no importa quien este arriba mientras nosotros como pueblo permanezcamos pasivos ante el enriquecimiento ilicito, ante situaciones de robo a la patria, y que veamos como cinicamente esos ladrones de cuello blanco vuelven a este hermoso pais a mofarse en nuestras propias caras, mientras nosotros permanecemos dormidos…

Exijamos nuestra libertad y el respeto a todos nuestros derechos, exijamos resultados y paguemos solo por aquellos que los dan y lo que no, hay que removerlos de los cargos públicos, por que solo representan un gasto inutil y dinero tirado a la basura, exijamos educación de calidad a todos los niveles de la sociedad para que no veamos mas fraudes en elecciones y que cualquier persona sepa como y a donde dirigirse cuando algo esta siendo ejecutado con malicia… EXIJAMOS LO QUE TODOS QUEREMOS, UN GOBIERNO QUE VAYA ACORDE A LO QUE COBRAN ES DECIR UN GOBIERNO DE PRIMER MUNDO Y NO LA MIERDA QUE ACTUALMENTE TENEMOS EN NUESTRO MÉXICO.

Reflexión sobre las elecciones 2012 México

Esta vez hago un pequeño paréntesis a los temas de tecnología, para comentar un poco de esta elección y de lo que ha pasado durante todos estos meses de campaña incesante y bombardeo en todos los medios habidos y por haber.

Si bien es cierto que uno debe de hacer un juicio por uno mismo, dependemos en gran medida de la información que tenemos a nuestro alcance, si por ejemplo estamos en un edificio y surge alguna contingencia, decidimos salir pero no por cualquier lado, buscamos a nuestro alrededor alguna señal que nos indique el lugar que debemos seguir para estar a salvo, pero que tal si esa señal fue colocada ahi de forma incorrecta bueno entonces seguiremos y probablemente nos daremos cuenta del error hasta que ya sea demasiado tarde.

Esta elección en México fue decepcionante, la impotencia de acudir a las casillas y no poder elegir la mejor elección sino la menos peor, es algo frustrante hasta cierto punto. Pero de entre todo el montón elegir entre aquellos que han demostrado ser tontos y solo decir disparates es lo que no deja de sorprenderme.

Hasta el momento he escuchado por las redes sociales de mayor convocatoria como son Facebook y Twitter mucho descontento al respecto del resultado preeliminar de esta elección. Muchos que denuncian fraudes y que no aceptan el resultado que hasta el momento se esta dando. Si bien es cierto que a nadie le gusta la derrota, hay que aceptarla cuando esta llega a nosotros, es parte de la vida. Algunos otros comentarios son mas optimistas, mencionando que hay que aprender de los errores del pasado para poder tener un mejor futuro.

Estoy orgulloso de ser Méxicano y por tal motivo es que me preocupa lo que sucede en el país, no puedo juzgar a una persona por el pasado de su partido, de igual forma todos los candidatos tienen cola que les pisen, aun cuando quieran ocultarla, lo mas triste es como somos cómplices de estos hechos. Ya adentrando un poco mas el comentario puedo decir que el PRI no me ha dado razones reales para decir que ha cambiado, que se ha renovado y que pretende hacer un gobierno diferente donde lo primordial sea la gente. No lo ha hecho durante toda su historia y en 12 años que fueron desplazados del poder, no lo hicieron tampoco, solo mantuvieron una estrategia inteligente de esperar los tropiezos del partido en el poder para asestar golpes mortales con spots bastante elaborados, que convencieron a muchas de las personas menos informadas de este país. Su candidato Peña Nieto tampoco daba certidumbre de ser una persona preparada, con sendos resbalones en la Feria Internacional del Libro y su grandioso discurso en ingles, su encierro en la Ibero o con los vínculos directos señalados por muchos con el Ex-Presidente Salinas de Gortari y las múltiples denuncias de atropellos hacia personas… pues bueno.

Pero vamos, Lopez Obrador, tampoco lucia como una opción que me convenciera del todo, es cierto que es un candidato mas del populacho, pero hasta ahí, siento que no tenia argumentos suficientes para hacer las cosas diferentes, en sus intervenciones en debates y mitings menciono cosas como «serenar al país» ó esa de «Si repartiéramos … nos tocarían de 11 mil mensuales». Lo único que me quedo claro es que se quería rodear de personas que si tenían la suficiente capacidad y moralidad para hacer las cosas bien, pero el como presidente, pues me quedaban mis dudas.

Y que decir de Josefina, una propuesta cien por ciento populachera y sexista, en un partido en decadencia, abogando por la modernidad de la mujer como bandera de su campaña… la primera mujer Presidenta de México. Lastima que siempre que hablaba de temas de peso, tenia que salir a retractarse por lo dicho. Sus spots bastante bien elaborados tengo que decir, no tuvieron la penetración ni el impacto que se esperaba. Si bien es cierto que impulso muchos programas de becas para educación pues tristemente Josefina no fue suficiente, estamos en un país donde en lugar de becas necesitamos una educación publica de calidad con instituciones suficientes para cubrir la demanda que la juventud tiene, apenas puedo creer que existan cosas como en EXANI o el concurso de admisión a instituciones de educación publica y mas aun que muchos alumnos se queden sin la oportunidad de seguir estudiando o que pierdan un año por que no hay un lugar disponible en las instituciones de educación publica.

Y Quadri? uf ese metio la pata monumentalmente ante el hecho de querer hacer un tratado de libre comercio con China, o sea, que pretende con algo asi? acabar con el país? si bien es cierto que sus frases eran frases elaboradas, como esa de reformas estructurales, bla bla bla, tambien cabe decir que no todo lo que dijo era basura y cabe mencionar que trato de comprometer a los candidatos para hacer cosas que realmente se requieren en el país, lamentablemente ninguno de los otros 3 lo pelaron.

Y venos aqui esperando el resultado de las elecciones, aunque de nada sirve quejarse aisladamente por que este es un pais en donde todo se resuelve en los altos mandos, aun y cuando digan que tu tienes el poder de eleccion no puedes hacer nada ante el hecho de saber que todos son unas ratas inmundas y que tienen al pais sumido en la pobreza y la ignorancia. Nada puedes hacer ante el hecho de que permiten la entrada a este país a figuras que deberían estar en la cárcel y que por mucho tiempo estuvieron exiliadas en otros países…

Solo espero con optimismo, que esta decisión que tomaron los mexicanos haya sido la mejor y que el futuro presidente cumpla con lo prometido… si no, que Dios nos agarre confesados.