create macros---you have 365 number of data and you need to
merge it throw the macros,,,,,,

data file1;
input a @@;
cards;
1 2 3 4
;
run;

data file2;
input a @@;
cards;
5 6 7 8
;
run;
data file3;
input a @@;
cards;
9 10 11 12
;
run;data file4;
input a @@;
cards;
13 14 15 16
;
run;

Answer Posted / jugaadu

Sorry missed the data step here is the corrected Version;


%MACRO Data_Create;
%Do i = 1 %to 365;
DATA file&i;
INPUT a @@;
CARDS;
4*&i-3 4*&i-2 4*&i-1 4*&i
;
RUN;
%MEND;

%Data_Create;

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

564


What does the trace option do?

663


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;

1966


What are the applications primarily used by business analyst? : Sas-bi

552


Differentiate between sas functions and sas procedures.

642






what is SAS OPTIMIZATION?

1814


How would you invoke a macro? : sas-macro

549


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

586


How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?

1161


What is the use of function Proc summary?

651


explain the use of % includes a statement in sas? : Sas-administrator

545


Are you sensitive to code walk-throughs peer review or QC review?

2602


how sas deals with business intelligence? : Sas-bi

582


I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry

1324


How would you include common or reuse to be processed along with your statements?

1898