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


Please Help Members By Posting Answers For Below Questions

What is the difference between input and infile statement?

680


Which statement does not perform automatic conversions in comparisons?

1202


Explain the purpose of substr functions in sas programming.

561


Mention what are the data types does SAS contain?

695


What are the different servers in sas? : sas-grid-administration

600






How many ways to overcome a missing values???

2334


What will calendar procedure do?

593


what are the component of range? : Sas-bi

616


What is the use of stop statement?

642


Differentiate between sas functions and sas procedures.

640


describe how to adjust the performance of data integrator? : Sas-di

563


Difference between nodup and nodupkey options?

630


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

551


sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately

3108


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

1345