Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1039


what is the use of sas management console? : Sas-di

1085


Explain the main difference between the sas procedures and functions? : Sas-administrator

1065


how would you create multiple observations from a single observation? : Sas programming

996


What versions of SAS have you used (on which platforms)?

1505


Why double trailing @@ is used in input statement?

1216


What is the difference between nodupkey and nodup options?

1032


For clinical entire study how many tables will create approx?

1962


How does proc sql work?

1071


What is a macro routine?

2709


how do you test for missing values? : Sas programming

1045


: and & modifiers.

1384


How sas treats the dsd delimiters?

1207


describe the interaction table in sas di? : Sas-di

1028


I have a dataset concat having variable a b & c. How to rename a b to e & f?

1014