<?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 write ods latex template in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471949#M21117</link>
    <description>That works perfectly! Thank you!</description>
    <pubDate>Thu, 21 Jun 2018 00:13:18 GMT</pubDate>
    <dc:creator>Sasadomo</dc:creator>
    <dc:date>2018-06-21T00:13:18Z</dc:date>
    <item>
      <title>How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471278#M21087</link>
      <description>&lt;P&gt;Based on this document:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings14/2033-2014.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings14/2033-2014.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created the attached result and using the attached code,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="figure.png" style="width: 389px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21256i5BBF6663345B3D01/image-size/large?v=v2&amp;amp;px=999" role="button" title="figure.png" alt="figure.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but I want to produce my own&amp;nbsp;template that creates output as this (tables with multi-rows and partial grids):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="figure.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21257i876AC8E1B03584F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="figure.png" alt="figure.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to achieve this? Or a good source to learn writing the language used in ods template. Much thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 01:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471278#M21087</guid>
      <dc:creator>Sasadomo</dc:creator>
      <dc:date>2018-06-19T01:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471397#M21089</link>
      <description>&lt;P&gt;Are you looking for a formatted report or do you really need latex?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS will output nice clean tables to PDF directly with less work than the ODS template.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Page 9 here illustrates an example of clinical reports.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/forum2008/173-2008.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2008/173-2008.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 15:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471397#M21089</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-19T15:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471533#M21098</link>
      <description>&lt;P&gt;Thanks, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; for the shout out on the paper. I actually mocked up some fake (summarized) data for this question and came up with this using PROC REPORT and ODS RTF:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="for_latex.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21277i4F3095636A3E7786/image-size/large?v=v2&amp;amp;px=999" role="button" title="for_latex.png" alt="for_latex.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I put ODS LATEX statements in the code too, but I don't have an application to render the LaTeX files (and I don't do command lines any more).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Anyway, I agree -- writing a template for a table like this seems unnecessary to me when PROC REPORT can do the heavy lifting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's all the code, fake data and all:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data forlatex;
  length Grp $5 Type $6  Cat $4;
  infile datalines dlm=' ';
  input Type $ Cat $ value Grp $;
datalines;
Market Low -32.83 EWAVG
Market  2  -3.36  EWAVG
Market  3  12.48  EWAVG
Market  4  31.22  EWAVG
Market High 97.89 EWAVG
Micro Low -34.76 EWAVG
Micro  2  -3.60  EWAVG
Micro  3  12.36  EWAVG
Micro  4  31.29  EWAVG
Micro High 104.34 EWAVG
Small Low -29.12 EWAVG
Small  2  -3.22  EWAVG
Small  3  12.56  EWAVG
Small  4  31.31  EWAVG
Small High 91.90 EWAVG
Big Low -25.21 EWAVG
Big  2  -2.90  EWAVG
Big  3  12.60  EWAVG
Big  4  30.93  EWAVG
Big High 80.46 EWAVG
Market Low 15.56 XSTD
Market  2  4.82  XSTD
Market  3  4.51  XSTD
Market  4  6.81  XSTD
Market High 61.57 XSTD
Micro Low 16.00 XSTD
Micro  2  4.81  XSTD
Micro  3  4.49  XSTD
Micro  4  6.81  XSTD
Micro High 65.95 XSTD
Small Low 13.49 XSTD
Small  2  4.84  XSTD
Small  3  4.52  XSTD
Small  4  6.83  XSTD
Small High 53.43 XSTD
Big Low 11.15 XSTD
Big  2  4.77  XSTD
Big  3  4.50  XSTD
Big  4  6.74  XSTD
Big High 41.73 XSTD
;
run;


proc format ;
  value $grpfmt 'EWAVG'='Average of Annual ^{newline 1}EW Average Values^{newline 1} All Stocks'
                'XSTD' = 'Average of Annual Cross-^{newline 1}Section Standard Deviations^{newline 1} All Stocks';
run;
ods escapechar='^';
 
ods rtf file='c:\temp\try_report.rtf' style=journal;
ods latex path='c:\temp' file='try_report.tex' style=journal;
Title 'Show in RTF and LaTeX';
proc report data=forlatex;
  column Type Grp,Cat,value;
  define Type / group order=data ' ';
  define Grp / across order=data ' ' f=$grpfmt.; 
  define Cat / across order=data ' '  
         style(header)={bordertopcolor=black bordertopstyle=solid bordertopwidth=2px};
  define value / analysis ' ';
  compute before / style={just=l fontweight=bold};
    line 'Sorting on Momentum, ^{style[fontstyle=italic]Mom}';
  endcomp;
