TAA Tools
DLTFSRC         DELETE FILE SOURCE                     TAAFILA

The  Delete File  Source command  allows  you in  a  single command  to
delete both  the file and  the source member  used to create  the file.
This is useful for cleanup purposes.

A typical command would be:

       DLTFSRC      FILE(xxx)

The  information  from the  file is  accessed  to determine  the source
that was used to create the file.

If either  the file  or the  source cannot  be  found, or  you are  not
authorized to delete both,  or the file (if it is a  data base file) or
the  source member  cannot be  allocated, neither  the file  is deleted
nor the source removed.  An appropriate message would appear.

A data base file cannot be  deleted unless all its members are free  of
locks.  The ALCOBJ  command can only lock a  single member per request.
This  technique is used for  logical files which rarely  have more than
one member.    For physical  files,  the TAA  tool  ALCDBF is  used  to
allocate all of the members before attempting to delete the file.

Non-data base files  (e.g.  DSPFs  and PRTFs) cannot be  allocated with
ALCOBJ.   When  one of  these  files is  opened, a  lock  is implicitly
placed  on them by the system.  The  delete will fail if a lock exists.

Files can be  created without using  source.  If  a file is  named that
was  not  created  from  source,  the  file will  be  deleted  with  an
appropriate message.

Command parameters                                    *CMD

   FILE          The  qualified name  of the file  to be  deleted.  The
                 library defaults  to  *LIBL.    *CURLIB  may  also  be




The following TAA Tools must be on your system:

      ALCDBF        Allocate data base file
      SNDCOMPMSG    Send completion message
      SNDESCMSG     Send escape message


None, the tool is ready to use.

Objects used by the tool

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

   DLTFSRC       *CMD                       TAAFILA       QATTCMD
   TAAFILAC      *PGM           CLP         TAAFILAC      QATTCL

Added to TAA Productivity tools April 1, 1995

Home Page Up to Top