<?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: Cannot get listing output using StatRep package in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Cannot-get-listing-output-using-StatRep-package/m-p/367763#M18826</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;It looks like this is problem of file paths, not with StatRep itself.&lt;/P&gt;
&lt;P&gt;The StatRep-generated SAS program needs to write the output files to the disk, but it looks like there is&amp;nbsp;a mismatch between server and client. &amp;nbsp;That is, it looks like the %write macro is looking for, but cannot find, the path to the 'lst' directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EG submits the code to the SAS server and the SAS server executes the code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, it would be the SAS session that is unable to write the file:&lt;/P&gt;
&lt;P&gt;the server cannot access&amp;nbsp;&lt;SPAN&gt;//fi.se/dfs/Users_W7/fipe/Desktop/Latex/lst which I'm guessing is your local machine.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any paths in your SAS code are relative to the server, not EG (the client).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if you were writing to “c:\temp”, that is “c:\temp” on the server, not the client.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure but hopefully this will help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Physical-file-does-not-exist/td-p/109855" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Physical-file-does-not-exist/td-p/109855&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or the section "REFERENCE AN EXTERNAL FILE IN YOUR PROGRAM" &amp;nbsp;in this SGF paper:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings13/415-2013.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings13/415-2013.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;--Tim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2017 15:35:10 GMT</pubDate>
    <dc:creator>TimArnold</dc:creator>
    <dc:date>2017-06-16T15:35:10Z</dc:date>
    <item>
      <title>Cannot get listing output using StatRep package</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Cannot-get-listing-output-using-StatRep-package/m-p/367655#M18823</link>
      <description>&lt;DIV&gt;&lt;P&gt;I want to use the StatRep package at work but&amp;nbsp;have some problems when doing so.&amp;nbsp;The neccesary SAS file&amp;nbsp;is created&amp;nbsp;after compiling the tex file the first time. When running the SAS code however I can´t&amp;nbsp;produce the&amp;nbsp;listing files. I get a&amp;nbsp;error message that&amp;nbsp;states&amp;nbsp;"the physical file does not exist" and then there´s a reference to my directory which is the correct one. I don´t have the same problem with the .png file, the graphics is compiled nicely in the final PDF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what to do about the .lst file problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SAS EG version 7.1 and TeXworks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Jun 2017 10:14:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Cannot-get-listing-output-using-StatRep-package/m-p/367655#M18823</guid>
      <dc:creator>phileas85</dc:creator>
      <dc:date>2017-06-16T10:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get listing output using StatRep package</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Cannot-get-listing-output-using-StatRep-package/m-p/367709#M18824</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It sounds like you are very close to success since the graphics are present. First, I would make sure there are no errors in your program by reviewing the SAS log output. If there are no errors, you should see a message indicating where the listing file was created.&lt;/P&gt;
&lt;P&gt;What does your \Listing tag look like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that doesn't lead you to an answer, maybe you could attach your LaTeX file to a reply and I'll see what's going on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;--Tim Arnold&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 13:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Cannot-get-listing-output-using-StatRep-package/m-p/367709#M18824</guid>
      <dc:creator>TimArnold</dc:creator>
      <dc:date>2017-06-16T13:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get listing output using StatRep package</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Cannot-get-listing-output-using-StatRep-package/m-p/367723#M18825</link>
      <description>&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get a error message in the SAS log that looks as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%write(rega,store=class,type=listing)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Processing document class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: New page for \Reg#1\MODEL1#1\Fit#1\Weight#1\NObs#1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Writing Listing file :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//fi.se/dfs/Users_W7/fipe/Desktop/Latex/lst/rega.lst&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Physical file does not exist,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;\\fi.se\dfs\Users_W7\fipe\Desktop\Latex\lst\rega.lst.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 The REG Procedure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;71&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kl=1 fn=//fi.se/dfs/Users_W7/fipe/Desktop/Latex/lst/rega.lst&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;line=The REG Procedure page=0 l=. _ERROR_=1 _N_=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Objects Type Status Group&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reg.MODEL1.Fit.Weight.NObs Table .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reg.MODEL1.Fit.Weight.ANOVA Table .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reg.MODEL1.Fit.Weight.FitStatistics Table .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reg.MODEL1.Fit.Weight.ParameterEstimates Table .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reg.MODEL1.ObswiseStats.Weight.DiagnosticPlots. Graph .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DiagnosticsPanel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reg.MODEL1.ObswiseStats.Weight.ResidualPlots. Graph .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ResidualPlot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Macro write ended abnormally.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My listing&amp;nbsp;tag in Latex is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;\Listing[store=class,&lt;/P&gt;&lt;P&gt;caption={Regression Analysis}]{rega}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 13:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Cannot-get-listing-output-using-StatRep-package/m-p/367723#M18825</guid>
      <dc:creator>phileas85</dc:creator>
      <dc:date>2017-06-16T13:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get listing output using StatRep package</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Cannot-get-listing-output-using-StatRep-package/m-p/367763#M18826</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;It looks like this is problem of file paths, not with StatRep itself.&lt;/P&gt;
&lt;P&gt;The StatRep-generated SAS program needs to write the output files to the disk, but it looks like there is&amp;nbsp;a mismatch between server and client. &amp;nbsp;That is, it looks like the %write macro is looking for, but cannot find, the path to the 'lst' directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EG submits the code to the SAS server and the SAS server executes the code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, it would be the SAS session that is unable to write the file:&lt;/P&gt;
&lt;P&gt;the server cannot access&amp;nbsp;&lt;SPAN&gt;//fi.se/dfs/Users_W7/fipe/Desktop/Latex/lst which I'm guessing is your local machine.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any paths in your SAS code are relative to the server, not EG (the client).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if you were writing to “c:\temp”, that is “c:\temp” on the server, not the client.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure but hopefully this will help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Physical-file-does-not-exist/td-p/109855" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Physical-file-does-not-exist/td-p/109855&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or the section "REFERENCE AN EXTERNAL FILE IN YOUR PROGRAM" &amp;nbsp;in this SGF paper:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings13/415-2013.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings13/415-2013.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;--Tim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 15:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Cannot-get-listing-output-using-StatRep-package/m-p/367763#M18826</guid>
      <dc:creator>TimArnold</dc:creator>
      <dc:date>2017-06-16T15:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot get listing output using StatRep package</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Cannot-get-listing-output-using-StatRep-package/m-p/368318#M18838</link>
      <description>&lt;P&gt;Thanks for the reply. Haven´t found an immediate solution to my problem, I´m restrained by other tasks at work as well. However, I´m going to attend a SAS user forum in Stockholm tomorrow and I´m&amp;nbsp;hoping that I can get hold of a expert there who will be able to guide me a bit. I think it´s crutial to our organization that we can get the connection between Latex and SAS EG to work. Our analyzes needs to be&amp;nbsp;presented a clinical&amp;nbsp;and reproducible way.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 13:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Cannot-get-listing-output-using-StatRep-package/m-p/368318#M18838</guid>
      <dc:creator>phileas85</dc:creator>
      <dc:date>2017-06-19T13:32:41Z</dc:date>
    </item>
  </channel>
</rss>

