<?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 Setting directories in tex-files for use with statrep in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Setting-directories-in-tex-files-for-use-with-statrep/m-p/336956#M18052</link>
    <description>&lt;DIV dir="auto"&gt;I have tried to find an easy way to integrate SAS code and output in my latex documents. I have tried to install and use the Statrep package from &lt;A href="http://support.sas.com/rnd/app/papers/statrep.html" target="_blank"&gt;http://support.sas.com/rnd/&lt;WBR /&gt;app/papers/statrep.html&lt;/A&gt;, but can't get it to work properly. I thus have a few questions. Several attempts have left me quite frustrated, and any help will be greatly appreciated.&lt;BR /&gt;
&lt;DIV dir="auto"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I believe the problem has to do with sending output to and retrieving it from correct folders. I need all files to be on a network drive (\\fil-tjener\) separate from the SAS-server (d:\). The SAS-server is not accessible from file explorers or any other programs besides SAS/EG. &lt;BR /&gt;&lt;BR /&gt;I would like to use these folders:&lt;BR /&gt;Tex-files: \\fil-tjener\Texfile&lt;BR /&gt;SAS-output: \\fil-tjener\Texfile\SASoutpu&lt;WBR /&gt;t&lt;/DIV&gt;
&lt;DIV&gt;SAS-macros and templates: \\fil-tjener\statrep&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&lt;BR /&gt;I tried the quickstart.tex-file included in the package. It compiles (pdflatex) just fine the first time. quickstart_SR.sas and quickstart_SR_preamble.sas is generated as they should be, in \\fil-tjener\Texfile.&lt;BR /&gt;&lt;BR /&gt;quickstart_SR.sas will not run as is, but if I change &lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "./quickstart_SR_preamble.sas" /nosource;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;to &lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "\\fil-tjener\Texfile\quickstart_SR_preamble.sas" /nosource;&lt;/CODE&gt;&lt;/PRE&gt;
&amp;nbsp;it finds the preamblefile and runs it.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Question 1: How do I modify the tex-file so that I don't need to manually change the SAS-file to get SAS to look for the preamble file in my designated folder?&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;It does produce an error because it is looking for the SAS macro file in the wrong directory. If I change the %include-statemtent in the preamble-file to&amp;nbsp;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "\\fil-tjener\statrep\statrep_macros.sas" /nosource;&lt;/CODE&gt;&lt;/PRE&gt;
it does find the file containing the macros. quickstart_SR.sas will now run without errors.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Question 2: How do I modify the tex-file to have it look for statrep_macros.sas in my chosen directory?&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;While it seems runs just fine, the output is nowhere to be found. Thus figures are still missing on the second tex-compilation. The log has lines like NOTE: Writing Graph file: ./png/tstb.png&lt;/DIV&gt;
&lt;DIV&gt;It seems output is sent to to the work directory on the SAS server instead of my chosen folder on the network drive.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;
&lt;DIV&gt;Question 3: How do I modify the tex-file so that the SAS-ouput is sent to \\fil-tjener\Texfile\SASoutpu&lt;WBR /&gt;t?&lt;BR /&gt;&lt;BR /&gt;Question 4: How do I modify the tex-file so that the SAS-ouput is retrieved from&amp;nbsp; \\fil-tjener\Texfile\SASoutpu&lt;WBR /&gt;t on the second pdflatex compilation?&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Operating system, SAS-server: WX64_SV&lt;/DIV&gt;
&lt;DIV&gt;Operating system, my computer: Windows 7 Enterprise.&lt;/DIV&gt;
&lt;DIV&gt;SAS-version: 9.4_M2&lt;/DIV&gt;
&lt;DIV&gt;Latex: Texmaker/Miktex&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 01 Mar 2017 12:27:11 GMT</pubDate>
    <dc:creator>urbanix_Oslo</dc:creator>
    <dc:date>2017-03-01T12:27:11Z</dc:date>
    <item>
      <title>Setting directories in tex-files for use with statrep</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Setting-directories-in-tex-files-for-use-with-statrep/m-p/336956#M18052</link>
      <description>&lt;DIV dir="auto"&gt;I have tried to find an easy way to integrate SAS code and output in my latex documents. I have tried to install and use the Statrep package from &lt;A href="http://support.sas.com/rnd/app/papers/statrep.html" target="_blank"&gt;http://support.sas.com/rnd/&lt;WBR /&gt;app/papers/statrep.html&lt;/A&gt;, but can't get it to work properly. I thus have a few questions. Several attempts have left me quite frustrated, and any help will be greatly appreciated.&lt;BR /&gt;
