Hi Tushar, There are some files by the name VSLIB and VSTABLE in the library SASHELP. Infact, the time when we open a file a tempfile is created in these tables with the names and other credentials of the table. Please Note that WORK Library's files are hard to find the path of. This method works for any file apart from WORK Library files. So If we know the name of the table opened we can find the path of it, using the following queries:- %LET Data_Name=DATA_name; proc sql noprint; select path||"\"||"&Data_name" into :path from SAShelp.Vslib where libname in ( select distinct libname from sashelp.vstable where memname="&Data_Name"); quit; %put path= &path; This Marco variable "path" formed can be used. HTH, Thanks
... View more