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

What would the following datastep do?

Data _null_;
Set Dist end=eof;
Call Symput("xx"!!left(put(_n_,2.)),&dimension);
If EOF then
Call Symput('numrows',left(put(_n_,2.)));
Run;

dimension is a macro variable that is being passed here

Answer Posted / kumaraswamy maduri

It creates macro variables like xx1,xx2....xxnumber of
observations and all the variables will same value that
&dimesion has and it creates one more macro
variable "numrows" that contains number of observations as
character value.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is star schema? : Sas-di

1187


Explain what is the use of proc gplot?

1249


What are the data types in sas?

1116


How do you control the number of observations and/or variables read or written?

1297


what is study design in while working with SAS? what are screening variables in SAS?

2277


explain about sas business intelligence? : Sas-bi

1199


What is substr function?

1245


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

1190


Have you used macros? For what purpose you have used? : sas-macro

1089


What is a method to debug and test your SAS program?

1441


what is the purpose of _error_? : Sas programming

1191


Differentiate between sas functions and sas procedures.

1315


What is the basic syntax of a sas program?

1264


what is the difference between infile and input? : Sas-administrator

1204


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

1058