Hello,
The program I am executing read from the dataset Dictionary.tables, several datasets and views available in the selected library but in the SAS logs there are error messages because not all the datasets behind the views could be located.
ERROR: SQL View XYZ could not be processed because at least one of the data sets, or views, referenced directly (or indirectly) by it could not be located, or opened successfully.
The SAS views were created in the past years and then the datasets behind the views were moved in the backup folders and deleted from libraries.
Also:
tried to obtain a list of the "existing" views with proc datasets but the results are similar (ie error messages for non-existing views).
tried with SAS macro function: ie %sysfunc(exist(&dsn., VIEW)), but it does not work in this case, namely the views exist.
The program should be a part of a scheduled SAS job but error messages makes the program execution stops.
Please, could you suggest a SAS function/proc sql statement or option that is able to prove whether a SAS view exists(aka the datasets behind the views still exist)?
... View more