At 07:11 PM 6/10/2002 +0100, BAZLEY, Sebastian wrote:
>found the magic incantation:
>
>$in=vmsopen($file,'shr=put','ctx=rec');
>
>Thanks again for helping solve the problem.
>
>If the VMS::Stdio documentation is ever updated, perhaps it might be useful
>to add an example using these qualifiers?


It looks like the appropriate documentation is with the creat() function in 
the C RTL Reference.  The most pertinent bit says:

"You cannot share the default Compaq C for OpenVMS stream file I/O. If you 
wish to share files, you must specify 'ctx=rec' to force record access mode. 
You must also specify the appropriate 'shr' options depending on the type of 
access you want. "

If you ever have multiple copies of this script going after the same file 
you may also need 'rop=nlk' or possibly 'rop=rrl'.

Reply via email to