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 SAS data set?
Enlist the functions performed by sas.
what is the use of catalog?
If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn?t have a value?
What are the different servers in sas? : sas-grid-administration
Which are SAS Windows Clients & SAS Java Clients
what is the SAS/ACCESS and SAS/CONNECT?
9 Answers Accenture, iFlex, TCS,
What is SAS?
calculate the sum of value using only DATA STEP. data count_; input year name $ value; cards; 2006 xxx 10 2007 yyy 12 2006 xxx 20 2008 yyy 15 2007 xxx 15 ; out put should be like this year name T_value ----------------------- 2006 xxx 30 2007 xxx 15 2007 yyy 12 2008 xxx 15
Difference between nodup and nodupkey options?
What is the use of the %include statement?
How to test the debugging in sas?