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 do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

1280


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

1272


How to read an input file in sas?

1148


what is sas data set?

1109


Explain how you can debug and test your SAS program?

1019


what is the Population you used in your project, is it ITT or PP?

2750


Given an unsorted data set, how to read the last observation to a new data set?

1361


How to limit decimal places for the variable using proc means?

1086


What is a pdv and what are its functions?

1159


Differentiate between ceil and floor functions.

1169


Explain by-group processing?

1006


What is the difference between input and infile statement?

1178


Are you involved in writing the inferential analysis plan? Tables specfications?

2230


What are the new features included in the new version of SAS Programming Language?

1216


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

2471