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?
information about fopen mode mismatches?
-
- Registered Member
- Posts: 15
- Joined: Fri Mar 03, 2017 2:01 am
- Contact:
- Anuj Dhawan
- Founder
- Posts: 2824
- Joined: Sun Apr 21, 2013 7:40 pm
- Location: Mumbai, India
- Contact:
Re: information about fopen mode mismatches?
I'm not a mainframe C expert, however are you using #include <errno.h> to trap the errors. It might help.
Thanks,
Anuj
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.
Anuj
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.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute