I'm not sure about the object restore, Paul, as I haven't done any empirical
testing. But I suspect you are correct because CRTDUPOBJ and CPYLIB do have
a create date = the date of the copy, not the date in the original object.
Jerry C. Adams
IBM i Programmer/Analyst
I asked God for a bike, but I know God doesn't work that way. So I stole a
bike and asked for forgiveness.
--
A&K Wholesale
Murfreesboro, TN
615-867-5070
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of paul therrien
Sent: Friday, December 09, 2011 11:22 AM
To: 'Midrange Systems Technical Discussion'
Subject: RE: Create/Last Used Program Dates
I may be missing a nuanced conversation here but ...AFAIK the create date is
the create date is the create date. The change date may be affected by a
couple of operations, but the create date is the compile date. I may be
wrong, but I have no reason to believe otherwise.
Now, if the program object was placed on the system by a restore command
then this may be a different kettle of fish.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry C. Adams
Sent: Friday, December 09, 2011 10: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.