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 the proc sql and data step?
What are symget and symput? : sas-macro
what are the types of interactive display types? : Sas-bi
what are the best practices to process the large data sets in sas programming? : Sas-administrator
Explain the difference between informat and format with an example.
what is enterprise guide? What is the use of it? : Sas programming
Explain the use of proc print and proc contents?
what versions of sas have you used (on which platforms)? : Sas programming
what is sas data set?
Did you used proc test? when?
What is SAS? What are the functions does it performs?
What are the difficulties u faced while doing vital signs table or dataset?
AE datasets names? how many types?
What are the different types of sas functions?
Explain the purpose of substr functions in sas programming.