TAA Tools
DLTGENLIB       DELETE GENERIC LIBRARY                 TAALIDD

The  Delete Generic  Library  command deletes  one  library or  generic
libraries.   You must have *ALLOBJ special  authority to use DLTGENLIB.
You  cannot  delete  a  library  beginning with  the  letter  Q  or the
letters TAA.

A typical command would be:

             DLTGENLIB    LIB(xxx*)

All libraries with the generic name would be deleted.

An option exists to allow the  deletion only if the create date  is *LE
a specified date or a number of days.

DLTGENLIB escape messages you can monitor for
---------------------------------------------

      TAA9891    One or more libraries could not be deleted

Escape messages from based on functions will be re-sent.

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

   LIB           The library or generic library name to be deleted.

   CRTDATE       The  create date  to  compare to  against the  library
                 created date.

                 *NONE  is  the  default  meaning  that  library create
                 dates are not considered.

                 A date may be entered  (job format) to compare to  the
                 date the library  was created.  If  the specified date
                 is *GE  to the library create  date, the library would
                 be deleted.   The  library must  also be  selected  by
                 the LIB parameter.

                 For example,  if the  library was  created on July  1,
                 2013  and you  specified a  date of  Aug 1,  2013, the
                 library would be deleted.

   DLTDAYS       The  number  of days  to  compare against  the library
                 created  date.   Either  CRTDATE  or  DLTDAYS  may  be
                 specified, but not both.

                 The  number of  days  may  be entered  in  a range  of
                 -9998  to  9999.    The  date  to  compare against  is
                 determined by converting the number  of days.  If  the
                 specified  date is  *GE to  the  library create  date,
                 the library would be deleted.

                 For  example, if the current  date is Dec  5, 2013 and
                 DAYS(10) is  entered,  the comparison  date  would  be
                 Dec 15, 2013.   If the library was created  on Nov 20,
                 2013, the library would be deleted.

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

You must have *ALLOBJ special authority.

You  cannot  delete  a library  beginning  with  the  letter  Q or  the
letters TAA.

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

The following TAA Tools must be on your system:

     CHKALLOBJ       Check *ALLOBJ special authority
     EDTVAR          Edit variable
     SNDCOMPMSG      Send completion message
     SNDESCINF       Send escape information
     SNDESCMSG       Send escape message

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

None, the tool is ready to use.

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

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

   DLTGENLIB     *CMD                   TAALIDD       QATTCMD
   TAALIDDC      *PGM       CLP         TAALIDDC      QATTCL
					

Added to TAA Productivity tools February 1, 2005


Home Page Up to Top