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 the difference between the proc sql and data step?

1172


What are symget and symput? : sas-macro

1312


what are the types of interactive display types? : Sas-bi

1095


what are the best practices to process the large data sets in sas programming? : Sas-administrator

1022


Explain the difference between informat and format with an example.

1163


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

1017


Explain the use of proc print and proc contents?

960


what versions of sas have you used (on which platforms)? : Sas programming

1070


what is sas data set?

1104


Did you used proc test? when?

2036


What is SAS? What are the functions does it performs?

1193


What are the difficulties u faced while doing vital signs table or dataset?

2387


AE datasets names? how many types?

2500


What are the different types of sas functions?

1273


Explain the purpose of substr functions in sas programming.

1057