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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / akshata shenvi
here numeric values have been converted to character values
at the place given by (line) :column
| Is This Answer Correct ? | 1 Yes | 6 No |
How can you put a "trace" in your program?
what is the difference between nodup and nodupkey options? : Sas programming
Why double trailing @@ is used in input statement?
Why do we use QUIT commmand for proc datasets and proc sql ???
What is the general format of function in sas? : sas-grid-administration
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
describe about joins? briefly?
If you?re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?
How would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable?
what other sas products have you used and consider yourself proficient in using? : Sas programming
How do you specify the number of iterations and specific condition within a single do loop?
how does sas handle missing values in a merge? : Sas programming