run;;
ods latex close;
ods rtf close;
title;&lt;/CODE&gt;&lt;/PRE&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;</description>
      <pubDate>Tue, 19 Jun 2018 21:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471533#M21098</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-06-19T21:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471545#M21100</link>
      <description>&lt;P&gt;...And, with a slightly different structure to the input data, you can get the break in the line above the 2 groups:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diff_latex.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21278iB1D001C22A62B074/image-size/large?v=v2&amp;amp;px=999" role="button" title="diff_latex.png" alt="diff_latex.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It just depends on which form of data there is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the alternate data and program:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fakedata;
  length Type $6  Cat $4;
  infile datalines dlm=' ';
  input Type $ Cat $ EWVAL XSVAL  ;
datalines;
Market	Low	-32.83	15.56
Market	2	-3.36	4.82
Market	3	12.48	4.51
Market	4	31.22	6.81
Market	High	97.89	61.57
Micro	Low	-34.76	16
Micro	2	-3.6	4.81
Micro	3	12.36	4.49
Micro	4	31.29	6.81
Micro	High	104.34	65.95
Small	Low	-29.12	13.49
Small	2	-3.22	4.84
Small	3	12.56	4.52
Small	4	31.31	6.83
Small	High	91.9	53.43
Big	Low	-25.21	11.15
Big	2	-2.9	4.77
Big	3	12.6	4.5
Big	4	30.93	6.74
Big	High	80.46	41.73
;
run;
  

ods rtf file='c:\temp\diff_data.rtf' style=journal;
ods latex path='c:\temp' file='diff_data.tex' style=journal;
Title 'Show in RTF and LaTeX';
proc report data=fakedata;
  column Type ('Average of Annual ^{newline 1}EW Average Values^{newline 1} All Stocks' Cat,EWVAL) blank 
              ('Average of Annual Cross-^{newline 1}Section Standard Deviations^{newline 1} All Stocks' Cat,XSVAL);
  define Type / group order=data ' ';
  define Cat / across order=data ' '  
         style(header)={bordertopcolor=black bordertopstyle=solid bordertopwidth=2px};
  define ewval / analysis ' ';
  define blank / computed ' '
         style(header)={bordertopcolor=white bordertopstyle=none bordertopwidth=0px};
  define xsval / analysis ' ';
  compute blank;
    blank = ' ';
  endcomp;
  compute before / style={just=l fontweight=bold};
    line 'Sorting on Momentum, ^{style[fontstyle=italic]Mom}';
  endcomp;
