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
which date function advances a date, time or datetime value by a given interval? : Sas programming
What system options would you use to help debug a macro? : sas-macro
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 does sas handle missing values in assignment statements? : Sas programming
why is a stop statement needed for the point=option on a set statement? : Sas programming
for what purpose would you use the retain statement? : Sas programming
Can you execute macro within another macro? : sas-macro
explain the concepts and capabilities of business object? : Sas-bi
How can you limit the variables written to output dataset in data step?
What is the difference between SAS functions and procedures?
List out some key concept of SAS
what is sas olap server? : Sas-di
What are the limitations for memory allocation for SAS variables
explain what is factor analysis? : Sas-administrator
What is SAS?