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
What is the difference between match merge and one to one merge?
What is PDV?
what does the run statement do? : Sas programming
describe how to adjust the performance of data integrator? : Sas-di
what are the categories that sas informats are used to the place the data? : Sas-administrator
what are some differences between proc summary and proc means? : Sas programming
How do you use the do loop if you don’t know how many times you should execute the do loop?
How would you define the end of a macro?
What are all the problems you faced while validating tables and reports?
what are the component of range? : Sas-bi
What is the function of Stop statement in a SAS Program?
What is the difference between the proc sql and data step?
: and & modifiers.
what is sas business intelligence? : Sas-bi
what is ae onset date n what is RDS