<?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: PROC LASR is trying to write a .lst file - account doesn't have permission. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429559#M106107</link>
    <description>&lt;P&gt;Thanks both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now I'll try the ODS LISTING CLOSE route as the easiest to test. I am still troubled as to why the PROC LASR procedure that has run flawlessly for months has suddenly decided to start writing out .lst files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2018 08:14:55 GMT</pubDate>
    <dc:creator>_Dan_</dc:creator>
    <dc:date>2018-01-22T08:14:55Z</dc:date>
    <item>
      <title>PROC LASR is trying to write a .lst file - account doesn't have permission.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429217#M105999</link>
      <description>&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Around a week or so ago, a macro I use to load data into LASR started exhibiting the behaviour as per the post title. It's trying to put out one of those ".lst" files you'd normally get as part of a PROC SQL that doesn't have the NOPRINT option in place. I don't want the file, and the account that's running doesn't have permission to write under the AppServer directory which is where it's pointing to. Because it doesn't have permission, the whole thing ERRORs out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I've spoken to SAS who have offered an option to completely disable the output:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro disablelisting; 
   /* Disable listing file output */ 
   filename nulpath dummy; 
   proc printto print = nulpath; 
   run; 
%mend; 
%disablelisting; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I don't want to do this just in case someone across the wider business actually needs some sort of output as part of their own procedures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, does PROC LASR have its own explicit option to turn off output routing? Why is it even trying to write this file when there's a good enough log being written to?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Log output for context:&lt;/P&gt;&lt;PRE&gt;MPRINT(MACRONAME):   proc lasr port = xxxxx data = HDFSLIB.DATASETNAME add noclass SIGNER = 
"https:// ... SASLASRAuthorization" ;
MPRINT(MACRONAME):   performance host=
MPRINT(MACRONAME):   " ... " ;
MPRINT(MACRONAME):   run;

NOTE: The LASR procedure is executing in the distributed computing environment with xx worker nodes.

ERROR: Insufficient authorization to access /opt/sas/config/Lev1/xxx/JOBNAME.lst.
NOTE: The SAS System stopped processing this step because of errors.&lt;/PRE&gt;&lt;P&gt;Thanks in advance for any help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 17:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429217#M105999</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2018-01-19T17:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LASR is trying to write a .lst file - account doesn't have permission.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429305#M106029</link>
      <description>&lt;P&gt;I suggest you try adding these statements to your macro:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;

proc lasr......;
.......
run;

ods listing;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can test that LIST output is switched back on by trying say a PROC PRINT afterwards.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 22:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429305#M106029</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-01-19T22:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LASR is trying to write a .lst file - account doesn't have permission.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429339#M106049</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/177945"&gt;@_Dan_&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;SAS installation default is for a SAS session to point to the folder location where SAS got started from - which is the app server context folder. It's a good thing that at your site security is set up in a way&amp;nbsp;which doesn't allow your jobs to write random files&amp;nbsp;to this folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Besides of changing the output location or suppressing output in your code, you could also change the default location to somewhere more suitable like a temporary location which gets cleaned out regularly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A SAS admin could amend the SAS startup scripts to issue a CD command in Unix as part of SAS invocation and I believe for Windows&amp;nbsp;system option SASINITIALFOLDER can be used for this. Doing it on this level would resolve your current and any similar future problems once and for all.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jan 2018 03:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429339#M106049</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-01-20T03:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LASR is trying to write a .lst file - account doesn't have permission.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429559#M106107</link>
      <description>&lt;P&gt;Thanks both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now I'll try the ODS LISTING CLOSE route as the easiest to test. I am still troubled as to why the PROC LASR procedure that has run flawlessly for months has suddenly decided to start writing out .lst files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 08:14:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429559#M106107</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2018-01-22T08:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LASR is trying to write a .lst file - account doesn't have permission.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429564#M106110</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/177945"&gt;@_Dan_&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;".&lt;EM&gt;..why the PROC LASR procedure that has run flawlessly for months has suddenly decided to start writing out .lst files&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something must have changed in the environment whether you are aware of it or not.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:10:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429564#M106110</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-01-22T09:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LASR is trying to write a .lst file - account doesn't have permission.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429565#M106111</link>
      <description>You're not wrong &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;. Unfortunately the infrastructure is not under my remit, just everything else.</description>
      <pubDate>Mon, 22 Jan 2018 09:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-LASR-is-trying-to-write-a-lst-file-account-doesn-t-have/m-p/429565#M106111</guid>
      <dc:creator>_Dan_</dc:creator>
      <dc:date>2018-01-22T09:11:38Z</dc:date>
    </item>
  </channel>
</rss>

