Procedure DataFileGetOwner(datafile, owner)

DataFileGetOwner

With the procedure DataFileGetOwner you can obtain the name of the user that currently owns a specific case or dataset.

DataFileGetOwner(
        datafile,      ! (input) element in the set AllDataFiles
        owner          ! (output) scalar string parameter
        )

Arguments

datafile

An element in the set AllDataFiles.

owner

A scalar string valued parameter. On return this parameter will contain the name of the user that owns the datafile. If there is no current owner, or if the project does not have a user database associated with it, then an empty string is returned.

Return Value

The procedure returns 1 if the given datafile exists, 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 procedures DataFileExists, DataFileGetGroup.