<?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: How to change the names of the file (Proc Capability) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-names-of-the-file-Proc-Capability/m-p/784024#M250117</link>
    <description>&lt;P&gt;ODS GRAPHICS statement usually controls the graphics these days but I can't be 100% sure with this procedure as it references the SAS/GRAPH options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To control the graph name, try an ODS GRAPHICS statement with the imagename option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / imagename = "capability";

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n1bl0ct9tx98zen1d6qlljh4dm7b.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n1bl0ct9tx98zen1d6qlljh4dm7b.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the indexes are set automatically and increment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to controlling the graphics from a procedure that's a much more complex topic. Personally, I usually choose to capture the data and then generate the plots myself separately. Obviously for complex plots this is a lot of work. There's the SAS Graphics Editor which allows you to edit graphics via a GUI (a bit old school) or you can modify the template&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would lean towards piping the data to a data set and using SGPLOT to create the graphics myself, especially if they're required for reports or publications.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237405"&gt;@prad001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to parallelize a program but there is a ODS Step in the loop which creates 1 shtml file, 1 .gif file for each unique row and also it creates **ONLY ONE** sasgraph.gif file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you look at the below code., the shtml file name is mentioned in the file statement and I can add an modify the name of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the .gif file output is named as capabil1.gif capabil2.gif... etc..&lt;/P&gt;
&lt;P&gt;But, there is no reference for naming .gif and sasgraph.gif files..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, let me know how to change the names of the .gif and also, I am trying to understand how does the sasgraph.gif file is created and also, how to control that sasgraph.gif file creation process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;goptions hsize=8in vsize=6in device=gif rotate=landscape chartype=5 gsfname=;
symbol1 c=DEFAULT l=1 w=1 v=dot c=blue h=1.5 pct i=join;
filename gout "/amd/ausaph17/24/wetspcm/progs/bynoloops/";
ods html
body="&amp;amp;tech._&amp;amp;device._&amp;amp;hname._ppk_graph.shtml"
contents=""
frame=""
base=""
gpath=gout path=gout gfootnote newfile=none style=Rick3d;
title "&amp;amp;tech &amp;amp;device &amp;amp;name";
title2 "DispoLow = &amp;amp;spel DispoHigh = &amp;amp;speh";
title3 "Updated &amp;amp;fdate &amp;amp;systime";
title4 "Date Range: &amp;amp;mindate to &amp;amp;maxdate";


proc capability noprint data=lot1(WHERE=(device="&amp;amp;device" AND name="&amp;amp;name" AND tech="&amp;amp;tech"));
spec lsl = &amp;amp;spel usl= &amp;amp;speh clsl = red cusl = red;
var buckvalue;
output out=capdev cp=cp cpk=cpk cpl=cpl cpu=cpu mean=mean
std=std pctgtr=pctgtr pctlss=pctlss n=n;
histogram / normal (noprint) href=&amp;amp;spel &amp;amp;speh nolegend;
inset n cpk mean cpl std pctgtr cp pctlss / position=bm height=2 format=9.4;
run;


ods html close;

&lt;/PRE&gt;
&lt;P&gt;Thank you so much in advance,&lt;/P&gt;
&lt;P&gt;Prad&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Dec 2021 22:05:55 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-12-03T22:05:55Z</dc:date>
    <item>
      <title>How to change the names of the file (Proc Capability)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-names-of-the-file-Proc-Capability/m-p/784000#M250107</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to parallelize a program but there is a ODS Step in the loop which creates 1 shtml file, 1 .gif file for each unique row and also it creates **ONLY ONE** sasgraph.gif file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you look at the below code., the shtml file name is mentioned in the file statement and I can add an modify the name of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the .gif file output is named as capabil1.gif capabil2.gif... etc..&lt;/P&gt;
&lt;P&gt;But, there is no reference for naming .gif and sasgraph.gif files..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, let me know how to change the names of the .gif and also, I am trying to understand how does the sasgraph.gif file is created and also, how to control that sasgraph.gif file creation process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;goptions hsize=8in vsize=6in device=gif rotate=landscape chartype=5 gsfname=;
symbol1 c=DEFAULT l=1 w=1 v=dot c=blue h=1.5 pct i=join;
filename gout "/amd/ausaph17/24/wetspcm/progs/bynoloops/";
ods html
body="&amp;amp;tech._&amp;amp;device._&amp;amp;hname._ppk_graph.shtml"
contents=""
frame=""
base=""
gpath=gout path=gout gfootnote newfile=none style=Rick3d;
title "&amp;amp;tech &amp;amp;device &amp;amp;name";
title2 "DispoLow = &amp;amp;spel DispoHigh = &amp;amp;speh";
title3 "Updated &amp;amp;fdate &amp;amp;systime";
title4 "Date Range: &amp;amp;mindate to &amp;amp;maxdate";


