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
Answer Posted / 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 |
Post New Answer View All Answers
what is sas enterprise intelligence architecture? : Sas-bi
what is sas metadata repository? : Sas-bi
What was the last computer book you purchased? Why?
Given an unsorted data set, how to read the last observation to a new data set?
what techniques and/or procs do you use for tables? : Sas programming
What are the functions used for character handling?
How to limit decimal places for variable using proc means?
which date functions advances a date time or date/time value by a given interval? : Sas programming
explain about data integrator metadata reports? : Sas-di
Hi Jeevan/Akshara I have tried to contact SASI Vats for latest Advanced SAS Programming Certification Dumps (A00-212) but have not got any response. I would highly and gratefully appreciate your assistance in this regard. If you guys have access to this, would you be kind enough to forward it to me ? I would abide by all the terms you have for this. Please, note my email id: upretigopi@yahoo.com Preti Sharma
what is sas business intelligence? : Sas-bi
What are the automatic variables for macro? : sas-macro
what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake
What is the difference between using drop = data set option in data statement and set statement?
What is the work of tranwrd function?