Skip to main content
KathleenHambrick
Participating Frequently
Aug 11, 2022 10:21 AM UTC

Is this program still used?!?!

I've inherited thousands of programs, most of which are no longer being used. Even worse the programs are all scattered into about 80 different program files. Your basic nightmare.

Does anyone know a way, on Universe, to tell when the last time a program was executed is? The cataloging features are not usually employed here, although there are some, so anything that looks for a catalogue date is probably not going to help me much - but if there is a way to see when catalogued programs were last run as well that could help some.

If there is nothing available to help me here - any suggestions on how to create a log of what's being used? Obviously I could move all the programs into an archived file and wait for my users to scream but that's not helpful to my company :(

Thanks in advance for the info / suggestions. Hoping to get this place cleaned up but it's gonna take a LONG time!
Kathleen

------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------

    13 replies

    Sam Powell
    Participating Frequently
    Aug 12, 2022 12:32 PM UTC
    I've inherited thousands of programs, most of which are no longer being used. Even worse the programs are all scattered into about 80 different program files. Your basic nightmare.

    Does anyone know a way, on Universe, to tell when the last time a program was executed is? The cataloging features are not usually employed here, although there are some, so anything that looks for a catalogue date is probably not going to help me much - but if there is a way to see when catalogued programs were last run as well that could help some.

    If there is nothing available to help me here - any suggestions on how to create a log of what's being used? Obviously I could move all the programs into an archived file and wait for my users to scream but that's not helpful to my company :(

    Thanks in advance for the info / suggestions. Hoping to get this place cleaned up but it's gonna take a LONG time!
    Kathleen

    ------------------------------
    Kathleen Hambrick
    Programmer at Colwell
    ------------------------------

    Hi,

    Assuming the programs have been cataloged to the uv catalog space you can run.  MAKE.MAP.FILE which will build the &MAP& file and one of the fields called DATE will tell you when it was last accessed or cataloged.

    Once you've build the &MAP& file with MAKE.MAP.FILE you can type. LIST &MAP&  It will also tell you from which account it was cataloged.

    You may have to run this commands in your home UV account.

    Regards, Sam




    ------------------------------
    Sam Powell
    President/Developer
    Advanced Transportation Systems Inc
    Littleton CO US
    ------------------------------
    Mark Copp
    Participating Frequently
    Aug 13, 2022 2:16 AM UTC
    Kathleen,

    On our systems (Universe on AIX), we're running Ideal flavor, and when we catalog programs, the object gets written into the GLOBAL.CATDIR file ($uvhome/catdir). When a program is run, the date stamp on the object code in catdir gets updated.

    Like you said, though, this would only help you with cataloged programs AND if your environment uses/updates catdir.

    Brian
    Hi

    We have a scheduled CRON job that runs every hour that has been running for
    over a year to collect exactly that information. It scans all our known
    DataBasic Object directories and logs any used within the last hour, this
    gives us details of what is being run and when but also to identify when
    erroneous activations occur, we don’t run UVBackup or cpio etc. as we use
    snapshots so rarely affected by false reporting.

    It’s helped us identify a large number of our 15k+ object files that are
    not active or pinpoint when they are being called to assist with
    decommissioning them.

    Happy to share if it helps.

    Kind Regards
    Mark
    --



    Kind regards,

    Mark Copp

    Infrastructure Design

    Travis Perkins PLC


    www.travisperkinsplc.co.uk

    --
    *

    This e-mail and any attachments are confidential and intended solely for
    the use of the addressee only. If you have received this message in error,
    you must not copy, distribute or disclose the contents; please notify the
    sender immediately and delete the message.


    This message is attributed to
    the sender and may not necessarily reflect the view of Travis Perkins
    Trading Company Limited, 733503, Lodge Way House, Lodge Way, Harlestone
    Road, Northampton, NN5 7UG or its parent company Travis Perkins plc
    (Registered in England No. 824821; Lodge Way House, Lodge Way, Harlestone
    Road, Northampton, NN5 7UG; VAT number 408556737) and any of its
    subsidiaries. Agreements binding Travis Perkins Trading Company Limited may
    not be concluded by means of e-mail communication.
    E-mail transmissions are
    not secure and Travis Perkins Trading accepts no responsibility for changes
    made to this message after it was sent. Whilst steps have been taken to
    ensure that this message is virus free, Travis Perkins Trading accepts no
    liability for infection and recommends that you scan this e-mail and any
    attachments.*
    New Participant
    Aug 15, 2022 7:58 PM UTC
    We have some great Unix/AIX types here and I learned from one of them that you can use the following to see when a program was last used:

    SH -c "ls -lu /{application}/{program_filename}.O/{program_name}"

    -rwxrwx---    1 uvadm    xxx           37802 May  5 09:22 /{application}/{program_filename}.O/{program_name}"



    ------------------------------
    Karl Pozmann
    Sr. Analyst, Developer, LTC Systems
    Omnicare Inc
    Dublin OH US
    ------------------------------
    While receiving Unix Admin training I was told the "u" option has no value because even the ls command updates the value. I never bothered to test this but it was a formal training by a well-known computer manufacturer.

    I usually take advantage of an existing INCLUDE to introduce logic capturing the SYSTEM(9001) [call stack], @WHO, date and time and writing it out to a special file. One suggestion, either check @WHO to avoid executing this logic, or use OPENPATH, or update the VOC with the file pointer.

    Tom