[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

SORT and File Lock (FLK) Errors?

» close window

The Question is:

 
If I am sorting a file using VMS sort/merge and at the same time try in another
 process to open the file for update i get this error.
 
NODE1>open/read/write myfile filespec
%DCL-E-OPENIN, error opening file1.ism as input
-RMS-E-FLK, file currently locked by another user
 
is there a way to run the sort such that it does not lock the file being sorted?
 
 


The Answer is :

    Also...
 
 
    Sort specifically locks against update access such that the information
    is not changing while sorting, surely you would not want it any other
    way! If it allowed updated there woudl be no garantuee whether old or
    updated information woudl make it to the output and in extreme case
    (changing of the key fiels) it conceivably could create out of order
    data.
 
    Hein.
 

answer written or last revised on ( 12-MAR-2004 )

» close window