&lt;DIV dir="auto"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I believe the problem has to do with sending output to and retrieving it from correct folders. I need all files to be on a network drive (\\fil-tjener\) separate from the SAS-server (d:\). The SAS-server is not accessible from file explorers or any other programs besides SAS/EG. &lt;BR /&gt;&lt;BR /&gt;I would like to use these folders:&lt;BR /&gt;Tex-files: \\fil-tjener\Texfile&lt;BR /&gt;SAS-output: \\fil-tjener\Texfile\SASoutpu&lt;WBR /&gt;t&lt;/DIV&gt;
&lt;DIV&gt;SAS-macros and templates: \\fil-tjener\statrep&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&lt;BR /&gt;I tried the quickstart.tex-file included in the package. It compiles (pdflatex) just fine the first time. quickstart_SR.sas and quickstart_SR_preamble.sas is generated as they should be, in \\fil-tjener\Texfile.&lt;BR /&gt;&lt;BR /&gt;quickstart_SR.sas will not run as is, but if I change &lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "./quickstart_SR_preamble.sas" /nosource;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;DIV&gt;to &lt;BR /&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "\\fil-tjener\Texfile\quickstart_SR_preamble.sas" /nosource;&lt;/CODE&gt;&lt;/PRE&gt;
&amp;nbsp;it finds the preamblefile and runs it.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Question 1: How do I modify the tex-file so that I don't need to manually change the SAS-file to get SAS to look for the preamble file in my designated folder?&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;It does produce an error because it is looking for the SAS macro file in the wrong directory. If I change the %include-statemtent in the preamble-file to&amp;nbsp;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "\\fil-tjener\statrep\statrep_macros.sas" /nosource;&lt;/CODE&gt;&lt;/PRE&gt;
it does find the file containing the macros. quickstart_SR.sas will now run without errors.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Question 2: How do I modify the tex-file to have it look for statrep_macros.sas in my chosen directory?&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;While it seems runs just fine, the output is nowhere to be found. Thus figures are still missing on the second tex-compilation. The log has lines like NOTE: Writing Graph file: ./png/tstb.png&lt;/DIV&gt;
&lt;DIV&gt;It seems output is sent to to the work directory on the SAS server instead of my chosen folder on the network drive.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;
&lt;DIV&gt;Question 3: How do I modify the tex-file so that the SAS-ouput is sent to \\fil-tjener\Texfile\SASoutpu&lt;WBR /&gt;t?&lt;BR /&gt;&lt;BR /&gt;Question 4: How do I modify the tex-file so that the SAS-ouput is retrieved from&amp;nbsp; \\fil-tjener\Texfile\SASoutpu&lt;WBR /&gt;t on the second pdflatex compilation?&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Operating system, SAS-server: WX64_SV&lt;/DIV&gt;
&lt;DIV&gt;Operating system, my computer: Windows 7 Enterprise.&lt;/DIV&gt;
&lt;DIV&gt;SAS-version: 9.4_M2&lt;/DIV&gt;
&lt;DIV&gt;Latex: Texmaker/Miktex&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Mar 2017 12:27:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Setting-directories-in-tex-files-for-use-with-statrep/m-p/336956#M18052</guid>
      <dc:creator>urbanix_Oslo</dc:creator>
      <dc:date>2017-03-01T12:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Setting directories in tex-files for use with statrep</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Setting-directories-in-tex-files-for-use-with-statrep/m-p/337045#M18053</link>
      <description>&lt;P&gt;Never mind, I've got it working now. It's funny how some times phrasing a question helps clarify the issue enough for one to find the answer by oneself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had to include the following in the preamble of the tex-file:&lt;/P&gt;
&lt;PRE&gt;\def\SRrootdir{//fil-tjener/texfile} 
\def\SRmacropath{//fil-tjener/statrep/statrep_macros.sas}
&lt;/PRE&gt;
&lt;P&gt;(note the slashes)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 16:06:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Setting-directories-in-tex-files-for-use-with-statrep/m-p/337045#M18053</guid>
      <dc:creator>urbanix_Oslo</dc:creator>
      <dc:date>2017-03-01T16:06:51Z</dc:date>
    </item>
  </channel>
</rss>

