<?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: Spacing and Formatting in Proc Report with ODS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Spacing-and-Formatting-in-Proc-Report-with-ODS/m-p/62197#M7352</link>
    <description>Hi:&lt;BR /&gt;
  Do you mean you want a space BEFORE or AFTER the text string(s):&lt;BR /&gt;
[pre]&lt;BR /&gt;
Who is taking money out of your pocket? ^n Competitive Retail Store Spending(Top 5 locations)&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                                           &lt;BR /&gt;
(Because I would expect that you'd see this:&lt;BR /&gt;
image&lt;BR /&gt;
Who is taking money...&lt;BR /&gt;
beginning of proc report table&lt;BR /&gt;
at the top of your page. If I understand you correctly, you want the extra space UNDER the image???)&lt;BR /&gt;
                                                     &lt;BR /&gt;
I see that you are using ODS ESCAPECHAR with ^n for a line feed. You might try a title with a "non-breaking" space using ODS Escapechar  (escapechar+underscore). For example, if you wanted the spaces AFTER the image and BEFORE the "Who is taking money..." line:&lt;BR /&gt;
[pre]&lt;BR /&gt;
title '^S={just=center preimage="C:\PC_SAS\ Logo For Top Of Report.JPG"}';&lt;BR /&gt;
title2 '^S={asis=on}^_ ^n ^_';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                                                                        &lt;BR /&gt;
Which makes title2 a non-breaking space, a line feed and another non-breaking space. The ASIS=ON tells ODS to respect the leading and trailing spaces -- otherwise, there's a tendency for blank lines to be ignored. I see that you are using ODS PDF STARTPAGE=NEVER. There's no need for a separate statement for that. You could just as easily have done this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf ods pdf file='c:\PC_SAS\Test Page 3 1.29.10.pdf' style=CustPge notoc startpage=no;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                     &lt;BR /&gt;
(STARTPAGE=NEVER only has to do with the suppression of page breaks before SAS/GRAPH procedures and I don't see any SAS/GRAPH code in your example. STARTPAGE=NO should work OK for you.)&lt;BR /&gt;
                        &lt;BR /&gt;
The only other thing you could do instead of multiple ODS PDF TEXT= lines would be to have 1 text with a multiple line feed ESCAPECHAR control string (such as ^9n in the code below):&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf text= '^S={asis=on}^_ ^9n ';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                            &lt;BR /&gt;
...but, if what you have (multiple ODS PDF TEXT= ' '; statements) is working for you, then there's nothing wrong with that.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 25 Feb 2010 22:14:42 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-02-25T22:14:42Z</dc:date>
    <item>
      <title>Spacing and Formatting in Proc Report with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Spacing-and-Formatting-in-Proc-Report-with-ODS/m-p/62196#M7351</link>
      <description>I want to put a space between the proc report and the title statement that contains a JPG. I'm not having any luck. Is there a better way to do it? Also is there a better way to also put spaces inbetween the twp proc reports? Code is below....&lt;BR /&gt;
&lt;BR /&gt;
options nodate;&lt;BR /&gt;
ods noptitle;&lt;BR /&gt;
ods pdf startpage=never;&lt;BR /&gt;
ods pdf file='c:\PC_SAS\Test Page 3 1.29.10.pdf' style=CustPge notoc;&lt;BR /&gt;
title '^S={just=center preimage="C:\PC_SAS\ Logo For Top Of Report.JPG"}';&lt;BR /&gt;
&lt;BR /&gt;
ods pdf text= '^S={just=center font=("Times Roman",13PT,Bold )}Who is taking money out of your pocket? ^n Competitive Retail Store Spending(Top 5 locations) ';&lt;BR /&gt;
&lt;BR /&gt;
proc report data=projects.comp_ret_store_spend_top_5 nowd;&lt;BR /&gt;
where dealer_number='0018';&lt;BR /&gt;
/*title1 "Who's taking money out of your pocket? ^n Competitive Retail Store Spending(Top 5 locations)";*/&lt;BR /&gt;
column description cnt amt;&lt;BR /&gt;
define description/ display format=$80.;&lt;BR /&gt;
define amt/ display format=dollar6.;&lt;BR /&gt;
label description = "Competitor Name"&lt;BR /&gt;
Cnt = "Transactions"&lt;BR /&gt;
AMT = "Amount" ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf text=' ';&lt;BR /&gt;
ods pdf text=' ';&lt;BR /&gt;
ods pdf text=' ';&lt;BR /&gt;
ods pdf text=' ';&lt;BR /&gt;
ods pdf text=' ';&lt;BR /&gt;
ods pdf text=' ';&lt;BR /&gt;
ods pdf text=' ';&lt;BR /&gt;
ods pdf text=' ';&lt;BR /&gt;
ods pdf text=' ';&lt;BR /&gt;
ods pdf text='^S={just=center font=("Times Roman",13PT,Bold )}Where are your top customers using their Cards? ^n (Top 5 other categories) ';&lt;BR /&gt;
proc report data=projects.top_5_other_cat nowd;&lt;BR /&gt;
where dlr_no='0018';&lt;BR /&gt;
column sic_class cnt amt;&lt;BR /&gt;
define sic_class/ display format=$80.;&lt;BR /&gt;
define amt/ display format=dollar10.;&lt;BR /&gt;
label sic_class = "Category"&lt;BR /&gt;
Cnt = "Transactions"&lt;BR /&gt;
AMT = "Amount" ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf close;</description>
      <pubDate>Thu, 25 Feb 2010 21:39:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Spacing-and-Formatting-in-Proc-Report-with-ODS/m-p/62196#M7351</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-25T21:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Spacing and Formatting in Proc Report with ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Spacing-and-Formatting-in-Proc-Report-with-ODS/m-p/62197#M7352</link>
      <description>Hi:&lt;BR /&gt;
  Do you mean you want a space BEFORE or AFTER the text string(s):&lt;BR /&gt;
[pre]&lt;BR /&gt;
Who is taking money out of your pocket? ^n Competitive Retail Store Spending(Top 5 locations)&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                                           &lt;BR /&gt;
(Because I would expect that you'd see this:&lt;BR /&gt;
image&lt;BR /&gt;
Who is taking money...&lt;BR /&gt;
beginning of proc report table&lt;BR /&gt;
at the top of your page. If I understand you correctly, you want the extra space UNDER the image???)&lt;BR /&gt;
                                                     &lt;BR /&gt;
I see that you are using ODS ESCAPECHAR with ^n for a line feed. You might try a title with a "non-breaking" space using ODS Escapechar  (escapechar+underscore). For example, if you wanted the spaces AFTER the image and BEFORE the "Who is taking money..." line:&lt;BR /&gt;
[pre]&lt;BR /&gt;
title '^S={just=center preimage="C:\PC_SAS\ Logo For Top Of Report.JPG"}';&lt;BR /&gt;
title2 '^S={asis=on}^_ ^n ^_';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                                                                        &lt;BR /&gt;
Which makes title2 a non-breaking space, a line feed and another non-breaking space. The ASIS=ON tells ODS to respect the leading and trailing spaces -- otherwise, there's a tendency for blank lines to be ignored. I see that you are using ODS PDF STARTPAGE=NEVER. There's no need for a separate statement for that. You could just as easily have done this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf ods pdf file='c:\PC_SAS\Test Page 3 1.29.10.pdf' style=CustPge notoc startpage=no;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                     &lt;BR /&gt;
(STARTPAGE=NEVER only has to do with the suppression of page breaks before SAS/GRAPH procedures and I don't see any SAS/GRAPH code in your example. STARTPAGE=NO should work OK for you.)&lt;BR /&gt;
                        &lt;BR /&gt;
The only other thing you could do instead of multiple ODS PDF TEXT= lines would be to have 1 text with a multiple line feed ESCAPECHAR control string (such as ^9n in the code below):&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf text= '^S={asis=on}^_ ^9n ';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                            &lt;BR /&gt;
...but, if what you have (multiple ODS PDF TEXT= ' '; statements) is working for you, then there's nothing wrong with that.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 25 Feb 2010 22:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Spacing-and-Formatting-in-Proc-Report-with-ODS/m-p/62197#M7352</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-02-25T22:14:42Z</dc:date>
    </item>
  </channel>
</rss>

