<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Grafout 2 seperate graphs in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345571#M12010</link>
    <description>&lt;P&gt;Yep, I&amp;nbsp;have two Filename statements one referencing each output string - there are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;amp;filesout&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;amp;filestrend..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe I have tried both of you suggestions but I think it might be the way I have done it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code cleaned up..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;run ;
 /**/

symbol1 interpol=join width=1 line=2 v=none color=red;
symbol2 interpol=join width=1 line=1 v=none color=black;
symbol3 interpol=join width=1 line=2 v=none color=red;
symbol4 interpol=join width=1 line=1 v=none color=blue;
symbol5 interpol=join width=1 line=1 v=none color=green;
run;
* THis is what creates the graph picture automatically;
ods listing; 
filename grafout (
   "&amp;amp;filesout" 
    );
goptions reset=goptions device=JPEG gsfname=grafout gsfmode=append 
;  
run;
proc gplot data= all ;
   format int_dt datetime10. ;
   title1 "Federal Latency (PROD) Chart" ;
   title2 "Period: &amp;amp;begdt to &amp;amp;enddt" ;
   title3 "Data grouped in &amp;amp;sync_int Second Intervals" ;
   label int_dt = 'Date Time' ; 
   label latency_mean_seconds= 'latency' ;
   legend1 order=('latency' 'latency_lclm' 'latency_mean' 'latency_uclm');
   legend2 order=('receipt_cnt');
   axis1 label=(angle=90 'Latency in Seconds') ;
   plot 
	  /**/    latency_lclm*int_dt       /* */
	          latency_mean*int_dt 
              latency_uclm*int_dt  
		      latency_mean_seconds*int_dt

   / overlay name="tgraph" hminor=0 legend=legend1
                    haxis=&amp;amp;begdt to &amp;amp;enddt by &amp;amp;ginterval vaxis=axis1           
   ;
   plot2 receipt_cnt*int_dt 
                    / overlay name="tgraph" legend=legend2 /***/           
   ;
run;
proc export
   data=ALL
   outfile="&amp;amp;filesoutcsv"
   dbms=csv
   replace
;
run;
** Ive tried filename grafout here and it didn't work;
  proc gplot data= accesst.all2 ;
   format int_dt datetime10. ;
   title1 "Submission Processing Control Chart Trend" ;
   title2 "Period: &amp;amp;begdt_tr to &amp;amp;enddt_tr" ;
   title3 "Data grouped in &amp;amp;sync_int Second Intervals" ;
   label int_dt = 'Date Time' ; 
   label latency_mean_seconds= 'latency' ;
   legend1 order=('latency');
   legend2 order=('Acks_RFP');
   axis1 label=(angle=90 'Latency in Seconds') logbase=10 logstyle=expand ;
   plot latency_mean_seconds*int_dt
   / overlay name="tgraph" hminor=0 legend=legend1
                    haxis=&amp;amp;begdt_tr to &amp;amp;enddt_tr by &amp;amp;ginterval_tr vaxis=axis1;
   ;
   run;
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the script exports &amp;amp;fileout fine, but i can't get it to give me another file for &amp;amp;filestrend using the same command later on in the script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2017 22:24:05 GMT</pubDate>
    <dc:creator>hondahawkrider</dc:creator>
    <dc:date>2017-03-29T22:24:05Z</dc:date>
    <item>
      <title>Grafout 2 seperate graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345502#M12008</link>
      <description>&lt;P&gt;I am using the following code that creates a SAS/Graph jpeg (used to be png) file&amp;nbsp;for all my output from "proc gplot data= all"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;* THis is what creates the graph picture automatically;
*ods  _all_  close; 
ods listing; 
* filename grafout "C:\Prod Ack Gen Time Data\2016\GZ\02.24.16\Test.png"; 
filename grafout (
   "&amp;amp;filesout" 
    );
