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

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

1180


how to remove duplicates using proc sql?

1136


what is enterprise guide? What is the use of it? : Sas programming

1010


explain about various caches available in data integrator? : Sas-di

1034


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

1055


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

1735


What is factor analysis?

1109


How we can call macros with in data step? : sas-macro

1102


Tell e how how dealt with..

2209


Compare sas with other data analytics tools.

1006


What is the sas data set? : sas-grid-administration

966


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

1293


how to read the variables in sas? : Sas-administrator

1002


To what type of programms have you used scratch macros?

2558


How to include or exclude specific variables in a data set?

1102