I'm porting some code from z/OS to CMS.  My application opens several CMS
 
output files using fopen with a dd name and a corresponding FILEDEF, for 

example fopen( dd:OBNLOG, w,recfm=vba,lrecl=125 ) and FILEDEF OBNLOG 
DISK 
OBNLOG LISTING A. The first fopen is successful, but the second (and also
 
the third) fails with errno=129 errno2=000836.  The symbolic for 129 
is 
ENOENT.  

No error occurs if I remove the run-time option, POSIX(ON).  I need to ha
ve 
POSIX(ON) because the application uses ThreadCreate and TCP/IP OE sockets
.

In searching through the VM documentation, it appears that the dd name is
 
not correctly resolved by the second fopen.  I suspect that it is trying 
to 
access a BFS file. It seems strange to me that the 2nd invocation is 
different from the first.

Any ideas about accessing CMS files in the POSIX environment?  

I'd appreciate any clues you might have.

Thanks for your help,
Julie Erickson.


Reply via email to