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 |
Describe 5 ways to do a “table lookup” in SAS?
Can we create datasets by proc step ? (Proc contents, Means)?
define table lookup and how may ways it can be done...explian
what is the difference between DUPKEY and NODUPKEY???
what are informats in sas? : Sas-administrator
what can you learn from the sas log when debugging? : Sas programming
what has been your most common programming mistake? : Sas programming
Can you explain the process of calendar?
What is the difference between one to one merge and match merge? Give an example.
What is your weekness? I am confuse what to say about this question. so can u give some answer which can be yur strenght.
which date functions advances a date time or date/time value by a given interval? : Sas programming
What system options would you use to help debug a macro? : sas-macro