information about fopen mode mismatches?

C/C++ and Java for MVS & zOS.

Topic author
peeterjoot
New Member
Posts: 5
Joined: Fri Mar 03, 2017 2:01 am
Has thanked: 3 times
Been thanked: 1 time

information about fopen mode mismatches?

Postby peeterjoot » Tue Apr 04, 2017 10:21 pm

C doesn't have anything but errno for fopen failures, but it also doesn't have all the complex mode string extensions that exist in mainframe C.

On the mainframe, if an fopen("dd:...", modestring) fails due to a fopen mode string mismatch relative to the JCL that cataloged and/or allocated the DDNAME/DSNAME in question, is there a way to get extended error information about the precise nature of that fopen mode mismatch?



Online
User avatar

Anuj Dhawan
Founder
Posts: 2376
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Has thanked: 146 times
Been thanked: 62 times

Re: information about fopen mode mismatches?

Postby Anuj Dhawan » Tue Apr 04, 2017 11:01 pm

I'm not a mainframe C expert, however are you using #include <errno.h> to trap the errors. It might help.


Thanks,
Anuj


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

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests