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

What sas features do you use to check errors and data validation?

1204


Tell me about % include and % eval? : sas-macro

1134


What are the default statistics that proc means produce?

1027


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1525


I need level 2 to 5 sas using companies in india

2373


what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

1134


what is sas metadata repository? : Sas-bi

1107


What is the use of function Proc summary?

1270


How do you use the do loop if you don’t know how many times you should execute the do loop?

1249


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

1024


Describe the ways in which you can create macro variables?

1177


what is null hypothesis? why do you consider that?

2890


Differentiate between proc means and proc summary.

1043


Did you used proc test? when?

2029


Mention common programming errors committed in sas ?

1106