Midrange News for the IBM i Community


Posted by: Bob Cozzi
Rogue Programmer
Cozzi Productions, Inc.
Chicagoland
Modifying Last Changed Date for a File/Member?
has no ratings.
Published: 14 Jan 2014
Revised: 16 Jan 2014 - 3752 days ago
Last viewed on: 25 Apr 2024 (4280 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Modifying Last Changed Date for a File/Member? Published by: Bob Cozzi on 14 Jan 2014 view comments(4)

I have the qp01SetAttr function for changing the last modified date/time of an IFS object, however this interface does not apply to OS/400 (IBM i) Objects.

I'm wondering if anyone knows of an interface (API, SQL function, etc.) that can be used to modify the last changed date?

Note the CPYSRCF command has this capability so if it isn't available via API then is must just not be exposed to use humans.

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: FCSBRIAN
Premium member *
Southwestern Ontario, Canada
Comment on: Modifying Last Changed Date for a File/Member?
Posted: 10 years 3 months 11 days 8 hours 9 minutes ago

Did you look at this article Bob?

http://www.mcpressonline.com/rpg/change-the-last-used-date-of-an-ibm-i-system-object-arbitrarily.html

 

Brian

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Modifying Last Changed Date for a File/Member?
Posted: 10 years 3 months 11 days 4 hours 49 minutes ago

Thanks Brian, they are changing the last used date not the last modified date, in that example. But it did point me to the MI article and I do have the ability to use C to do that kind of stuff, so I'll give it a try.

Posted by: DaleB
Premium member *
Reading, PA
Comment on: Modifying Last Changed Date for a File/Member?
Posted: 10 years 3 months 10 days 1 hours 35 minutes ago

How does CPYSRCF have this capability? All I see there is you can set SRCCHGDATE, which is the SRCDAT column in the source member, not a file or member level attribute.

Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Modifying Last Changed Date for a File/Member?
Posted: 10 years 3 months 10 days 1 hours 11 minutes ago

Yes but not at v5r4