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 do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
How do you use the do loop if you don’t know how many times you should execute the do loop?
How to read an input file in sas?
what is sas data set?
Explain how you can debug and test your SAS program?
what is the Population you used in your project, is it ITT or PP?
Given an unsorted data set, how to read the last observation to a new data set?
How to limit decimal places for the variable using proc means?
What is a pdv and what are its functions?
Differentiate between ceil and floor functions.
Explain by-group processing?
What is the difference between input and infile statement?
Are you involved in writing the inferential analysis plan? Tables specfications?
What are the new features included in the new version of SAS Programming Language?
How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?