PetrOtahal
Technical User
Need a little help with the following code:
The important bits that aren't doing what I expect are in bold.
Note: &graphicspath is just a subdirectory of &outputpath.
eg.
The code works fine but I want to save the graphics in the subdirectory only and at the moment they are being saved in both &outputpath and &graphicspath. How do I prevent the graphics from being saved in the &outputpath directory.
Any help greatly appreciated.
Petr
Code:
%macro RunModel;
proc greplay igout=work.gseg tc=tempcat nofs;
delete _all_; quit; *Delete all previous graphs;
%do i = 1 %to 3 %by 1;
%let modelDep=%scan(&Dependent,&i);
goptions device=gif hsize=6 cm vsize=4 cm display;
ods html style=test [b]path="&outputpath"
gpath="&graphicspath" (url="Graphics\") [/b]
file="&modelDep models.html" anchor="report";
%do j=1 %to 3 %by 1;
%let BMImodelInd= %scan(&BMIIndependents, &j,$);
ods select NObs ParameterEstimates;
proc glm data=shbg;
model &modelDep = &BMImodelInd / solution clparm;
output out=shbg_res p=pred rstudent=studres;
title "&modelDep BMI model &j";
run; quit;
%Nplot_FIT(pred, studres, shbg_res); run; quit;
*Run Diagnostic plots;
%end;
...
*More %do loops follow;
...
%end;
%mend;
The important bits that aren't doing what I expect are in bold.
Note: &graphicspath is just a subdirectory of &outputpath.
eg.
Code:
%let graphicspath=C:\Store\Graphics;
%let outputpath =C:\Store;
The code works fine but I want to save the graphics in the subdirectory only and at the moment they are being saved in both &outputpath and &graphicspath. How do I prevent the graphics from being saved in the &outputpath directory.
Any help greatly appreciated.
Petr