Hello John You are right about the problem with STATUS().
I would look at the UNIX 'stat' command, that should give you what you want. You can combine that with a find command to run it for each of the files then parse the results. Not elegant but it should be functional. Sorry I don't have a UNIX system to hand right now, so I can't give the syntax with the stat options. Brian > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of John Rodgers > Sent: 28 January 2009 23:31 > To: [email protected] > Subject: [U2] Last accessed date stamp for UniVerse files > > UniVerse 9.6.1.6 on HP/UX > > We are analyzing our "mature and extensive" application to > find obsolete files. > I was hoping to use the array loaded by STATUS() after a file > OPEN to return the date/time stamps. > > From the manual for STATUS() after OPEN > ... > Last Access date = <14> - date of last access Last Date > Written = <16> - date of last mod > > It appears that opening the file immediately changes the last > access date/time <14> and <15>. > That seems to defeat the purpose because the answer is always > today / now. > > Is there a way around this? > Is there another way of getting at that info without having > to parse the results of a unix shell command? > One hassle with that is the external date returned which is > "sometimes" > month day & time or maybe month day & year - for older records. > > I can do that but it just seems simpler to stay within > UniVerse to query UniVerse entities. > We get spoiled by the U2 way of managing dates/times. > > I have searched the IBM knowledge base but got no relevant hits. > That surprises me. I am either misunderstanding something or > I am totally on the wrong path. > > > Cheers > > > JR > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
