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 are validation tools that are used in sas? : Sas-administrator

1062


What is the difference between where and if statement?

1118


what is SAS OPTIMIZATION?

2302


If a variable contains only numbers, can it be a character data type?

1090


why is sas data integration studio important? : Sas-di

1041


What is the use of divide function?

1068


What are SAS/ACCESS and SAS/CONNECT?

1151


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

1202


what is broad cast agent? : Sas-bi

1074


what is ae onset date n what is RDS

2581


what is sas metadata server? : Sas-di

1108


What are symget and symput? : sas-macro

1316


How do you delete duplicate observations in sas?

1078


Can you execute a macro within a macro? Describe. : sas-macro

1112


What are the prime responsibilities of data integration administrator? : Sas-di

1074