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 prob plot in clinical domain
If you?re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?
what are some differences between proc summary and proc means? : Sas programming
What is a pdv and what are its functions?
In this question, I rename the numeric variable phone to numphone and then try use phone=put(numphone,comma16.) to store the numeric value numphone as a string value in phone. But I get a warning tha numphone already exists and in the data sat phone doesnt exist and numphone is set to missing. Why? data names_and_more; input Name $20. Phone : comma16. Height & $10. Mixed & $8.; Name = tranwrd(Name,' ',' '); rename phone = numphone; phone = put(numphone,comma16.); datalines; Roger Cody 9,087,821,234 5ft. 10in. 50 1/8 Thomas Jefferson 3,158,488,484 6ft. 1in. 23 1/2 Marco Polo 8,001,234,567 5Ft. 6in. 40 Brian Watson 5,183,551,766 5ft. 10in 89 3/4 Michael DeMarco 4,452,322,233 6ft. 76 1/3 ;
what do you mean by data staging area? : Sas-di
What are the different versions of sas that you have used until now? : sas-grid-administration
How do you delete duplicate observations in sas?
what is the usage for assigning error=1 in a dataset ?
WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS FUNCTION?
explain about sas business intelligence? : Sas-bi
Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?