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

what is the function of catx syntax? : Sas-administrator

654


what is the basic structure sas administrator? : Sas-administrator

563


What are the implications?

1181


What are the prime responsibilities of data integration administrator? : Sas-di

589


explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

543






how can you create zero observation dataset? : Sas programming

639


what are informats in sas? : Sas-administrator

588


How to limit decimal places for variable using proc means?

590


What is the use of the %include statement?

690


How are numeric and character missing values represented internally?

1138


what are the categories that sas informats are used to the place the data? : Sas-administrator

613


which date function advances a date, time or datetime value by a given interval? : Sas programming

597


how would you determine the number of missing or nonmissing values in computations? : Sas programming

657


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

762


What are the default statistics that proc means produce?

604