goptions reset=goptions device=JPEG gsfname=grafout gsfmode=append 
;  
*filename grafout clear;
run;&lt;/PRE&gt;&lt;P&gt;my issue is that I have added another gplot to the script, ie "proc gplot data= accesst.all2"&amp;nbsp; and the second graph is parameterized as "&lt;/P&gt;&lt;P&gt;&amp;amp;filestrendout"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What&amp;nbsp;I need is to get an addtional SAS/Graph jpeg (or png) file created (it shows up correctly in my Results tab)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However what ever I try doesn't work&amp;nbsp;(adding &amp;amp;filestrendout to ODS, seperate ODS listing, etc),&amp;nbsp; i only ever get 1 file and it's&amp;nbsp;"&amp;amp;filesout" data (but it sometime uses the &amp;amp;filestrendout parameter setting).. I suspect my initial ODS listing&amp;nbsp;uses some kind default&amp;nbsp;naming convention and only gets&amp;nbsp;me the "proc gplot data= all" graph, but I need both it and "proc gplot data= accesst.all2" as png or jpeg files..&amp;nbsp; It can be seperate files, or both graphs can be in the same file - doesn't matter...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is "proc gplot data= all"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc gplot data= all ;
   format int_dt datetime10. ;
   *title1 "Submission Processing Control Chart" ;
   title1 "Federal Latency (PROD) Chart" ;
   *title2 "Mean Latency, Receipts " ;
   title2 "Period: &amp;amp;begdt to &amp;amp;enddt" ;

   title3 "Data grouped in &amp;amp;sync_int Second Intervals" ;
   label int_dt = 'Date Time' ; 
   label latency_mean_seconds= 'latency' ;
  
   /* 
     Receipts	
     IMF_Acks	
     BMF_Acks	
     FED_Acks	
     State_Acks	
     Total_Acks	
     RFP 
     Acks_RFP
     receipt_cnt
     latency_mean_seconds

     legend2 order=('Rec' 'Total_Acks'); 
   */

   *legend1 order=('latency_lclm' 'latency_mean_seconds' 'latency_uclm');
   *legend1 order=('latency_mean_seconds' 'latency_95th_percentile');
   legend1 order=('latency' 'latency_lclm' 'latency_mean' 'latency_uclm');

   /*
   legend2 order=('Acks_RFP');
   */

   legend2 order=('receipt_cnt');

   axis1 label=(angle=90 'Latency in Seconds') ;
   *legend2 order=('Receipts');

   plot 
          
      /**/    latency_lclm*int_dt       /* */
	          latency_mean*int_dt 
              latency_uclm*int_dt  
		      latency_mean_seconds*int_dt

	/***	  latency_95th_percentile*int_dt ***/
	/**	  latency_uclm*int_dt        * */
		  
      

   / overlay name="tgraph" hminor=0 legend=legend1
                    haxis=&amp;amp;begdt to &amp;amp;enddt by &amp;amp;ginterval vaxis=axis1
                    
              
   ;

   /***
   plot2 Acks_RFP*int_dt 
                    / overlay name="tgraph" legend=legend2 ***/
   /***/
   plot2 receipt_cnt*int_dt 
                    / overlay name="tgraph" legend=legend2 /***/
           
               
   ;

   *by date ;
  
   run;&lt;/PRE&gt;&lt;P&gt;Here is &amp;nbsp;proc gplot data= accesst.all2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc gplot data= accesst.all2 ;
   format int_dt datetime10. ;
   title1 "Submission Processing Control Chart Trend" ;
   *title2 "Mean Latency, Receipts " ;
   title2 "Period: &amp;amp;begdt_tr to &amp;amp;enddt_tr" ;

   title3 "Data grouped in &amp;amp;sync_int Second Intervals" ;
   label int_dt = 'Date Time' ; 
   label latency_mean_seconds= 'latency' ;
  
   *legend1 order=('latency' 'latency_lclm' 'latency_mean' 'latency_uclm');
  legend1 order=('latency');
  
   legend2 order=('Acks_RFP');
   axis1 label=(angle=90 'Latency in Seconds') logbase=10 logstyle=expand ;
   *legend2 order=('Receipts');

   plot 
          
      /**    latency_lclm*int_dt       
	          latency_mean*int_dt 
              latency_uclm*int_dt    */
		      latency_mean_seconds*int_dt

	/***	  latency_95th_percentile*int_dt ***/
	/**	  latency_uclm*int_dt        * */
		  
      

   / overlay name="tgraph" hminor=0 legend=legend1
                    haxis=&amp;amp;begdt_tr to &amp;amp;enddt_tr by &amp;amp;ginterval_tr vaxis=axis1
                    
              
   ;

   /***
   plot2 Acks_RFP*int_dt 
                    / overlay name="tgraph" legend=legend2 ***/
              
               
   ;

   *by date ;
   run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I don't know if it's "tgraph" being used in each or what....&amp;nbsp; I'm stumped .... Help..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original script is in &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/SAS-Automation-Export/m-p/315194/highlight/true#M68701" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/SAS-Automation-Export/m-p/315194/highlight/true#M68701&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 18:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345502#M12008</guid>
      <dc:creator>hondahawkrider</dc:creator>
      <dc:date>2017-03-29T18:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Grafout 2 seperate graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345537#M12009</link>
      <description>&lt;P&gt;If I understand what your are attempting there are at least two ways to go:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should have two Filename statements one referencing each output string.&lt;/P&gt;
