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 |
what is the need of INDEX in datasets?
what are some differences between proc summary and proc means? : Sas programming
Describe crosslist option in tables statement?
i want to upload titles and footnotes to excel file?how it is possible?
Describe the types of SAS programming tasks that you performed like Tables? Listings? Graphics? Ad hoc reports? Other?
How do you write a test plan?
Give e an example of..
how can get the first and last observations in a dataset using Proc SQl?
how to delete the duplicates by using proc sql?
How would you remove a format that has been permanently associated with a variables?
how would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable? : Sas programming
I have a dataset concat having a variable a b & c. How to rename a b to e & f?