proc capability noprint data=lot1(WHERE=(device="&amp;amp;device" AND name="&amp;amp;name" AND tech="&amp;amp;tech"));
spec lsl = &amp;amp;spel usl= &amp;amp;speh clsl = red cusl = red;
var buckvalue;
output out=capdev cp=cp cpk=cpk cpl=cpl cpu=cpu mean=mean
std=std pctgtr=pctgtr pctlss=pctlss n=n;
histogram / normal (noprint) href=&amp;amp;spel &amp;amp;speh nolegend;
inset n cpk mean cpl std pctgtr cp pctlss / position=bm height=2 format=9.4;
run;


ods html close;

&lt;/PRE&gt;
&lt;P&gt;Thank you so much in advance,&lt;/P&gt;
&lt;P&gt;Prad&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 19:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-names-of-the-file-Proc-Capability/m-p/784000#M250107</guid>
      <dc:creator>prad001</dc:creator>
      <dc:date>2021-12-03T19:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the names of the file (Proc Capability)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-names-of-the-file-Proc-Capability/m-p/784024#M250117</link>
      <description>&lt;P&gt;ODS GRAPHICS statement usually controls the graphics these days but I can't be 100% sure with this procedure as it references the SAS/GRAPH options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To control the graph name, try an ODS GRAPHICS statement with the imagename option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics / imagename = "capability";

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n1bl0ct9tx98zen1d6qlljh4dm7b.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/n1bl0ct9tx98zen1d6qlljh4dm7b.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the indexes are set automatically and increment.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to controlling the graphics from a procedure that's a much more complex topic. Personally, I usually choose to capture the data and then generate the plots myself separately. Obviously for complex plots this is a lot of work. There's the SAS Graphics Editor which allows you to edit graphics via a GUI (a bit old school) or you can modify the template&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would lean towards piping the data to a data set and using SGPLOT to create the graphics myself, especially if they're required for reports or publications.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237405"&gt;@prad001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to parallelize a program but there is a ODS Step in the loop which creates 1 shtml file, 1 .gif file for each unique row and also it creates **ONLY ONE** sasgraph.gif file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you look at the below code., the shtml file name is mentioned in the file statement and I can add an modify the name of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the .gif file output is named as capabil1.gif capabil2.gif... etc..&lt;/P&gt;
&lt;P&gt;But, there is no reference for naming .gif and sasgraph.gif files..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, let me know how to change the names of the .gif and also, I am trying to understand how does the sasgraph.gif file is created and also, how to control that sasgraph.gif file creation process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;goptions hsize=8in vsize=6in device=gif rotate=landscape chartype=5 gsfname=;
symbol1 c=DEFAULT l=1 w=1 v=dot c=blue h=1.5 pct i=join;
filename gout "/amd/ausaph17/24/wetspcm/progs/bynoloops/";
ods html
body="&amp;amp;tech._&amp;amp;device._&amp;amp;hname._ppk_graph.shtml"
contents=""
frame=""
base=""
gpath=gout path=gout gfootnote newfile=none style=Rick3d;
title "&amp;amp;tech &amp;amp;device &amp;amp;name";
title2 "DispoLow = &amp;amp;spel DispoHigh = &amp;amp;speh";
title3 "Updated &amp;amp;fdate &amp;amp;systime";
title4 "Date Range: &amp;amp;mindate to &amp;amp;maxdate";


proc capability noprint data=lot1(WHERE=(device="&amp;amp;device" AND name="&amp;amp;name" AND tech="&amp;amp;tech"));
spec lsl = &amp;amp;spel usl= &amp;amp;speh clsl = red cusl = red;
var buckvalue;
output out=capdev cp=cp cpk=cpk cpl=cpl cpu=cpu mean=mean
std=std pctgtr=pctgtr pctlss=pctlss n=n;
histogram / normal (noprint) href=&amp;amp;spel &amp;amp;speh nolegend;
inset n cpk mean cpl std pctgtr cp pctlss / position=bm height=2 format=9.4;
run;


ods html close;

&lt;/PRE&gt;
&lt;P&gt;Thank you so much in advance,&lt;/P&gt;
&lt;P&gt;Prad&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Dec 2021 22:05:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-the-names-of-the-file-Proc-Capability/m-p/784024#M250117</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-03T22:05:55Z</dc:date>
    </item>
  </channel>
</rss>