&lt;P&gt;And then&lt;/P&gt;
&lt;P&gt;Before the second Gplot reference the second filename in another goptions statemetn to set the gsfname.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or have another filename statement AFTER the first gplot redefining the filename to point to the other file definition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the Name= shouldn't matter as that is the name for the entry in the gout catalog and is likely getting incremented to tgraph2, tgraph3 etch each time the code is run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have so much code commented out that it is a tad difficult to figure out what you are actually using though.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 20:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345537#M12009</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-29T20:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Grafout 2 seperate graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345571#M12010</link>
      <description>&lt;P&gt;Yep, I&amp;nbsp;have two Filename statements one referencing each output string - there are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;amp;filesout&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&amp;amp;filestrend..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe I have tried both of you suggestions but I think it might be the way I have done it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code cleaned up..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;run ;
 /**/

symbol1 interpol=join width=1 line=2 v=none color=red;
symbol2 interpol=join width=1 line=1 v=none color=black;
symbol3 interpol=join width=1 line=2 v=none color=red;
symbol4 interpol=join width=1 line=1 v=none color=blue;
symbol5 interpol=join width=1 line=1 v=none color=green;
run;
* THis is what creates the graph picture automatically;
ods listing; 
filename grafout (
   "&amp;amp;filesout" 
    );
goptions reset=goptions device=JPEG gsfname=grafout gsfmode=append 
;  
run;
proc gplot data= all ;
   format int_dt datetime10. ;
   title1 "Federal Latency (PROD) Chart" ;
   title2 "Period: &amp;amp;begdt to &amp;amp;enddt" ;
   title3 "Data grouped in &amp;amp;sync_int Second Intervals" ;
   label int_dt = 'Date Time' ; 
   label latency_mean_seconds= 'latency' ;
   legend1 order=('latency' 'latency_lclm' 'latency_mean' 'latency_uclm');
   legend2 order=('receipt_cnt');
   axis1 label=(angle=90 'Latency in Seconds') ;
   plot 
	  /**/    latency_lclm*int_dt       /* */
	          latency_mean*int_dt 
              latency_uclm*int_dt  
		      latency_mean_seconds*int_dt

   / overlay name="tgraph" hminor=0 legend=legend1
                    haxis=&amp;amp;begdt to &amp;amp;enddt by &amp;amp;ginterval vaxis=axis1           
   ;
   plot2 receipt_cnt*int_dt 
                    / overlay name="tgraph" legend=legend2 /***/           
   ;
