I MUST have misread your question, as it isn't often that I discover
something that datanull doesn't already know.
And, to be honest, I'm not sure how to harvest the following, thus I will
simply post what I found and hope others can explain and show you how you
might be able to use it. It was the result of submitting some code with a
If you run the following code:
proc print data=sashelp.class;
Your log will show something like the following:
114 proc print data=sashelp.class;
116 %put &_VTtableName.;
117 %put &_VTtableLabel.';
';proc print data=sashelp.class;run;%put &_VTtableName.;%put
Surely, that can be grabbed and parsed!
>Hi, I'm wondering if there's a way to determine the data set most recently
>read in by a PROC, similar to the way SYSLAST gives us the name of the
>set most recently created.
>So, if I do a PROC PRINT with the option data=work.mydata, I'd like a way
>retrieve the name "work.mydata".
>My initial suspicion, after a cursory search, is that this is not
> Please let me know if you think otherwise.