Obviously not much detail in your question but I do it all the time. Note the single quotes on the dataset name.
fopen("'FOO.BAR(MEMBER)'", "%c, blksize=0, lrecl=%d, recfm=%s,space=(%s,(%d,%d,%d)), noseek") should work, where the substitution values into the second parameter are 'a' or 'w' plus the obvious. Charles From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Ondruška Peter Sent: Thursday, June 07, 2012 1:56 AM To: IBM-MAIN@bama.ua.edu Subject: trouble writing member to PDS/E in C/++ ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN