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
what has been your most common programming mistake? : Sas programming
What does the trace option do?
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;
What are the applications primarily used by business analyst? : Sas-bi
Differentiate between sas functions and sas procedures.
what is SAS OPTIMIZATION?
How would you invoke a macro? : sas-macro
what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming
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?
What is the use of function Proc summary?
explain the use of % includes a statement in sas? : Sas-administrator
Are you sensitive to code walk-throughs peer review or QC review?
how sas deals with business intelligence? : Sas-bi
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
How would you include common or reuse to be processed along with your statements?