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 the difference between input and infile statement?
Which statement does not perform automatic conversions in comparisons?
Explain the purpose of substr functions in sas programming.
Mention what are the data types does SAS contain?
What are the different servers in sas? : sas-grid-administration
How many ways to overcome a missing values???
What will calendar procedure do?
what are the component of range? : Sas-bi
What is the use of stop statement?
Differentiate between sas functions and sas procedures.
describe how to adjust the performance of data integrator? : Sas-di
Difference between nodup and nodupkey options?
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately
Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya