How do I CREATE an external dataset with sas code?
I would like to create within a sascode a non-exsistent
textfile on the host.
So I am not forced to create the file befor filling it.
Answer Posted / kumar
/*this is only for txt file*/
data _null_;
file print;
if _n_=1 then do;
put @5'name1'@10 name2';
put @5name1 @10name2;
end;
and for excel file
file kala dde 'path.xls';
data l;
infile kala;
input name1 name2;
run;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
how to remove duplicates using proc sql?
what is enterprise guide? What is the use of it? : Sas programming
explain about various caches available in data integrator? : Sas-di
why a stop statement is needed for the point= option on a set statement?
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
What is factor analysis?
How we can call macros with in data step? : sas-macro
Tell e how how dealt with..
Compare sas with other data analytics tools.
What is the sas data set? : sas-grid-administration
In SAS explain which statement does not perform automatic conversions in comparisons?
how to read the variables in sas? : Sas-administrator
To what type of programms have you used scratch macros?
How to include or exclude specific variables in a data set?