Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODS html output with graphics

Status
Not open for further replies.

PetrOtahal

Technical User
Dec 3, 2007
12
AU
Need a little help with the following code:

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top