<?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: ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/stresdat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-authorization-to-access-opt-sasinside/m-p/355134#M83177</link>
    <description>&lt;P&gt;Several issues here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A file is not a dataset. When you use the file statement in a data step, you address an external file (text), where you write sequential data with the put statement. Such a file will not be recognized by SAS as a dataset (unless you engage in VERY complicated programming and create a SAS dataset manually; don't waste your time with that). To create a dataset in library work, use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.stresdat;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Keep in mind that library work is transient and will be deleted when your SAS session terminates. If you want to keep datasets, put them in another library (a folder in myfolders, with according libname statement).&lt;/P&gt;
&lt;P&gt;You cannot use proc print on a file created with the file and put statements from a data step. proc print can only use SAS datasets as input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your initial error&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/stresdat.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;was caused by you not using a UNIX absolute path (starting at the root directory, therefore with a forward slash) for the external file, so SAS tried to put it into the current working directory of the SAS process (the direcory where SAS was started), where you do not have write permissions.&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2017 06:32:31 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-05-02T06:32:31Z</dc:date>
    <item>
      <title>ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/stresdat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-authorization-to-access-opt-sasinside/m-p/355132#M83176</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to SAS and was doing the practice in the SAS Base cert prep guide disc. &amp;nbsp;trying to write values to raw data file (in chapter 5) and got these errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;61&lt;BR /&gt;62 data _null_;&lt;BR /&gt;63 set sasuser.stress2;&lt;BR /&gt;64 file 'stresdat';&lt;BR /&gt;65 put id 1-4 name $ 6-25 resthr 27-28 maxhr 30-32 rechr 34-36 timemin 38-39 timesec 41-42 tolerance 44;&lt;BR /&gt;66 run;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/stresdat.&lt;/FONT&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;67&lt;BR /&gt;68 proc print data=work.stresdat;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: File WORK.STRESDAT.DATA does not exist.&lt;/FONT&gt;&lt;BR /&gt;69 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;70&lt;BR /&gt;71&lt;BR /&gt;72 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;85 &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried to specify a folder path like it suggested in a different post, fixed the first problem, successfully wrote the file into the folder. not very sure how the virtual machine works with windows but i checked the folder in my machine, it was created the moment i ran the first part of the code. (so the file is created into the folder i specified.) but the second error still occurs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;61&lt;BR /&gt;62 data _null_;&lt;BR /&gt;63 set sasuser.stress2;&lt;BR /&gt;64 file '/folders/myfolders/certprep/stresdat';&lt;BR /&gt;65 put id 1-4 name $ 6-25 resthr 27-28 maxhr 30-32 rechr 34-36 timemin 38-39 timesec 41-42 tolerance 44;&lt;BR /&gt;66 run;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: The file '/folders/myfolders/certprep/stresdat' is:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Filename=/folders/myfolders/certprep/stresdat,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Owner Name=root,Group Name=vboxsf,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Access Permission=-rwxrwx---,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Last Modified=02May2017:14:18:33&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: 21 records were written to the file '/folders/myfolders/certprep/stresdat'.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;The minimum record length was 44.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;The maximum record length was 44.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: There were 21 observations read from the data set SASUSER.STRESS2.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;real time 0.08 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;cpu time 0.01 seconds&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;67&lt;BR /&gt;68 proc print data=work.stresdat;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: File WORK.STRESDAT.DATA does not exist.&lt;/FONT&gt;&lt;BR /&gt;69 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;70&lt;BR /&gt;71&lt;BR /&gt;72 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;85&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help will be greatly appreciated! Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 06:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-authorization-to-access-opt-sasinside/m-p/355132#M83176</guid>
      <dc:creator>thenewlearner</dc:creator>
      <dc:date>2017-05-02T06:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/stresdat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-authorization-to-access-opt-sasinside/m-p/355134#M83177</link>
      <description>&lt;P&gt;Several issues here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A file is not a dataset. When you use the file statement in a data step, you address an external file (text), where you write sequential data with the put statement. Such a file will not be recognized by SAS as a dataset (unless you engage in VERY complicated programming and create a SAS dataset manually; don't waste your time with that). To create a dataset in library work, use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.stresdat;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Keep in mind that library work is transient and will be deleted when your SAS session terminates. If you want to keep datasets, put them in another library (a folder in myfolders, with according libname statement).&lt;/P&gt;
&lt;P&gt;You cannot use proc print on a file created with the file and put statements from a data step. proc print can only use SAS datasets as input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your initial error&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/stresdat.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;was caused by you not using a UNIX absolute path (starting at the root directory, therefore with a forward slash) for the external file, so SAS tried to put it into the current working directory of the SAS process (the direcory where SAS was started), where you do not have write permissions.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 06:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-authorization-to-access-opt-sasinside/m-p/355134#M83177</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-02T06:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/stresdat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-authorization-to-access-opt-sasinside/m-p/355135#M83178</link>
      <description>&lt;P&gt;Googled _null_ while waiting for a reply, plus your explanation, Now I understand. Very interesting and thank you very much for answering such a newbie question. Cheers :).&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 06:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-authorization-to-access-opt-sasinside/m-p/355135#M83178</guid>
      <dc:creator>thenewlearner</dc:creator>
      <dc:date>2017-05-02T06:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/stresdat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-authorization-to-access-opt-sasinside/m-p/355138#M83180</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is a means to have access to the power of the data step without creating a new dataset (what the data step was initially designed for). It is used to write external files, make a quick calculation (eg first day of month 3 months before now), or any other task where the use of datastep functions &amp;amp; statements is handy.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 06:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-authorization-to-access-opt-sasinside/m-p/355138#M83180</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-02T06:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Insufficient authorization to access /opt/sasinside/SASConfig/Lev1/SASApp/stresdat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-authorization-to-access-opt-sasinside/m-p/357094#M83802</link>
      <description>&lt;P&gt;thanks Kurt and everyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 08:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Insufficient-authorization-to-access-opt-sasinside/m-p/357094#M83802</guid>
      <dc:creator>thenewlearner</dc:creator>
      <dc:date>2017-05-09T08:39:50Z</dc:date>
    </item>
  </channel>
</rss>

