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 is the use of sas management console? : Sas-di
Explain the main difference between the sas procedures and functions? : Sas-administrator
how would you create multiple observations from a single observation? : Sas programming
What versions of SAS have you used (on which platforms)?
Why double trailing @@ is used in input statement?
What is the difference between nodupkey and nodup options?
For clinical entire study how many tables will create approx?
How does proc sql work?
What is a macro routine?
how do you test for missing values? : Sas programming
: and & modifiers.
How sas treats the dsd delimiters?
describe the interaction table in sas di? : Sas-di
I have a dataset concat having variable a b & c. How to rename a b to e & f?