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

993


What system options would you use to help debug a macro? : sas-macro

1046


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

1131


how does sas handle missing values in assignment statements? : Sas programming

968


why is a stop statement needed for the point=option on a set statement? : Sas programming

1037


for what purpose would you use the retain statement? : Sas programming

1017


Can you execute macro within another macro? : sas-macro

935


explain the concepts and capabilities of business object? : Sas-bi

907


How can you limit the variables written to output dataset in data step?

1246


What is the difference between SAS functions and procedures?

1097


List out some key concept of SAS

1042


what is sas olap server? : Sas-di

1191


What are the limitations for memory allocation for SAS variables

1424


explain what is factor analysis? : Sas-administrator

1042


What is SAS?

984