[log in to unmask] (James Dickson) writes: > Does anyone know how to programmatically, i.e. in Posix & C, disable > MPE from requesting a lockword if it is not specified in the HPFOPEN > formal designator. > > The only way I have found is to close stdin but then the lockword > violation error is way down in the error stack, and also it will be > very inefficient for me to keep closing/reopening stdin every time I > want to open a file. > > > Any ideas? > > > Jamie Dickson. Try specifying a null lockword in the filename, as in filename/ or filename/.pub.sys. I believe that will return an error to HPFOPEN instead of prompting for a lockword if the file has a lockword.