title: Displaying an external image file on a remote server in a local SAS session
body: <p>I've used SAS to generate a gif image on a remote server, by remote submitting code from a local SAS session. The macro that was used to create the gif image is designed to run only on the remote server, i.e. it's called within an rsubmit block:</p>
  
  <pre><code>rsubmit;
  %mymacro(params);
  endrsubmit;
  </code></pre>
  
  <p>Is there a way of making the image display in the results area of my local sas session without running any local code? If I did, I could use proc download and then tell SAS to open the image using an external application, but I'd prefer to keep everything contained in the remote macro if possible.</p>
  
  <p>To clarify: the remote session is on a server running Solaris, and the local session is on my PC running Windows. The remote macro creates an external gif image file on the Solaris server, via this sort of method:</p>
  
  <pre><code>filename graph '/path/to/my/image.gif';
  goptions xpixels = 1280 ypixels = 1024 gsfname = graph device = gif;
  proc gplot *etc etc*
  </code></pre>
  
  <p>The chart in question is heavily customised and contains quite a lot of detail, so I'm effectively supersampling in SAS to make it look better when scaled down. Using the grlink graphics device doesn't seem to produce high enough resolution images, so I tried gif.</p>
  
  <p>Bonus points if someone can come up with a method that will work for external image files that haven't been produced by SAS, or by a previous bit of code!</p>