%let dsin = pre_finalized;
data _null_;
set &dsin. (obs=1);
I also tried
%let dsin = data.pre_finalized;
Is the above the correct way to call my code. It is not the full code. But I am unsure if I am calling the dataset correctly. I keep on getting error logs. Any suggestions?
If i understand your question correctly, you are trying to call a dataset using a macro variable. Below is the code which i quickly tested and its working. Please see if this helps.
%let data=sashelp.class;
data abc;
set &data. (obs=1);
run;