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 sas application server, database server, sas olap server and sas metadata server? : Sas-di
Are you involved in writing the inferential analysis plan? Tables specfications?
How to get any kind of data in SAS? Is it possible to take data from notepad in SAS?
IS SAS COMPILER OR INTERPRETER? EXPLAIN?
3 Answers Aon Hewitt, HSBC, SCL, TCS,
How would you keep from overlaying the a SAS set with its sorted version?
What is the difference Using & and && in the macro variables
Approximately what date is represented by SAS date value of 730
i have a data set with 20 observations i want label from 8 to 15 observations ? how you create this one.
What’s the difference between var b1 – b3 and var b1 — b3?
What r all the reporting procedures...?
what are the three main credit bureau names
1 Answers Synchrony Financial,
What is highest missing value for numeric?