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 one statement to set the criteria of data that can be coded in any step? : Sas programming
what are sas/access and sas/connect? : Sas programming
How do dates work in sas?
Mention what is PROC in SAS?
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
do you prefer proc report or proc tabulate? Why? : Sas programming
What is the command used to find missing values?
Differentiate between proc means and proc summary.
What is a put statement?
explain about various caches available in data integrator? : Sas-di
Give e an example of..
How sas treats the dsd delimiters?
What are the advantages of using sas?
What is proc sort?
how does sas handle missing values in a merge? : Sas programming