CA-L-Serv › Define Managed Files › Set File Access
Set File Access
The DISP parameter of the ADDFILE command determines whether the file server requires exclusive use of the file specified in the ADDFILE command. If you specify:
- SHR (default), the file server allows shared access to the file. The file may be allocated to other users, but VSAM sharing options apply. The VSAM share options must be set as follows, or integrity exposure exists: SHROPTION=(1,3) or SHROPTION=(2,3).
- OLD, the file server must have exclusive use of the file. The ADDFILE command fails if the file is already allocated to another job or user of the system. Once the file is allocated to CA-L-Serv, the SHAREOPTIONS specified when the VSAM data set was defined become irrelevant because no other job or user of the system will be able to access the data set.
Note: When no DISP is specified on the ADDFILE command, the disposition of the data sets defaults to DISP(SHR).
Example
For exclusive access to the DPMFPDF2 file, specify this command in the parameter data set:
ADDFILE DPMFPDF2 DISP(OLD)