TAA Tools
PRTCRTDAT       PRINT CREATE DATE                      TAAOBJJ

The Print  Create Date  command prints  a listing of  the objects  that
were created  by the create date.   It is useful  for understanding how
your system was put together.

A typical command is entered as:

        PRTCRTDAT     LIB(xxxxx) SEQUENCE(*YES)

This  prints  a listing  of  all objects  in  the specified  library in
create date sequence (oldest first).   You can also request  only those
objects that were created before or after a number of days.

Various options exist for sorting and selection.

If  a  data  base  file  is  shown with  TYPE(*OBJ),  the  create  date
reflects  the object level  information.  Member  level information can
be printed by using TYPE(*MBR).

The usage count is also shown.   The usage count can be misleading  for
multi-member files  such as  source files.   The  system does not  keep
track at  an object level, but  rather at a member  level.  When object
level information is shown,  the usage count is  the sum of the  member
usage  counts.     To  see   the  member  level   information,  specify
TYPE(*MBR).    PRTCRTDAT  is  a  slow  running command  and  should  be
submitted to batch.

There  are  companion tools  PRTUSECNT,  PRTLSTUSE, and  PRTLSTCHG that
allow operations  by the  usage count value,  last used  date and  last
change date.

PRTCRTDAT Command parameters                          *CMD
----------------------------

   LIB           A  single  library may  be  specified  or the  special
                 values *LIBL, *USRLIBL, *CURLIB or *ALLUSR.

   OMITDAYS      The  number  of days  you  want to  omit  for recently
                 created objects.  This  will omit all objects  created
                 after the  number of days  specified.  The  default is
                 *NONE.    If  you  specify  100  and  the  object  was
                 created last week, it will  not appear in the  report.
                 This is  the  'omit after'  date.   It  allows you  to
                 avoid  seeing  any  objects  that have  recently  been
                 created.

   OMITDAYSB     The  number  of  days  you want  to  omit  for objects
                 created in  the  past.   This  will omit  all  objects
                 created  before the  number  of days  specified.   The
                 default  is *NONE.  If you  specify 100 and the object
                 was created several years ago,  it will not appear  in
                 the  report.   This is  the  'omit before'  date.   It
                 allows  you  to  avoid seeing  any  objects  that were
                 created prior to a number of days.

                 Both OMITDAYS  and OMITDAYSB  cannot be  specified  on
                 the same use of PRTCRTDAT.

   TYPE          The type of  report *OBJ or  *MBR.  TYPE(*OBJ)  is the
                 default  and shows each  object and it's  create date.
                 Members   are  not  considered.     See  the  previous
                 comments on the use  of this parameter with  data base
                 files.

                 TYPE(*MBR)  shows   only  members.     See   also  the
                 SRCFILES  parameter to  determine  if you  want source
                 files or data files included.

   USER          Whether  the  current  owner  of  the  object  or  the
                 create  user (Creator)  will  appear  on the  listing.
                 This   parameter   is   ignored   if   TYPE(*MBR)   is
                 specified.

                 *OWNER is the  default to display  the current  owner.

                 *CREATOR may  be specified  to display  the user  that
                 originally created the object.

   SEQUENCE      A *YES/*NO  value with *NO as the  default which means
                 the  objects will  appear name  within type.   If *YES
                 is  specified,  the  objects  will  appear   with  the
                 oldest create date first.

   SRCFILES      Whether source  files should be included or  not.  The
                 default  is *INCLUDE.   The other values  of *OMIT and
                 *ONLY can only be  specified when TYPE(*MBR) is  used.

                 *OMIT should  be specified  when you  want to  include
                 data files and exclude source files.

                 *ONLY  should be  specified when  you want  to include
                 source files and exclude data files.

   PRTFILE       The qualified name  of the  printer file  to be  used.
                 The default  is  QPRINT in  *LIBL.   The spooled  file
                 name is the name of the LIB parameter.

Restrictions
------------

None.

Prerequisites
-------------

The following TAA Tools must be on your system:

       ADDDAT         Add date
       RTVSYSVAL3     Retrieve system value 3
       SNDCOMPMSG     Send completion message
       SNDESCMSG      Send escape message
       SNDSTSMSG      Send status message

Implementation
--------------

None, the tool is ready to use.

Objects used by the tool
------------------------

   Object        Type        Attribute      Src member    Src file
   ------        ----        ---------      ----------    ----------

   PRTCRTDAT     *CMD                       TAAOBJJ       QATTCMD
   TAAOBJJC      *PGM           CLP         TAAOBJJC      QATTCL
   TAAOBJJR      *PGM           RPG         TAAOBJJR      QATTRPG
					

Added to TAA Productivity tools April 1, 1995


Home Page Up to Top