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 match merge and one to one merge?

698


What is PDV?

736


what does the run statement do? : Sas programming

564


describe how to adjust the performance of data integrator? : Sas-di

574


what are the categories that sas informats are used to the place the data? : Sas-administrator

629






what are some differences between proc summary and proc means? : Sas programming

515


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

763


How would you define the end of a macro?

710


What are all the problems you faced while validating tables and reports?

3021


what are the component of range? : Sas-bi

629


What is the function of Stop statement in a SAS Program?

652


What is the difference between the proc sql and data step?

674


: and & modifiers.

876


what is sas business intelligence? : Sas-bi

599


what is ae onset date n what is RDS

1945