if you have 365 no of data set and each one having different
variable from each other. how will you read by creating
macros and create a single data set.

Answers were Sorted based on User's Feedback



if you have 365 no of data set and each one having different variable from each other. how will you..

Answer / manoj mishra

Make a library where all data set resides. Use proc contect
and out option to create a data of proc contect from where
we get all data set name. Create Macro using Call Symput for
each dataset name into separate macro variable. We can not
merge them as they dont have common variable. We need set or
Append or SQL to merge them together.

Is This Answer Correct ?    8 Yes 0 No

if you have 365 no of data set and each one having different variable from each other. how will you..

Answer / singh.naveen409

%macro naveen(xx,n);
data www;
merge
%do i=1 %to &n;
&xx&i
%end;
;
run;
%mend naveen;
%naveen (qq,2);

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More SAS Interview Questions

What is interleaving in SAS?

0 Answers  


what other sas products have you used and consider yourself proficient in using? : Sas programming

0 Answers  


i have a dataset with 100000 records. i want 100 records from that dataset and create a dataset.we need to pick the observations random order like 100obs,500obs,1020obs,1890obs,2565obs like that i need 100 obs in random order? how can we create this one?

5 Answers   L&T,


How many tiers in sas architecture?

2 Answers  


Give some ways by which you can define the variables to produce the summary report (using proc report)?

0 Answers  






What are the default statistics that proc means produce?

0 Answers  


In the SAS Data step what is the difference between the subsetting done by Where and subsetting done by If?

6 Answers   Cognizant,


i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;

0 Answers   L&T,


what are input dataset and output dataset options?

6 Answers   HCL,


i have a macro variable var1,var2. i want titles for the each macro variable separately? how it is possible?

1 Answers   L&T,


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

0 Answers  


What can be the size of largest dataset in SAS?

0 Answers  


Categories