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 |
explain the key concept of sas? : Sas-administrator
How does the internal authentication work in sas? : sas-grid-administration
I need level 2 to 5 sas using companies in india
what is sas metadata server? : Sas-di
if i having variables named a b c d e f ,how to find total of each variable ????give syntax...??
what do you mean by data staging area? : Sas-di
What is proc sql pass through facility?
How long can a macro variable be? A token? : sas-macro
What is the general format of function in sas? : sas-grid-administration
is there any difference between proc summary and proc means?
if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming
Give some examples where proc report’s defaults are different than proc print’s defaults?