Re: change access & modification time of file-members



Thank you for responding.

Unfortunately, 'now' is not the time I want for my members :-(
I copy them from the IFS, and I need the timestamps to be the same as the
IFS source it was copied from.

I have fiddled around with 'touch', but I have not seen it have any effect
on the timestamps whatsoever.
So I have set my hopes on Thomas's MI source of CHGMBRDAT.

Thanks anyway.

Etienne

"Dr.UgoGagliardelli" <info@xxxxxxxxxx> schreef in bericht
news:449f984a$0$9612$5fc30a8@xxxxxxxxxxxxxxxxxx
ET wrote:
Hi Thomas,

Yes, I would be most grateful if you could send me your MI source.

Thank you!

Etienne

"Thomas Raddatz" <thomas.raddatz@xxxxxxxxxxx> schreef in bericht
news:449ECA63.2030000@xxxxxxxxxxxxxx
Etienne,

I do not think that it can be done using an official API. I use a MI
program originally written by Leif Svalgaard and slightly modified by
me. It can change the modification date and time as well as the creation
date and time. The drawback is that it does not work on security level >
30.

Let me know if you want a copy of my CHGMBRDAT command.

Regards,

Thomas Raddatz.





ET schrieb:
Hi,

I need to change the access and modifiation times of a source physical
file member programmatically.

I have tried the utime() and Qlg0lSetAttr() APIs, but they only support
setting access and modification times of IFS files, not of anything in
the /QSYS.LIB file system.
Is there any other API that can do this ?

Thanks in advance for any help,

Etienne


You can use the touch qsh command as well. e.g.
QSH CMD('touch -fm /qsys.lib/yourlib.lib/yourfile.file/yourmbr.mbr')
or direcly from qsh command line, will change the moditication date to
'now'.

--
Dr.Ugo Gagliardelli,Modena,ItalyCertifiedUindoscrasherAñejoAlcoolInside
Spaccamaroni andate a cagare/Spammers not welcome/Spammers vão à merda
Spamers iros a la mierda/Spamers allez vous faire foutre/Spammers loop
schijten/Spammers macht Euch vom Acker/Spamerzy wypierdalac'


.