Hi,
Sorry, I can't even look at that code.
If you can provide some test data (form of a datastep), then could provide some code, but at a guess:
data _null_;
set <your_data>;
if _n_=1 then i=1;
if i=1 then call execute('<put overall information per page here>');
call execute('<put region information here>');
call execute('<put splgot here>');
i=ifn(i=4,1,i+1);
run;
This would use your dataset containing the pararmeters, which is a loop, and generate the code needed out - i is the incrementor for each of the four regions and region can be derived from that. Would make your life easier. Note the consistent casing, indetation, use of code editor ({i} above post window) etc.
... View more