Page 1 of 1

File Attributes

PostPosted: Wed Apr 09, 2008 7:00 pm
by capetownprogrammer
Hi Guys

Anyone know how to get the date changed from a member of a PDS in 'C'.
Z/os 1.8

Would be great if one can get that from an open file handle.
but if I have to, I can build a string "dnct00.a0.source(testfile)" out of the parameters I have.

stat function does not seem to work :roll:

Regards
Andre

Re: File Attributes

PostPosted: Tue Jan 27, 2009 8:23 am
by napanap
capetownprogrammer wrote:Hi Guys
stat function does not seem to work :roll:

You probably don't have ISPF statistics turned on for the PDS. If statistics are turned off (this can be controlled in SDSF) then the timestamp information is not kept by the filesystem, so it makes sense that the C function wouldn't work as you expect.

BTW fstat() takes a file handle.

Re: File Attributes

PostPosted: Thu Jan 29, 2009 9:36 am
by napanap
napanap wrote:If statistics are turned off (this can be controlled in SDSF) ...

Did I really say that? I meant statistics are controled in ISPF.