I resolved my problem by putting // in front of dd: in the fopen command.  I 
found this syntax at a dovetail site which was discussing BPX... routines.

Julie.

-----Original Message-----
From: Julie Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 23, 2006 2:45 PM
To: [email protected]
Cc: Julia Erickson
Subject: 2nd fopen returns ENOENT when POSIX(ON)


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