<?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: Some errors when running SAS under Unix (beginner on unix SAS) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262109#M51096</link>
    <description>&lt;P&gt;The unix sas is also 9.4, installed on a high performance computing facility in the school.&lt;/P&gt;
&lt;P&gt;I was using windows version SAS 9.4 on my desktop pc (win 7).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I transferred the data and sas files, and edited the libnames in the sas files to update the folder paths in the unix system. &lt;BR /&gt;&lt;BR /&gt;I guess I need to use "-flielocks continue" somewhere, but not sure&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2016 16:08:05 GMT</pubDate>
    <dc:creator>fengyuwuzu</dc:creator>
    <dc:date>2016-04-07T16:08:05Z</dc:date>
    <item>
      <title>Some errors when running SAS under Unix (beginner on unix SAS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262093#M51092</link>
      <description>&lt;P&gt;I was running SAS on windows pc and now want to run it under Unix.&lt;/P&gt;
&lt;P&gt;I copied files from windows PC to the Unix machine. I got a number of errors/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.When I started SAS, I got: &lt;/P&gt;
&lt;P&gt;ERROR: Expecting page 1, got page -1 instead.&lt;BR /&gt;ERROR: Page validation error while reading SASUSER.PROFILE.CATALOG.&lt;BR /&gt;NOTE: Unable to open SASUSER.PROFILE. WORK.PROFILE will be opened instead.&lt;BR /&gt;NOTE: All profile changes will be lost at the end of the session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. When I tried to run sas as "sas test.sas", I got:&lt;/P&gt;
&lt;P&gt;ERROR: File is locked, but no other information is available.&amp;nbsp; File =/HPCTMP_NOBKUP/test_04052016/test.log.&amp;nbsp; System Error Code = 38.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;3. When I tried to open the test.sas file in the editor window, I got:&lt;/P&gt;
&lt;P&gt;ERROR: File is locked, but no other information is available.&amp;nbsp; File =/HPCTMP_NOBKUP/test_04052016/test.sas.&amp;nbsp; System Error Code = 38.&lt;BR /&gt;ERROR: File is in use, /HPCTMP_NOBKUP/test_04052016/test.sas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. I tried copy and paste the code into the editor window, instead of trying to open the test.sas file, I still got the locked error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my first time running sas on Unix, maybe I missed something in configuration?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 14:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262093#M51092</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-04-07T14:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Some errors when running SAS under Unix (beginner on unix SAS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262105#M51093</link>
      <description>&lt;P&gt;Sorry, you "copied files from PC"? &amp;nbsp;In what way? &amp;nbsp;I would imagine that Unix SAS has its own installer and such like, it would certainly need different configuration to get running as paths and such like are different and catalogs will be different. &amp;nbsp;What "SAS" are you using, is it a 9.x release, SAS Univeristy Edition, EG etc. &amp;nbsp;Who brought the license, your IT group - they would be best placed to install and set it up. &amp;nbsp;The first error there could well be it trying to open a Windows style file on Unix.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 15:44:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262105#M51093</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-07T15:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Some errors when running SAS under Unix (beginner on unix SAS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262109#M51096</link>
      <description>&lt;P&gt;The unix sas is also 9.4, installed on a high performance computing facility in the school.&lt;/P&gt;
&lt;P&gt;I was using windows version SAS 9.4 on my desktop pc (win 7).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I transferred the data and sas files, and edited the libnames in the sas files to update the folder paths in the unix system. &lt;BR /&gt;&lt;BR /&gt;I guess I need to use "-flielocks continue" somewhere, but not sure&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 16:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262109#M51096</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-04-07T16:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Some errors when running SAS under Unix (beginner on unix SAS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262123#M51099</link>
      <description>&lt;P&gt;Looks like you tried to copy your SASUSER.PROFILE catalog from your PC to Unix. &amp;nbsp;Don't do that. &amp;nbsp;Just delete the catalogs in your SASUSER library and SAS will create new valid ones the first time you start it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact you cannot directly copy any catalog (*.sas7bcat) &amp;nbsp;files between different versions of SAS. &amp;nbsp;You CAN&amp;nbsp;copy the SAS datasets (*.sas7bdat) but you might need to convert them to get the best performance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to transfer catalogs (like format catalogs) then you can use PROC CPORT to export on the old machine and PROC CIMPORT to import on the new machine. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For format catalogs you can also use PROC FORMAT to create a SAS dataset with the format definition. You can then copy the dataset and use PROC FORMAT to use it to create a new format catalog. &amp;nbsp;Or you just re-run the SAS program that created the format catalog on the new machine.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 16:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262123#M51099</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-04-07T16:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Some errors when running SAS under Unix (beginner on unix SAS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262152#M51111</link>
      <description>I deleted the profile.sas7bcat and regatry.sas7bitm in the sasuser.v94 directory, and started sas again. &lt;BR /&gt;&lt;BR /&gt;Then in sas I created a small program and tried to save it, still got the lock error. &lt;BR /&gt;&lt;BR /&gt;Then I used vi to create a small sas file, just read in 2 data lines, and saved as .sas file. I tried to open it in SAS, but got the locked error again. This .sas file is a fresh one created in Unix, not a windows version. &lt;BR /&gt;&lt;BR /&gt;I also tried to start SAS as "$ sas -filelocks continue" but it does not make difference &lt;BR /&gt;</description>
      <pubDate>Thu, 07 Apr 2016 17:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262152#M51111</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-04-07T17:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Some errors when running SAS under Unix (beginner on unix SAS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262312#M51175</link>
      <description>&lt;P&gt;How do you log on to the UNIX system?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you are logged on, change to the directory where your .sas file is located and do a &lt;FONT face="courier new,courier"&gt;ls -l &lt;EM&gt;filename&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;If the file exists and should be accessible to you (check user/group and permissions), try &lt;FONT face="courier new,courier"&gt;vi &lt;EM&gt;filename&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;(as the text editor &lt;FONT face="courier new,courier"&gt;vi&lt;/FONT&gt; exists on all UNIX systems)&lt;/P&gt;
&lt;P&gt;If you still get messages indicating the file is locked, try &lt;FONT face="courier new,courier"&gt;fuser &lt;EM&gt;filename&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;This is a command that shows process numbers that have an open filehandle on &lt;EM&gt;filename&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 07:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262312#M51175</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-08T07:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Some errors when running SAS under Unix (beginner on unix SAS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262442#M51226</link>
      <description>&lt;P&gt;Thanks all replies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Someone from the high performace computing facility told me to run sas as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$sas -filelocks none&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and it solved all problem. I still do not quite get it, but this is the solution.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 14:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262442#M51226</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-04-08T14:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Some errors when running SAS under Unix (beginner on unix SAS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262444#M51228</link>
      <description>&lt;P&gt;Thank you, Kurt&lt;/P&gt;
&lt;P&gt;I am the only person using the file. Not sure why I got the error.&lt;/P&gt;
&lt;P&gt;SAS -filelocks continue did not solve the problem, but sas -filelocks none did.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 14:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Some-errors-when-running-SAS-under-Unix-beginner-on-unix-SAS/m-p/262444#M51228</guid>
      <dc:creator>fengyuwuzu</dc:creator>
      <dc:date>2016-04-08T14:18:35Z</dc:date>
    </item>
  </channel>
</rss>

