03-10-2014 03:16 AM
Is there is any way to read directory path from the file reference?
for e.g. I had file references declared in one stage of a program as: filename fref <dir>;
In other place I want to get the directory path <dir> only by using fref.
Please let me know how this can be done.
your help is much appreciated.
03-10-2014 09:02 AM
You seem to have mixed macro and data step logic there.
In a data step you can call the PATHNAME() function directly.
path = pathname('sashelp');
In macro code you can call the PATHNAME() function using %SYSFUNC().