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 program data vector (pdv) and what are its functions?

0 Answers  


is data integration and etl programming is same? : Sas-di

0 Answers  


How are the analysis data sets structured?

3 Answers  


How would you determine the number of missing or nonmissing values in computations?

0 Answers  


Mention sas system options to debug sas macros.

0 Answers  


Can you execute a macro within a macro? Describe. : sas-macro

0 Answers  


CHOOSE ANY ONE OF THE PROCEDURE FOLLOWING TO GENERATE THE REPORTS? HOW CAN YOU SAY IT IS BETTER THAN THE OTHER? AND DEFERENCIATE THESE TWO ? 1). REPORT PROCEDURE 2). TABULATE PROCEDURE

4 Answers   CybAge,


What are the efficacy variables in your study?

2 Answers   Accenture, Quintiles,


Describe a time when you were really stuck on a problem and how you solved it?

0 Answers   DELL,


If you could design your ideal job, what would it look like?

0 Answers   Oracle,


Explain the message ‘MERGE HAS ONE OR MORE DATASETS WITH REPEATS OF BY VARIABLE’.

2 Answers  


how do u validate the program which u have written.

1 Answers   TCS,


Categories