Hola,

Si tienes activado el inventario de disco del sistema (GO DISKTASKS) puedes
ejecutar esta sentencia SQL, en la que omito los objetos que no estan en una
biblioteca (registros de control de la aplicacion o objectos en el IFS), asi
como receptores de diario y objectos mayores a 1Gb, ordenado de mayor a
menor:

SELECT DIOBSZ, DIOBLI, DIOBNM, DIOBTP, DIOBAT, DIOBTX, DICDAT,
DIOBUS, DIUDAT, DISTIN, DIOBOW FROM QUSRSYS/QAEZDISK WHERE
DIOBLI <> ' ' AND DIOBSZ >= 1000000000 AND DIOBTP <> 'JRNRCV' ORDER
BY DIOBSZ DESC

Saludos

Martí Riera


2010/9/24 Carlos A Buitrago <[email protected]>

>
> Hola Marti
>
> Tengo una curiosidad: como saber cuales son los N objetos mas grandes en el
> AS400 bajo una instruccion en SQL ¡¡¡
>
> de antemano mil gracias
>
>
> * *
> *Saludos,*
>
> *Carlos Alberto Buitrago Salazar** *
> Analista de sistemas
> *C.I Banacol S.A*
> Calle 26sur 48 12 Envigado – Colombia S. A
> (:*(574)339 62 54 *
> (:*(Cel)320 680 0072 *
> y:*[email protected]* <[email protected]>
> * *
> <[email protected]>
>
> La información contenida en este E-mail es confidencial y sólo puede ser 
> utilizada por el individuo o la compañía a la cual está dirigido. Cualquier 
> retención, difusión, distribución o copia de este mensaje es prohibida y 
> sancionada por la ley. Si por error recibe copia de este mensaje favor 
> reenviar y borrar el mensaje recibido inmediatamente.%CRLF%%CRLF%The 
> information transmitted is intended only for the person or entity to which it 
> is addressed and may contain confidential and/or privileged material. Any 
> review, retransmission, dissemination or other use of, or taking of any 
> action in reliance upon this information by persons or entities other than 
> the intended recipient is prohibited. If you receive this e-mail by error, 
> please resend the message and delete the material from any computer.
>
>

<<image/jpeg>>

____________________________________________________
Únete a Recursos AS400, nuestra Comunidad ( http://bit.ly/db68dd )
Forum.Help400 © Publicaciones Help400, S.L.

Responder a