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
What sas features do you use to check errors and data validation?
Tell me about % include and % eval? : sas-macro
What are the default statistics that proc means produce?
How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?
I need level 2 to 5 sas using companies in india
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
what is sas metadata repository? : Sas-bi
What is the use of function Proc summary?
How do you use the do loop if you don’t know how many times you should execute the do loop?
describe the interaction table in sas di? : Sas-di
Describe the ways in which you can create macro variables?
what is null hypothesis? why do you consider that?
Differentiate between proc means and proc summary.
Did you used proc test? when?
Mention common programming errors committed in sas ?