<?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 Can I Exclude Upper&amp;amp;Lower Useless Spaces from Graphical Output when Using PROC GSLIDE (S in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557338#M18115</link>
    <description>&lt;P&gt;Hi ,there:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When submitting "GOPTIONS gunit=cells hsize=6.3in vsize=5.3in" with my other code,&lt;/P&gt;&lt;P&gt;Figure's upper space looks like good, but lower space remains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make VSIZE smaller, but result was not good.&lt;/P&gt;&lt;P&gt;Mmm&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2019 00:37:47 GMT</pubDate>
    <dc:creator>KentaMURANAKA</dc:creator>
    <dc:date>2019-05-09T00:37:47Z</dc:date>
    <item>
      <title>How Can I Exclude Upper&amp;Lower Useless Spaces from Graphical Output when Using PROC GSLIDE (SAS9.3)?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557051#M18102</link>
      <description>&lt;P&gt;Hi, there:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to generate flow chart by using PROC GSLIDE (SAS9.3),&lt;/P&gt;&lt;P&gt;but my following code generates spaces on figure's upper &amp;amp; lower space, which I do not want.&lt;/P&gt;&lt;P&gt;I have no idea about how to exclude them. Please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options
    nonumber
    nodate
    noxwait
    noxsync
    nocenter
    mprint
    ;
options
    nodate
    papersize="A4"
    orientation=portrait
    topmargin=3.0cm bottommargin=3.0cm leftmargin=2.5cm rightmargin=2.5cm
    ;
/*goptions gunit=cells hsize=6.3in vsize=5.3in;*/


%annomac;


%macro add_element(x=, y=, width=, height=, text=);
    %rect(&amp;amp;x., &amp;amp;y., &amp;amp;x.+&amp;amp;width., &amp;amp;y.+&amp;amp;height., black, 1, 0.2);
    %let i=1;
    %do %until(%qscan(&amp;amp;text., &amp;amp;i., "|")=);
        %label(&amp;amp;x.+0.5, &amp;amp;y.+&amp;amp;height.-&amp;amp;i.+0.5, "%qscan(&amp;amp;text., &amp;amp;i., "|")", black, 0, 0, 1, Times New Roman, 6);
        %let i=%eval(&amp;amp;i.+1);
    %end;
%mend add_element;


data final;
    length function color style $16. text $60.;
    retain xsys '6' ysis '6' hsys '6' when 'a' line 1 function 'label';

    %add_element(x=5.0, y=36.5, width=30.0, height=1.5, text=%str(   # of Subjects Enrolled));
    %add_element(x=5.0, y=35.0, width=30.0, height=1.5, text=%str(                      XX));

    %add_element(x=5.0, y=28.5, width=30.0, height=1.5, text=%str(        # of Completers));
    %add_element(x=5.0, y=27.0, width=30.0, height=1.5, text=%str(                      XX));

    %add_element(x=40.0, y=27.0, width=35.0, height=3.0, text=%str(     # of Subjects Discontinued|                   From the Study));
    %add_element(x=40.0, y=25.5, width=35.0, height=1.5, text=%str(                            XX));

    %line(19.5, 35.0, 19.5, 30.0, black, 1, 1);
    %line(19.5, 32.5, 57.0, 32.5, black, 1, 1);
    %line(57.0, 32.5, 57.0, 30.0, black, 1, 1);
run;


ods rtf file="XXXXX\test.rtf";***** Please specify Your Own Folder ;
proc gslide annotate=final;
run;
quit;
ods listing close;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ex1.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29297i1EC00E053C826253/image-size/large?v=v2&amp;amp;px=999" role="button" title="ex1.PNG" alt="ex1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ex2.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29298i7EF060CACA88F508/image-size/large?v=v2&amp;amp;px=999" role="button" title="ex2.PNG" alt="ex2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 09:35:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557051#M18102</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-05-08T09:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Exclude Upper&amp;Lower Useless Spaces from Graphical Output when Using PROC GSLIDE (S</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557156#M18110</link>
      <description>&lt;P&gt;Since Goptions remain in effect until you explicitly reset them you may need to address the space you are using.&lt;/P&gt;
&lt;P&gt;You may need to run PROC GOPTIONS to look at the Hsize/Vsize Xmax/Ymax Xpixels/Ypixels settings to see what the current values are then reset one of them to your desired height.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you aware of the %annomac macros?&lt;/P&gt;
&lt;P&gt;It appears that you may be attempting to write one or more macros that do what SAS has supplied macros to accomplish.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't include borders to see which is the actual image created you may also be running into default margins from your program rendering the RTF file which may be adding an inch or more to margins.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 15:18:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557156#M18110</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-08T15:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Exclude Upper&amp;Lower Useless Spaces from Graphical Output when Using PROC GSLIDE (S</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557236#M18112</link>
      <description>&lt;P&gt;Do you want the boxes in the flow chart to be bigger (taller)?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or do you want to outside dimensions of the entire gslide to be smaller (shorter)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 18:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557236#M18112</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2019-05-08T18:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Exclude Upper&amp;Lower Useless Spaces from Graphical Output when Using PROC GSLIDE (S</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557335#M18114</link>
      <description>&lt;P&gt;Hi, Robert-san, Ballardw-san:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I think I want to do the latter.&lt;/P&gt;&lt;P&gt;(I have already known how to bigger boxes in flow chart.)&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 00:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557335#M18114</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-05-09T00:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Exclude Upper&amp;Lower Useless Spaces from Graphical Output when Using PROC GSLIDE (S</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557338#M18115</link>
      <description>&lt;P&gt;Hi ,there:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When submitting "GOPTIONS gunit=cells hsize=6.3in vsize=5.3in" with my other code,&lt;/P&gt;&lt;P&gt;Figure's upper space looks like good, but lower space remains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to make VSIZE smaller, but result was not good.&lt;/P&gt;&lt;P&gt;Mmm&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 00:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557338#M18115</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-05-09T00:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Exclude Upper&amp;Lower Useless Spaces from Graphical Output when Using PROC GSLIDE (S</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557643#M18119</link>
      <description>&lt;P&gt;Hi, Robert-san, ballardw-san, there:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I uploaded more concrete example.&lt;/P&gt;&lt;P&gt;I want to exclude lower space now.&lt;/P&gt;&lt;P&gt;Does someone have more concrete ideas? Please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ex1.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29394i5BB3EC1B230E86C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="ex1.PNG" alt="ex1.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ex2.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29395i2CE893B17800C280/image-size/large?v=v2&amp;amp;px=999" role="button" title="ex2.PNG" alt="ex2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 23:13:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/557643#M18119</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-05-09T23:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Exclude Upper&amp;Lower Useless Spaces from Graphical Output when Using PROC GSLIDE (S</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/558170#M18128</link>
      <description>&lt;P&gt;Hi, ballardw-san, Robert-san, there:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for advice.&lt;/P&gt;&lt;P&gt;I overviewed PROC GOPTIONS reference, and I noticed that my code generates graph by using X &amp;amp; Y coordinates from lower left orgin point, which I had fogot.&lt;/P&gt;&lt;P&gt;I changed Y values in %ADD_ELEMENT, and accomplished my objective.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 02:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/558170#M18128</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-05-13T02:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Exclude Upper&amp;Lower Useless Spaces from Graphical Output when Using PROC GSLIDE (S</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/558173#M18129</link>
      <description>&lt;P&gt;Thnak you!&lt;/P&gt;&lt;P&gt;FYI, I uploaded my changed code &amp;amp; output&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ex1.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29437i25F58B8BE7173161/image-size/large?v=v2&amp;amp;px=999" role="button" title="ex1.PNG" alt="ex1.PNG" /&gt;&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;(changed to Y minus 20)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data final;
    length function color style $16. text $60.;
    retain xsys '6' ysis '6' hsys '6' when 'a' line 1 function 'label';

    %add_element(x=5.0, y=16.5, width=30.0, height=1.5, text=%str(   # of Subjects Enrolled));
    %add_element(x=5.0, y=15.0, width=30.0, height=1.5, text=%str(                      XX));

    %add_element(x=5.0, y=8.5, width=30.0, height=1.5, text=%str(        # of Completers));
    %add_element(x=5.0, y=7.0, width=30.0, height=1.5, text=%str(                      XX));

    %add_element(x=40.0, y=7.0, width=35.0, height=3.0, text=%str(     # of Subjects Discontinued|                   From the Study));
    %add_element(x=40.0, y=5.5, width=35.0, height=1.5, text=%str(                            XX));

    %line(19.5, 15.0, 19.5, 10.0, black, 1, 1);
    %line(19.5, 12.5, 57.0, 12.5, black, 1, 1);
    %line(57.0, 12.5, 57.0, 10.0, black, 1, 1);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 May 2019 02:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/558173#M18129</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-05-13T02:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Exclude Upper&amp;Lower Useless Spaces from Graphical Output when Using PROC GSLIDE (S</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/558270#M18131</link>
      <description>&lt;P&gt;I'm not really familiar with the macros you're using to place the text &amp;amp; draw the boxes, but it looks like they're probably using x-coordinates on a 0-100 scale. Therefore I think you'll need to make your graph dimensions smaller in the y-direction (I would typically use "goptions ypixels=" since I am typically creating png output), and then come up with new hard-coded y-coordinates. Sorry this is a lot of work for you, but you're doing a totally custom graph, by "drawing" boxes and placing text in them ... therefore no changes are going to be easy!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 12:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/558270#M18131</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2019-05-13T12:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Exclude Upper&amp;Lower Useless Spaces from Graphical Output when Using PROC GSLIDE (S</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/558505#M18142</link>
      <description>&lt;P&gt;Hi, Robert-san:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;Like you said, I changed Y-axis scale &amp;amp; output position,&amp;nbsp;and resolved above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same as you,&amp;nbsp;I am not familiar with annotate macro, and I referred to attached document. FYI&lt;/P&gt;&lt;P&gt;Anyway, Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 23:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Exclude-Upper-amp-Lower-Useless-Spaces-from-Graphical/m-p/558505#M18142</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2019-05-13T23:55:16Z</dc:date>
    </item>
  </channel>
</rss>

