%splitby(NEWD,18);
run;
ods graphics /reset imagename='Final'
imagefmt=jpeg height=3 in width=6 in;
ods listing gpath= "/folders/myfolders/FITGRAPHS_CONC/" ;
%MACRO TEST;
%DO i=1% TO 34;
DATA NEWD&i;
SET WORK.FIT&i;
PROC SGPANEL DATA =NEWD&i;
PANELBY ID/columns=3 rows=2 ;
scatter x=TIME y=OBS;
series x=TIME y=CONC;
series x=TIME y=PRED /lineattrs=(color=red pattern=dash);
run;
RUN;
%end;
%mend TEST;
%TEST The attached code was used to split a larger file into 34 smaller files to be plotted in SGPANEL. It runs okay. The graph creates a matrix of 3 columns and 2 rows. The only problem is that a graph is in only one column while all the others are blank. Can someone tell me how to get the code to populate all 6 panels? See an examples.
... View more