File Attributes



Help for C/C++ for MVS, OS/390 C/C++, z/OS C/C++ and C/C++ Productivity Tools for OS/390

File Attributes

Postby capetownprogrammer » Wed Apr 09, 2008 7:00 pm

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
capetownprogrammer
 
Posts: 1
Joined: Wed Apr 09, 2008 6:54 pm
Has thanked: 0 time
Been thanked: 0 time

Re: File Attributes

Postby napanap » Tue Jan 27, 2009 8:23 am

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.
napanap
 
Posts: 7
Joined: Tue Jan 27, 2009 7:12 am
Has thanked: 0 time
Been thanked: 0 time

Re: File Attributes

Postby napanap » Thu Jan 29, 2009 9:36 am

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.
napanap
 
Posts: 7
Joined: Tue Jan 27, 2009 7:12 am
Has thanked: 0 time
Been thanked: 0 time


Return to C, C++

 


  • Related topics
    Replies
    Views
    Last post