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

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

%Data_Create;

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have a dataset concat having variable a b & c. How to rename a b to e & f?

580


How do you debug and test your SAS programs?

1046


it will become easy if uuu provide website linkssss and list of consultanciessssss

1528


Explain why double trailing @@ is used in input statement?

569


do you prefer proc report or proc tabulate? Why? : Sas programming

572






Give e an example of..

1650


What is the difference between input and infile statement?

680


What is the SAS data set?

675


How substr function works in sas?

699


What would you change about your job?

1921


how to remove duplicates using proc sql?

626


what is the use of sas management console? : Sas-di

613


Explain data_null_?

609


Can you execute macro within another macro? : sas-macro

525


what are sas/access and sas/connect? : Sas programming

546