<?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 SAS to LaTeX - longtable is too wide in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-to-LaTeX-longtable-is-too-wide/m-p/269063#M15826</link>
    <description>&lt;P&gt;Hello SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;clear all;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc import &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;datafile='C:\Users\Shaft\Documents\France_2015_2016\M2_ETE\Master_Thesis\matthes.csv'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;out=work.matthes&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;dbms=csv&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;replace;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;getnames=yes;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;datarow=2;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;data matthes2;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;set matthes;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;date_num=datepart(date);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;format date_part yyq6.;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;date_char = put(date_num, yyq6.);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods tagsets.colorlatex file="C:\Users\Shaft\Documents\France_2015_2016\M2_ETE\Master_Thesis\simps1.tex" stylesheet="sas.sty"(url="sas")&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;title = "Fishers Z: Interest Rate and Output Gap (After Volker)";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc corr data=matthes2 fisher(rho0=.99) fisher(type=upper);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;where date_char ge '1979Q4';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;var i y;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods tagsets.colorlatex close;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get a Tex file output that looks like this when compiled:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3075iD8CE6D083FEB1072/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sasexample.png" title="sasexample.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't get any errors when I copile in&amp;nbsp;Texmaker, so I'm tempted to think this is a SAS question rather than a LaTeX one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips? I'm very open to proposal to drastically change my code. I'm very new to this. Just trying to get basic tables to go into LaTeX from SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
    <pubDate>Sun, 08 May 2016 16:08:37 GMT</pubDate>
    <dc:creator>JohnRivers10</dc:creator>
    <dc:date>2016-05-08T16:08:37Z</dc:date>
    <item>
      <title>SAS to LaTeX - longtable is too wide</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-to-LaTeX-longtable-is-too-wide/m-p/269063#M15826</link>
      <description>&lt;P&gt;Hello SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;clear all;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc import &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;datafile='C:\Users\Shaft\Documents\France_2015_2016\M2_ETE\Master_Thesis\matthes.csv'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;out=work.matthes&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;dbms=csv&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;replace;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;getnames=yes;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;datarow=2;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;data matthes2;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;set matthes;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;date_num=datepart(date);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;format date_part yyq6.;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;date_char = put(date_num, yyq6.);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods tagsets.colorlatex file="C:\Users\Shaft\Documents\France_2015_2016\M2_ETE\Master_Thesis\simps1.tex" stylesheet="sas.sty"(url="sas")&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;title = "Fishers Z: Interest Rate and Output Gap (After Volker)";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc corr data=matthes2 fisher(rho0=.99) fisher(type=upper);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;where date_char ge '1979Q4';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;var i y;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods tagsets.colorlatex close;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get a Tex file output that looks like this when compiled:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/3075iD8CE6D083FEB1072/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="sasexample.png" title="sasexample.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't get any errors when I copile in&amp;nbsp;Texmaker, so I'm tempted to think this is a SAS question rather than a LaTeX one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tips? I'm very open to proposal to drastically change my code. I'm very new to this. Just trying to get basic tables to go into LaTeX from SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2016 16:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-to-LaTeX-longtable-is-too-wide/m-p/269063#M15826</guid>
      <dc:creator>JohnRivers10</dc:creator>
      <dc:date>2016-05-08T16:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to LaTeX - longtable is too wide</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-to-LaTeX-longtable-is-too-wide/m-p/269065#M15827</link>
      <description>&lt;P&gt;Well the table does appear too wide to fit on the page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can your change the orientation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation=landscape;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 08 May 2016 17:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-to-LaTeX-longtable-is-too-wide/m-p/269065#M15827</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-08T17:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to LaTeX - longtable is too wide</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-to-LaTeX-longtable-is-too-wide/m-p/269072#M15828</link>
      <description>&lt;P&gt;Hey again Reeza -- thanks as always for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even with this, the table is just too big. The one thing I was able to do was to change a few words ("Corr" instead of "Correlation") to make the columns skinnier. I guess I would have thought there would be a&amp;nbsp;different way to do this &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 May 2016 18:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-to-LaTeX-longtable-is-too-wide/m-p/269072#M15828</guid>
      <dc:creator>JohnRivers10</dc:creator>
      <dc:date>2016-05-08T18:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to LaTeX - longtable is too wide</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-to-LaTeX-longtable-is-too-wide/m-p/269123#M15830</link>
      <description>&lt;P&gt;Well, your output from SAS is markup, so its down to the renderer to decide how the output looks. &amp;nbsp;Personally I would always store the objects created by a proc, and then report them out both to keep the data (for validation) but also so you have the full flexibility of proc report to design a nice output - I have never seen a situation where the default output is as I would like.&lt;/P&gt;
&lt;PRE&gt;ods trace on;
proc corr...;
run;
ods trace off;
&lt;/PRE&gt;
&lt;P&gt;You will see in the log all the objects which are created, you can them save these and proc report them:&lt;/P&gt;
&lt;PRE&gt;ods output &amp;lt;objectname&amp;gt;=&amp;lt;datasetname&amp;gt;;

proc corr...;
run;

ods tagsets...
proc report data=&amp;lt;datasetname&amp;gt;...
run;
&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 May 2016 08:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-to-LaTeX-longtable-is-too-wide/m-p/269123#M15830</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-09T08:46:13Z</dc:date>
    </item>
  </channel>
</rss>

