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 / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are the statements whose placement in the data step is critical?

988


what r the job openings SAS for fresher graduates !

2197


what is information maps?

1820


what is ae onset date n what is RDS

2146


How to create list output for cross-tabulations in proc freq?

851


What is the SAS data set?

889


What is the difference between %put and symbolgen? : sas-macro

920


Explain the use of proc print and proc contents?

731


Explain how you can debug and test your SAS program?

754


What are the differences between sum function and using “+” operator?

790


If a variable contains letters or special characters, can it be numeric data type?

979


In SAS explain which statement does not perform automatic conversions in comparisons?

1074


I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry

1527


What is the command used to find missing values?

806


what do you mean by data staging area? : Sas-di

821