|
If the file exists, you can use the failure of fopen() to return a fileID file handle as a signal, and the message in sysmsg() as confirmation, all under program control.
Datum: 04/05/2001 13:29
An: SAS-L@LISTSERV.UGA.EDU
Antwort an: Ronald Höllwarth <Ronald.Hoellwarth@SCHWAEBISCH-HALL.DE>
Betreff: How do I verify if I have access to a file under MVS?
Nachrichtentext:
Hello,
I have the following problem:
when a user starts SAS it is attempted to read in a file. But not all users
have access to this file.
I don't want to list all the userid's that are allowed or not allowed to read
the file. the "who is allowed
and who not" should be handled by our Access-Control-System RACF.
Therefore I need a way to detect if the user as read-Access to the file or
not.
is there an easy way to determine this or must I live with the very ugly "READ
Acccess not allowed"
message?
greetings from schwaebisch hall, germany
ronald höllwarth
--
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
|