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



What would the following datastep do? Data _null_; Set Dist end=eof; Call Symput("xx&quo..

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

What would the following datastep do? Data _null_; Set Dist end=eof; Call Symput("xx&quo..

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

Post New Answer

More SAS Interview Questions

Describe 5 ways to do a “table lookup” in SAS?

0 Answers  


Can we create datasets by proc step ? (Proc contents, Means)?

2 Answers  


define table lookup and how may ways it can be done...explian

3 Answers  


what is the difference between DUPKEY and NODUPKEY???

4 Answers   Cognizant, EXL,


what are informats in sas? : Sas-administrator

0 Answers  






what can you learn from the sas log when debugging? : Sas programming

0 Answers  


what has been your most common programming mistake? : Sas programming

0 Answers  


Can you explain the process of calendar?

0 Answers  


What is the difference between one to one merge and match merge? Give an example.

0 Answers  


What is your weekness? I am confuse what to say about this question. so can u give some answer which can be yur strenght.

1 Answers   Cipla,


which date functions advances a date time or date/time value by a given interval? : Sas programming

0 Answers  


What system options would you use to help debug a macro? : sas-macro

0 Answers  


Categories