Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What is PDV?

0 Answers  


How would you code the criteria to restrict the output to be produced?

6 Answers   Accenture,


Have you ever linked SAS code? If so, describe the link and any required statements used to either process the code or the step itself.

2 Answers   Accenture,


How to get any kind of data in SAS? Is it possible to take data from notepad in SAS?

7 Answers   GSK, TNS,


What is the length assigned to the target variable by the scan function?

0 Answers  


Give e an example of..

0 Answers  


How to read the file names of a text files from a shared drive using SAS?

1 Answers   HSBC, WNS,


WHAT IS LAG FUNCTION ? WHERE CAN YOU IMPLEMENT THIS FUNCTION?

3 Answers   IBM, Zensar,


What is the difference between %local and %global?

1 Answers  


what are the methods that you would employ to fine tune your SQL extract process using SAS/Access or Proc SQL?

1 Answers  


Mention the difference between ceil and floor functions in sas?

0 Answers  


what is the difference between proc means and proc summary?

2 Answers   Accenture,


Categories