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 |
How long can a macro variable be? A token? : sas-macro
What SAS statements would you code to read an external raw data file to a DATA step?
What is the use of %include statement?
Explain how you can debug and test your SAS program?
Have you been involved in editing the data or writing data queries?
1 Answers BioServe, Oracle, Sasken,
what is the primary data source for the wrs? : Sas-bi
firstobs and obs are working only option wise,but we are using infile statement with firstobs and obs in a statement wise? so firstobs,obs working at options and statemnts or not?
Compare sas with other data analytics tools.
how to display duplicated observations in a data using base sas.
13 Answers HCL, TCS,
how can you put a "trace" in your program? : Sas programming
Code a PROC SORT on a data set containing State, District and County as the primary variables, along with several numeric variables.
what is data access? : Sas-di