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.
Answers were Sorted based on User's Feedback
Answer / temporarypostedname
I thought about sth like this:
Data _null_;
filename fileref <device-type>
dsnname='path'
run;
something like this buy it do not work.
and i would like to add BLK, DISP; UNIT SIZE
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
how do we get duplicate observations in a separate dataset?
What is the order of evaluation of the following operators + - * / ** () ???
What is the order of evaluation of the comparison && logical && relational operators:?
how to read the variables in sas? : Sas-administrator
what are sas/access and sas/connect? : Sas programming
What are the difference between the sas data step and sas procs?
describe about physical data integration? : Sas-di
If you have a data set that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variable?
Explain bmdp procedure?
What is the differnce between SDTM 3.1.2 to 3.1.1 version
What would the following datastep do? Data _null_; Set Dist end=eof; Call Symput("xx"!!left(put(_n_,2.)),&dimension); If EOF then Call Symput('numrows',left(put(_n_,2.))); Run; dimension is a macro variable that is being passed here
if we dont want to print output what we have to do..???give syntax..???
8 Answers Accenture, GSK GlaxoSmithKline,