I need to create the weekly report including the histograms for showing all the individual site info. Each week, new sites are added and I have to manually modify the code. I am wondering whether there is a way to program to create the data files including 13 sites in each histogram ordered by the Site ID.
This is the current code:
/* Create three datasets split by Site - 13 sites per graph*/ data plot_iq_hist_split1 plot_iq_hist_split2 plot_iq_hist_split3 plot_iq_hist_split4; set plot_iq_hist; if site IN ('001', '002', '004', '005', '008','013', '018','020', '021', '022', '025', '026','027') then output plot_iq_hist_split1; else if site IN ('029', '030' '032', '033','035','038', '040', '041', '042', '043', '044','046', '051') then output plot_iq_hist_split2; else if site IN ('052', '054', '056', '057', '059', '061', '064', '065', '066', '068', '072', '074', '080') then output plot_iq_hist_split3; else output plot_iq_hist_split4; run;
... View more