ftruncate() on MVS datasets.

J

John Fly

I am trying to find a way to successfully call ftruncate() on an
existing MVS dataset.

I understand it takes a integer file descriptor, but fail to see how
to get one for an open MVS data set.


System is running Z/OS and we are not wanting to use HFS.

Any help would be greatly appreciated.

John
 
R

Richard Bos

I am trying to find a way to successfully call ftruncate() on an
existing MVS dataset.

That would be because ftruncate() is not an ISO C function but an
extension, and therefore doesn't belong on comp.lang.c.
I understand it takes a integer file descriptor,

Which do not exist in ISO C (they are a feature of, amongst other
things, Unix).
but fail to see how to get one for an open MVS data set.

Greatly system-dependently.

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top