Is there any way to assign your file name in proc import, it's easily done in an extra data step but I'd like to avoid the extra datastep if I can? Needless to say I'll have multiple file to import and assign individual names for var 'projclass' in this example.
Thanks
SP
:-
proc import datafile ="C:\MPFS\u226aw.rpt" OUT=sp1 dbms=csv replace;
getnames=yes;
datarow=2;
run;
*;
Data a1;
set sp1;
projclas='U226AW';
run;
Thanks
SP
:-
proc import datafile ="C:\MPFS\u226aw.rpt" OUT=sp1 dbms=csv replace;
getnames=yes;
datarow=2;
run;
*;
Data a1;
set sp1;
projclas='U226AW';
run;