At 1:52 PM -0500 6/10/02, Craig A. Berry wrote:
>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'.
I also have some nagging memory that RMS caches filesize on open, and
it's rather tough to get it to re-evaluate how big the file is
without closing and reopening the file.
FWIW, playing around with some of the VMS hidden commands (which I've
forgotten about--it's been too long) to see what system calls are
being made when you type/cont would give you an idea of how type's
doing it.
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk