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 will you generate test data with no input data?
What is the role of sas grid administrator? : sas-grid-administration
What is the maximum and minimum length of macro variable
what is syntax of proc merge ?
Why Info School? BUILD YOUR CAREER WITH RIGHT GUIDANCE AND SUPPORT
What is the function of output statement in a SAS Program?
how can get the first and last observations in a dataset using Proc SQl?
What does PROC print, and PROC contents do?
What is shift table? have you ever created shift that?
2 Answers Accenture, Clinical Research, Quintiles,
If money were no object, what would you like to do?
What are types of transport files?
2 Answers PRA Health Sciences, Quintiles,
I need to find the numeric field which contains blank in between..Ex:123 456...there is blank in between the 123 456..I need to know if there is any SAS function to find a field.. Please suggest...