run;;
ods latex close;
ods rtf close;
title;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jun 2018 22:29:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471545#M21100</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-06-19T22:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471567#M21102</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do need article-ready tables from SAS and since the result will include a large number of tables, it is much easier to do this by some script/template.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 00:16:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471567#M21102</guid>
      <dc:creator>Sasadomo</dc:creator>
      <dc:date>2018-06-20T00:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471568#M21103</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202368"&gt;@Sasadomo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do need article-ready tables from SAS and since the result will include a large number of tables, it is much easier to do this by some script/template.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Agreed, but latex is possible but not worth the effort would be my suggestion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS PDF and PROC REPORT is enough. If these are clinical reports search lexjansen.com for lots of example code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 00:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471568#M21103</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-20T00:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471570#M21104</link>
      <description>&lt;P&gt;Hi Cynthia,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank your very much for the detailed solution using Proc Report. This is indeed is a great alternative to directly producing latex tables. Though the .tex produced in this process does not give nice results, the rtf version of the table looks great! But the second version has the table structure but there's no entries on data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you point me to guide that breaks down components in the proc report command? I can't really understand the how the code works exactly now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 00:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471570#M21104</guid>
      <dc:creator>Sasadomo</dc:creator>
      <dc:date>2018-06-20T00:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471572#M21105</link>
      <description>Thank you for the information on the website! I will see if I can find anything useful on this site</description>
      <pubDate>Wed, 20 Jun 2018 01:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471572#M21105</guid>
      <dc:creator>Sasadomo</dc:creator>
      <dc:date>2018-06-20T01:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471577#M21106</link>
      <description>&lt;P&gt;PROC REPORT documentation&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p0bqogcics9o4xn17yvt2qjbgdpi.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p0bqogcics9o4xn17yvt2qjbgdpi.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 02:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471577#M21106</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-20T02:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471579#M21107</link>
      <description>Hi, How odd...somehow, it looks like you might have used the wrong data with one of my programs. Each program was designed to work with the data structure that I used. Did you run my code unchanged using the data intended for each program?&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 20 Jun 2018 02:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471579#M21107</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-06-20T02:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471587#M21108</link>
      <description>Yes, I runned it with everything unchanged. Note that I am using SAS on WRDS</description>
      <pubDate>Wed, 20 Jun 2018 03:50:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471587#M21108</guid>
      <dc:creator>Sasadomo</dc:creator>
      <dc:date>2018-06-20T03:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471594#M21109</link>
      <description>&lt;P&gt;Post the log.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 04:12:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471594#M21109</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-20T04:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471602#M21110</link>
      <description>&lt;P&gt;here's the log&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 SYMBOLGEN:  Macro variable _SASWSTEMP_ resolves to 
             /home/columbia/zz71/.sasstudio/.images/9097d6ba-62ba-4ce8-9a3a-bfd78
             519bad7
 SYMBOLGEN:  Some characters in the above value which were subject to macro 
             quoting have been unquoted for printing.
 SYMBOLGEN:  Macro variable GRAPHINIT resolves to GOPTIONS RESET=ALL 
             GSFNAME=_GSFNAME;
 NOTE: ODS statements in the SAS Studio environment may disable some output 
 features.
 73         
 74         options validvarname=V7 symbolgen mprint mlogicnest spool details;
 75         libname mast '/wrdslin/nyse/sasdata/taqs';
 NOTE: Libref MAST was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /wrdslin/nyse/sasdata/taqs
 76         libname zz02 '/scratch/columbia/zz89';
 NOTE: Libref ZZ02 was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /scratch/columbia/zz89
 77         libname zz '/home/columbia/zz71/zz';
 NOTE: Libref ZZ was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /home/columbia/zz71/zz
 78         
 79         data fakedata;
 80           length Type $6  Cat $4;
 81           infile datalines dlm=' ';
 82           input Type $ Cat $ EWVAL XSVAL  ;
 83         datalines;
 
 NOTE: Invalid data for EWVAL in line 86 1-19.
 NOTE: Invalid data for XSVAL in line 87 1-19.
 RULE:      ----+----1----+----2----+----3----+----4----+----5----+----6----+----
 
 87  CHAR   Market.4.31.22.6.81                                                  
     ZONE   467667030332330323322222222222222222222222222222222222222222222222222
     NUMR   D12B5494931E2296E8100000000000000000000000000000000000000000000000000
        70             
 NOTE: Invalid data errors for file CARDS occurred outside the printed range.
 NOTE: Increase available buffer lines with the INFILE n= option.
 Type=Market Cat=Mark EWVAL=. XSVAL=. _ERROR_=1 _N_=1
 NOTE: Invalid data for EWVAL in line 90 1-17.
 NOTE: Invalid data for XSVAL in line 91 1-18.
 
 91  CHAR   Micro.3.12.36.4.49                                                   
     ZONE   466760303323303233222222222222222222222222222222222222222222222222222
     NUMR   D932F93912E3694E49000000000000000000000000000000000000000000000000000
        70             
 NOTE: Invalid data errors for file CARDS occurred outside the printed range.
 NOTE: Increase available buffer lines with the INFILE n= option.
 Type=Market Cat=Micr EWVAL=. XSVAL=. _ERROR_=1 _N_=2
 NOTE: Invalid data for EWVAL in line 94 1-22.
 NOTE: Invalid data for XSVAL in line 95 1-18.
 
 95  CHAR   Small.2.-3.22.4.84                                                   
     ZONE   566660302323303233222222222222222222222222222222222222222222222222222
     NUMR   3D1CC929D3E2294E84000000000000000000000000000000000000000000000000000
        70             
 NOTE: Invalid data errors for file CARDS occurred outside the printed range.
 NOTE: Increase available buffer lines with the INFILE n= option.
 Type=Micro Cat=Micr EWVAL=. XSVAL=. _ERROR_=1 _N_=3
 NOTE: Invalid data for EWVAL in line 98 1-21.
 NOTE: Invalid data for XSVAL in line 99 1-20.
 
 99  CHAR   Big.Low.-25.21.11.15                                                 
     ZONE   466046702332330332332222222222222222222222222222222222222222222222222
     NUMR   2979CF79D25E21911E150000000000000000000000000000000000000000000000000
        70             
 NOTE: Invalid data errors for file CARDS occurred outside the printed range.
 NOTE: Increase available buffer lines with the INFILE n= option.
 Type=Small Cat=Smal EWVAL=. XSVAL=. _ERROR_=1 _N_=4
 NOTE: Invalid data for EWVAL in line 102 1-16.
 NOTE: Invalid data for XSVAL in line 103 1-20.
 
 103 CHAR   Big.High.80.46.41.73                                                 
     ZONE   466046660332330332332222222222222222222222222222222222222222222222222
     NUMR   29798978980E46941E730000000000000000000000000000000000000000000000000
        70             
 NOTE: Invalid data errors for file CARDS occurred outside the printed range.
 NOTE: Increase available buffer lines with the INFILE n= option.
 Type=Big2 Cat=Big EWVAL=. XSVAL=. _ERROR_=1 _N_=5
 NOTE: SAS went to a new line when INPUT statement reached past the end of a 
       line.
 NOTE: The data set WORK.FAKEDATA has 5 observations and 4 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.01 seconds
       cpu time            0.00 seconds
       
 104        ;
 
 105        run;
 106        
 107        
 108        ods rtf file='/scratch/columbia/zz89/diff_data.rtf' style=journal;
 NOTE: Writing RTF Body file: /scratch/columbia/zz89/diff_data.rtf
 109        ods latex path='/scratch/columbia/zz89' file='diff_data.tex'
 109      ! style=journal;
 NOTE: Writing LATEX Body file: diff_data.tex
 110        Title 'Show in RTF and LaTeX';
 111        proc report data=fakedata;
 112          column Type ('Average of Annual ^{newline 1}EW Average
 112      ! Values^{newline 1} All Stocks' Cat,EWVAL) blank
 113                      ('Average of Annual Cross-^{newline 1}Section Standard
 113      ! Deviations^{newline 1} All Stocks' Cat,XSVAL);
 114          define Type / group order=data ' ';
 115          define Cat / across order=data ' '
 116                 style(header)={bordertopcolor=black bordertopstyle=solid
 116      ! bordertopwidth=2px};
 117          define ewval / analysis ' ';
 118          define blank / computed ' '
 119                 style(header)={bordertopcolor=white bordertopstyle=none
 119      ! bordertopwidth=0px};
 120          define xsval / analysis ' ';
 121          compute blank;
 122            blank = ' ';
 123          endcomp;
 124          compute before / style={just=l fontweight=bold};
 125            line 'Sorting on Momentum, ^{style[fontstyle=italic]Mom}';
 126          endcomp;
 127        run;
 
 127      !     ;
 NOTE: Character values have been converted to numeric 
       values at the places given by: (Line):(Column).
       1:10   
 NOTE: There were 5 observations read from the data set WORK.FAKEDATA.
 NOTE: PROCEDURE REPORT used (Total process time):
       real time           0.11 seconds
       cpu time            0.04 seconds
       
 
 128        ods latex close;
 129        ods rtf close;
 130        title;
 131        
 132        OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 SYMBOLGEN:  Macro variable GRAPHTERM resolves to GOPTIONS NOACCESSIBLE;
 145&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jun 2018 05:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471602#M21110</guid>
      <dc:creator>Sasadomo</dc:creator>
      <dc:date>2018-06-20T05:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471664#M21111</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It looks like the DATA step program to make the fake data never worked right. Here's a comma-separated version of the fake data file for the second example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fakedata;
  length Type $6  Cat $4;
  infile datalines dlm=',' dsd;
  input Type $ Cat $ EWVAL XSVAL  ;
datalines;
Market,Low,-32.83,15.56 
Market,2,-3.36,4.82 
Market,3,12.48,4.51 
Market,4,31.22,6.81 
Market,High,97.89,61.57 
Micro,Low,-34.76,16 
Micro,2,-3.6, 4.81 
Micro,3,12.36,4.49 
Micro,4,31.29,6.81 
Micro,High,104.34,65.95 
Small,Low,-29.12,13.49 
Small,2,-3.22,4.84 
Small,3,12.56,4.52 
Small,4,31.31,6.83 
Small,High,91.9, 53.43
Big,Low,-25.21,11.15 
Big,2,-2.9,4.77 
Big,3,12.6,4.5 
Big,4,30.93,6.74 
Big,High,80.46,41.73
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The rest of the program is the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 12:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471664#M21111</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-06-20T12:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to write ods latex template</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471949#M21117</link>
      <description>That works perfectly! Thank you!</description>
      <pubDate>Thu, 21 Jun 2018 00:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-write-ods-latex-template/m-p/471949#M21117</guid>
      <dc:creator>Sasadomo</dc:creator>
      <dc:date>2018-06-21T00:13:18Z</dc:date>
    </item>
  </channel>
</rss>

