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

Explain the message 'Merge has one or more datasets with repeats of by variables'.

5 Answers  


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

0 Answers  


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

0 Answers  


Hi Friends, My name is Priya,am new to this Forum. am looking for SAS Platform Administration Interview Questions.I searched every where but I couldn't find any where.please can anyone help me with the FAQ's. It would be a great favor to me if you can email the Interview Questions to priyafeb84@gmail.com

0 Answers  


Name statements that function at both compile and execution time.

7 Answers   Accenture,






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

0 Answers  


what is sas? is a package or tool? give me introduction about sas?

11 Answers   Accenture,


You need to perform an analysis on a massive dataset by groups, but are unable to sort the data due to memory constraint. How would you accomplish the task?

2 Answers  


Does anybody has lastest SAS certification dumps,if anybody has please mail me at akshara_SAS@ymail.com Thanks Akshara

55 Answers  


In which format does Date stores in sas..? What is the use of DATE in SAS.?

3 Answers   TCS,


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

0 Answers   Quintiles,


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

0 Answers  


Categories