Procedure DataFileReadPermitted(datafile)

DataFileReadPermitted

With the procedure DataFileReadPermitted you can check whether the current user has read permission for the specified case or dataset. For example, you can use this procedure to issue your own error message if the permission is not granted. If the current user does not have read permission, then any call to a data manager procedure that involves a read operation will result in an error message, and fails.

DataFileReadPermitted(
        datafile      ! (input) element in the set AllDataFiles
        )

Arguments

datafile

An element in the set AllDataFiles.

Return Value

The procedure returns 1 if the current user does have read permission, and 0 otherwise.

Note

  • This function is only applicable if the project option Data_Management_style is set to Single_Data_Manager_file.

See also

The procedure DataFileWritePermitted.