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 PDV?
How would you code the criteria to restrict the output to be produced?
Have you ever linked SAS code? If so, describe the link and any required statements used to either process the code or the step itself.
How to get any kind of data in SAS? Is it possible to take data from notepad in SAS?
What is the length assigned to the target variable by the scan function?
Give e an example of..
How to read the file names of a text files from a shared drive using SAS?
WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS FUNCTION?
What is the difference between %local and %global?
what are the methods that you would employ to fine tune your SQL extract process using SAS/Access or Proc SQL?
Mention the difference between ceil and floor functions in sas?
what is the difference between proc means and proc summary?