Changed-date File Attribute using C.

C/C++ and Java for MVS & zOS.
Previous topicNext topic

Topic Author
Anushka Sharma
Registered Member
Posts: 23
Joined: Sun Sep 01, 2013 4:56 pm

Changed-date File Attribute using C.

Post by Anushka Sharma » Wed Oct 09, 2013 12:33 pm


How to get the date changed from a member of a PDS in 'C' on zOS? Can someone give some pointer?

User avatar

Anuj Dhawan
Posts: 2624
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Zodiac: Sagittarius

Re: Changed-date File Attribute using C.

Post by Anuj Dhawan » Wed Oct 09, 2013 4:00 pm

fstat() C-language function should give you what you're looking for.

However, if you don't have ISPF statistics turned on then the time-stamp information is not kept by the file-system and the function might not be of help but then your site chose to do so. Said that, in such a case, and if you still need that info, you should touch base with your site support group.


Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.

Previous topicNext topic

Return to “C, C++ and Java for Mainframes.”