× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Jerry,

A few of observations for what they are worth. First, recompiling a program is creating it. Assuming you are not trying to track down something that was clandestinely placed on your system it sounds like you are actually looking for version control information. As far as I know this is not built into the objects. That said, if a program is updated (UPDPGM) I don't believe a program's creation date changes.

Last used date (on programs at least) does not appear at V5R4 to be changed by the SAVLIB command.

If you are trying to find out when and how something was placed onto your system regardless of the method (change control or manually) you will have to go to the security journal QAUDJRN. QAUDJRN contains journal codes of type T. You will be looking for, but not restricted to, journal entry types CD, CO, DO, OR, RA and JS. If you have more than 1 system or partition look at the created on system parameter of the DSPOBJD command. The program had to be saved somehow there somehow to be restored on the system in question. This could be SAVOBJ, SAVRSTOBJ or any other custom command that uses them. They will be in the T-CD journal entries.

You can look in the QHST logs. You can find when a job started by requesting message ID CPF1124. Job completion sends a CPF1164 to QHST.

If you have exit programs in place they may help you.

If you are trying to find when an object was placed on your system look at the restore date. Again, the object only retains the last date it was restored. History has to be obtained from the security journal.

HTH

Gary

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry C. Adams
Sent: Friday, December 09, 2011 8:31 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Create/Last Used Program Dates

Or the source could have been changed at a later date. I do that periodically when I want to add some documentation to the source (radical idea, I know).

Jerry C. Adams
IBM i Programmer/Analyst
Behind every successful man is his woman. Behind the fall of a successful man is usually another woman.
--
A&K Wholesale
Murfreesboro, TN
615-867-5070


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Morgan, Paul
Sent: Friday, December 09, 2011 10:14 AM
To: Midrange Systems Technical Discussion
Subject: RE: Create/Last Used Program Dates

Jerry,

You could look at the creation date on the source member used to create the program. It won't be exact (the program could have been compiled on a later
date) but that could be close enough for your purposes.

Paul Morgan

Principal Programmer Analyst
IT Supply Chain/Replenishment

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry C. Adams
Sent: Friday, December 09, 2011 10:30 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Create/Last Used Program Dates

Did some more searches and still couldn't find the answer to my first question. I thought, perhaps, that when a program was re-compiled, that the creation date *might* be unchanged; i.e., retaining it from the object it was replacing.

But I tested that (lame) theory by re-compiling a program. Its creation date is now today. So I guess there's no way to tell when a program was originally created absent a journal entry, right?

Jerry C. Adams
IBM i Programmer/Analyst
Knowledge is knowing a tomato is a fruit. Wisdom is not putting it in a fruit salad.
--
A&K Wholesale
Murfreesboro, TN
615-867-5070


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry C. Adams
Sent: Friday, December 09, 2011 7:26 AM
To: Midrange-L
Subject: Create/Last Used Program Dates

I have a program that, using DSPOBJD, shows a creation date of 9 May 2006.
I know there's been a lot of discussion about creation dates and, especially, last used dates here. I tried searching the archives and the Info Center but could not find what I need.



Is the created date the actual date that the object was created? It, also, shows a last used date of 9 December 2011 (today). I ran this at 0630, when I first got here, and I'm the first one in the building. In fact every program I checked (even unused or rarely used ones) shows the same last used date. The library was backed up (via a WRKJOBSCDE entry) early this morning. It seems that saving the library also changes the last used date; is that correct?



Jerry C. Adams

IBM i Programmer/Analyst

We never really grow up, we only learn how to act in public.

--

A&K Wholesale

Murfreesboro, TN

615-867-5070



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.