run;
proc export
   data=ALL
   outfile="&amp;amp;filesoutcsv"
   dbms=csv
   replace
;
run;
** Ive tried filename grafout here and it didn't work;
  proc gplot data= accesst.all2 ;
   format int_dt datetime10. ;
   title1 "Submission Processing Control Chart Trend" ;
   title2 "Period: &amp;amp;begdt_tr to &amp;amp;enddt_tr" ;
   title3 "Data grouped in &amp;amp;sync_int Second Intervals" ;
   label int_dt = 'Date Time' ; 
   label latency_mean_seconds= 'latency' ;
   legend1 order=('latency');
   legend2 order=('Acks_RFP');
   axis1 label=(angle=90 'Latency in Seconds') logbase=10 logstyle=expand ;
   plot latency_mean_seconds*int_dt
   / overlay name="tgraph" hminor=0 legend=legend1
                    haxis=&amp;amp;begdt_tr to &amp;amp;enddt_tr by &amp;amp;ginterval_tr vaxis=axis1;
   ;
   run;
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the script exports &amp;amp;fileout fine, but i can't get it to give me another file for &amp;amp;filestrend using the same command later on in the script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 22:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345571#M12010</guid>
      <dc:creator>hondahawkrider</dc:creator>
      <dc:date>2017-03-29T22:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Grafout 2 seperate graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345578#M12011</link>
      <description>thx ballardw .. I tired it a few more times and got it</description>
      <pubDate>Wed, 29 Mar 2017 22:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345578#M12011</guid>
      <dc:creator>hondahawkrider</dc:creator>
      <dc:date>2017-03-29T22:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Grafout 2 seperate graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345584#M12013</link>
      <description>&lt;P&gt;You have enough macro variables that things may have hiccupped on you.&lt;/P&gt;
&lt;P&gt;You may consider using&lt;/P&gt;
&lt;P&gt;options Mprint symbolgen;&lt;/P&gt;
&lt;P&gt;before your code the next time you run into an issue. You may find something like a file path with an extra character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the occational Goptions reset=all; has been known to correct a number of unexpected behaviors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will also want to consider moving over to SGPLOT and other SG procedures as the old device based SAS/Graph general graphing procedures aren't where SAS is spending much time in improvements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 23:01:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345584#M12013</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-29T23:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Grafout 2 seperate graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345587#M12014</link>
      <description>Thx.. Im working on it.. I am former SA with lots of bat/vb/bash scripting experience who is now doing performance engineering and new to SAS, I'm more on the practical side (Getting stuff to work), I have a worker who is a statistician and old school sas scriptor. When I do my own it's more modern based as i'm learning on my own as well as from him.. However, I get a lot of base scripts he has written and have to run with em...&lt;BR /&gt;&lt;BR /&gt;Thx again</description>
      <pubDate>Wed, 29 Mar 2017 23:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345587#M12014</guid>
      <dc:creator>hondahawkrider</dc:creator>
      <dc:date>2017-03-29T23:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Grafout 2 seperate graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345798#M12020</link>
      <description>&lt;P&gt;The features available in the newer procedures, especially the GTL, make possible things that required extemely complex annotate data (if possible even then) with the older procedures much simpler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to look at, and share with your colleage, this link for some examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/sassamples/graphgallery/PROC_SGRENDER_Graph_Template_Language__GTL_.html" target="_blank"&gt;http://support.sas.com/sassamples/graphgallery/PROC_SGRENDER_Graph_Template_Language__GTL_.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would have loved to have the ability to do example 35177 20 years ago when I was working with weather data. And the bivariate display in 35172 is very slick for displaying the combined density of two varibles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SGPanel making multiple similar graphs together with common axis has made some things way easier than Proc Gplot or Gchart.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:37:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Grafout-2-seperate-graphs/m-p/345798#M12020</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-30T15:37:02Z</dc:date>
    </item>
  </channel>
</rss>

