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 are validation tools that are used in sas? : Sas-administrator
What is the difference between where and if statement?
what is SAS OPTIMIZATION?
If a variable contains only numbers, can it be a character data type?
why is sas data integration studio important? : Sas-di
What is the use of divide function?
What are SAS/ACCESS and SAS/CONNECT?
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
what is broad cast agent? : Sas-bi
what is ae onset date n what is RDS
what is sas metadata server? : Sas-di
What are symget and symput? : sas-macro
How do you delete duplicate observations in sas?
Can you execute a macro within a macro? Describe. : sas-macro
What are the prime responsibilities of data integration administrator? : Sas-di