<?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: Report with variable left border-margin in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Report-with-variable-left-border-margin/m-p/498943#M132689</link>
    <description>&lt;P&gt;Here is a similar post:&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/changing-margins-in-pdf-output/td-p/202386" target="_self"&gt;&amp;nbsp;Changing margins in PDF output&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its code can be modified for your purpose by replacing the values of PAGENO= and LEFTMARGIN= with macro variables and adding little macro "driver" programs that would instruct different treatment for odd and even pages [1].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro leftmargin(&amp;amp;PAGENO, &amp;amp;LMAR);&lt;BR /&gt;
options orientation=landscape nodate pageno=&amp;amp;PAGENO leftmargin=&amp;amp;LMAR rightmargin=.25in;
ods pdf file='c:\temp\carss.pdf';
proc report data=sashelp.cars(obs=30) nowd;
title '1) take all defaults';
run;&lt;BR /&gt;&lt;BR /&gt;%mend;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;/*&lt;BR /&gt;Following are the driver macros for odd&lt;BR /&gt;and even pages, respectively&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro lmar_odds; &lt;BR /&gt;
%DO i = 1 %TO lastpage %BY 2;
%leftmargin( &amp;amp;i, 3cm )
%END;&lt;BR /&gt;
%mend;

%macro lmar_evens; &lt;BR /&gt;
%DO i = 2 %TO lastpage %BY 2;
%leftmargin( &amp;amp;i, 4cm )
%END;&lt;BR /&gt;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Calling the macros */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%lmar_odds&lt;BR /&gt;
%lmar_evens

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Reference&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp; &amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#p0ri72c3ud2fdtn1qzs2q9vvdiwk.htm&amp;nbsp;" target="_self"&gt;%DO, Iterative Statement&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Sep 2018 13:03:33 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2018-09-26T13:03:33Z</dc:date>
    <item>
      <title>Report with variable left border-margin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Report-with-variable-left-border-margin/m-p/488658#M127395</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We have the need to produce a large pdf-report (Proc report) with variable left-border-margins prepared for physical book-printing. All odd pages should be produced with left border-margin 3cm, all even pages with margin 4cm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this somehow possible? Any ideas, suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karl&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 18:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Report-with-variable-left-border-margin/m-p/488658#M127395</guid>
      <dc:creator>Karlb</dc:creator>
      <dc:date>2018-08-21T18:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Report with variable left border-margin</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Report-with-variable-left-border-margin/m-p/498943#M132689</link>
      <description>&lt;P&gt;Here is a similar post:&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/changing-margins-in-pdf-output/td-p/202386" target="_self"&gt;&amp;nbsp;Changing margins in PDF output&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its code can be modified for your purpose by replacing the values of PAGENO= and LEFTMARGIN= with macro variables and adding little macro "driver" programs that would instruct different treatment for odd and even pages [1].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro leftmargin(&amp;amp;PAGENO, &amp;amp;LMAR);&lt;BR /&gt;
options orientation=landscape nodate pageno=&amp;amp;PAGENO leftmargin=&amp;amp;LMAR rightmargin=.25in;
ods pdf file='c:\temp\carss.pdf';
proc report data=sashelp.cars(obs=30) nowd;
title '1) take all defaults';
run;&lt;BR /&gt;&lt;BR /&gt;%mend;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;/*&lt;BR /&gt;Following are the driver macros for odd&lt;BR /&gt;and even pages, respectively&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro lmar_odds; &lt;BR /&gt;
%DO i = 1 %TO lastpage %BY 2;
%leftmargin( &amp;amp;i, 3cm )
%END;&lt;BR /&gt;
%mend;

%macro lmar_evens; &lt;BR /&gt;
%DO i = 2 %TO lastpage %BY 2;
%leftmargin( &amp;amp;i, 4cm )
%END;&lt;BR /&gt;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Calling the macros */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%lmar_odds&lt;BR /&gt;
%lmar_evens

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Reference&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp; &amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#p0ri72c3ud2fdtn1qzs2q9vvdiwk.htm&amp;nbsp;" target="_self"&gt;%DO, Iterative Statement&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 13:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Report-with-variable-left-border-margin/m-p/498943#M132689</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-09-26T13:03:33Z</dc:date>
    </item>
  </channel>
</rss>

