<?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: Linux Putty I/O Error when running program - Why? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457332#M284424</link>
    <description>&lt;P&gt;I understand it does look like that.&lt;BR /&gt;&lt;BR /&gt;If I delete the files and re-run in SAS, runs fine.&lt;BR /&gt;If I delete the files and re-run in PuTTY, I/O error.&lt;BR /&gt;&lt;BR /&gt;Thanks very much for your help so far Kurt - really appreciate it.&lt;BR /&gt;&lt;BR /&gt;The proc options results are slightly different. As you predicted, compress = NO in Batch. There are a couple of other different ones:&lt;BR /&gt;&lt;BR /&gt;NOXCMD&lt;BR /&gt;TERMINAL&lt;BR /&gt;SYNTAXCHECK&lt;BR /&gt;DEVICE&lt;BR /&gt;NOOBJECTSERVER&lt;BR /&gt;and some others...&lt;BR /&gt;&lt;BR /&gt;The 2 I am unsure about are&amp;nbsp;TERMINAL &amp;amp; NOOBJECTSERVER.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 15:23:25 GMT</pubDate>
    <dc:creator>EddieR333</dc:creator>
    <dc:date>2018-04-25T15:23:25Z</dc:date>
    <item>
      <title>Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457206#M284414</link>
      <description>&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When running program via SAS EG there are no errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I use this code in Putty (Linux):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/sas/sashome/SASFoundation/9.4/sas /FileStore/TU_DataMI/Testing/Edward/Quote_Warehouse/Project/Program_v3/NEW_DIM_RISK.sas -log /FileStore/ed_log.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I receive I/O error on: 'proc sort data=stg.policy_names; by varnum; run;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tested with other programs and I am receiving various errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something I am missing, in terms of a system option I should be using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 10:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457206#M284414</guid>
      <dc:creator>EddieR333</dc:creator>
      <dc:date>2018-04-25T10:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457243#M284415</link>
      <description>&lt;P&gt;My first guess would be that the workspace server behind EG uses a dedicated volume for WORK, while the basic sasv9.cfg in SASFoundation/9.4 uses the default /tmp. And you run out of disk space there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instead of running SAS in batch like you do, use SASCONF/Lev1/SASApp/BatchServer/sasbatch.sh (or the BatchServer/sasbatch.sh in the directory of the application server context you use in EG)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 12:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457243#M284415</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-25T12:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457245#M284416</link>
      <description>Hi Kurt,&lt;BR /&gt;&lt;BR /&gt;Thank you for taking the time to help me with this (and the quick response).&lt;BR /&gt;&lt;BR /&gt;I'm not 100% sure I am following. Could you confirm for me:&lt;BR /&gt;&lt;BR /&gt;Instead of using:&lt;BR /&gt;/opt/sas/sashome/SASFoundation/9.4/sas *PROGRAM*&lt;BR /&gt;&lt;BR /&gt;I could try:&lt;BR /&gt;/opt/sas/config/Lev1/SASApp/BatchServer/sasbatch.sh *PROGRAM*&lt;BR /&gt;&lt;BR /&gt;Kurt, if you had a moment - I have a few questions around this issue that I would love to be answered!</description>
      <pubDate>Wed, 25 Apr 2018 12:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457245#M284416</guid>
      <dc:creator>EddieR333</dc:creator>
      <dc:date>2018-04-25T12:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457247#M284417</link>
      <description>&lt;P&gt;Before you start experimenting, you can run this program in both environments (EG and batch):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
path = pathname('WORK');
put path=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and look at the logs. This will give you a clue about the WORK location(s).&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 12:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457247#M284417</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-25T12:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457252#M284418</link>
      <description>When ran in SAS, the output is:&lt;BR /&gt;path=/SASWORK/SAS_work3A1900004CAC_ploffice01.tu.local/SAS_work7FD900004CAC_ploffice01.tu.local&lt;BR /&gt;&lt;BR /&gt;When run in batch:&lt;BR /&gt;path=/SASWORK/SAS_work1D5F0000538C_ploffice01.tu.local&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Apr 2018 12:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457252#M284418</guid>
      <dc:creator>EddieR333</dc:creator>
      <dc:date>2018-04-25T12:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457254#M284419</link>
      <description>&lt;P&gt;So it's not the location. Then we need to look for other reasons.&lt;/P&gt;
&lt;P&gt;Run a proc options in both environments, and look for differences.&lt;/P&gt;
&lt;P&gt;(eg you could have the compress system option set in your workspace server)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 12:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457254#M284419</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-25T12:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457295#M284420</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for that. I've been comparing the proc options output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have compared the SAS EG output with PuTTY output and PuTTY Batch output. There are some differences, however BATCH is not working as expected either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I need to be using:&lt;BR /&gt;/opt/sas/config/Lev1/SASApp/WorkspaceServer/WorkspaceServer.sh&lt;/P&gt;&lt;P&gt;...but, when running this in PuTTY, I am not receiving a log output to compare! Do you have any ideas as to why the log wouldn't be output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 14:05:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457295#M284420</guid>
      <dc:creator>EddieR333</dc:creator>
      <dc:date>2018-04-25T14:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457300#M284421</link>
      <description>&lt;P&gt;The WorkspaceServer.sh is the starting script for workspace server, which always needs to send the log to the client and not to a file.&lt;/P&gt;
&lt;P&gt;That's why I recommended to use the sasbatch.sh from the BatchServer, which is designed to be used for batch execution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us see the logs of the successful and the failed execution of code.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 14:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457300#M284421</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-25T14:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457314#M284422</link>
      <description>I see, thank you.&lt;BR /&gt;&lt;BR /&gt;The entire log is quite lengthy, as I am creating some formats... What would be most helpful in this case?&lt;BR /&gt;&lt;BR /&gt;Here is the log output from the 'opt/..../BatchServer' run from PuTTY:&lt;BR /&gt;853 proc contents data=stg.policy out=stg.policy_names(keep=name varnum where=(substr(name,1,5)='Risk_')); run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The data set STG.POLICY_NAMES has 10 observations and 2 variables.&lt;BR /&gt;ERROR: An I/O error has occurred on file STG.POLICY_NAMES.DATA.&lt;BR /&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;BR /&gt;real time 0.25 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;NOTE: The PROCEDURE CONTENTS printed pages 26-27.&lt;BR /&gt;&lt;BR /&gt;854 proc sort data=stg.policy_names; by varnum; run;&lt;BR /&gt;ERROR: A lock is not available for STG.POLICY_NAMES.DATA.&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: SAS set option OBS=0 and will continue to check statements. This might cause NOTE: No observations in data set.&lt;BR /&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;I am now receiving I/O errors on the POLICY_NAMES file, regardless of being ran via PuTTY or SAS EG. The day gets better..&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Apr 2018 14:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457314#M284422</guid>
      <dc:creator>EddieR333</dc:creator>
      <dc:date>2018-04-25T14:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457324#M284423</link>
      <description>&lt;P&gt;Hmm, you don't have a problem in WORK, you have a problem in library STG, as the write to STG.POLICY_NAMES fails, and the damaged (or possibly locked by another application) file can't be read for the sort.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 14:50:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457324#M284423</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-25T14:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457332#M284424</link>
      <description>&lt;P&gt;I understand it does look like that.&lt;BR /&gt;&lt;BR /&gt;If I delete the files and re-run in SAS, runs fine.&lt;BR /&gt;If I delete the files and re-run in PuTTY, I/O error.&lt;BR /&gt;&lt;BR /&gt;Thanks very much for your help so far Kurt - really appreciate it.&lt;BR /&gt;&lt;BR /&gt;The proc options results are slightly different. As you predicted, compress = NO in Batch. There are a couple of other different ones:&lt;BR /&gt;&lt;BR /&gt;NOXCMD&lt;BR /&gt;TERMINAL&lt;BR /&gt;SYNTAXCHECK&lt;BR /&gt;DEVICE&lt;BR /&gt;NOOBJECTSERVER&lt;BR /&gt;and some others...&lt;BR /&gt;&lt;BR /&gt;The 2 I am unsure about are&amp;nbsp;TERMINAL &amp;amp; NOOBJECTSERVER.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457332#M284424</guid>
      <dc:creator>EddieR333</dc:creator>
      <dc:date>2018-04-25T15:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457384#M284425</link>
      <description>&lt;P&gt;If compress=yes in Enterprise Guide, then that's a strong pointer. Depending on structure and contents, the compress option can reduce physical file size by 90 or more percent.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 16:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457384#M284425</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-25T16:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457599#M284426</link>
      <description>&lt;P&gt;Could it be that you are running under different users, and the batch&amp;nbsp;user&amp;nbsp;does not have write access to STG?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 03:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457599#M284426</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-26T03:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457628#M284427</link>
      <description>ChrisNZ - Hi, thanks for the suggestion - unfortunately, this can't be the problem as the program is creating datasets in the STG directory.</description>
      <pubDate>Thu, 26 Apr 2018 08:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457628#M284427</guid>
      <dc:creator>EddieR333</dc:creator>
      <dc:date>2018-04-26T08:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457632#M284428</link>
      <description>&lt;P&gt;Also look at free space in the directory that STG points to, and check if there's a quota set for the user running the code.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 08:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457632#M284428</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-26T08:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457633#M284429</link>
      <description>I think it's worth mentioning at this point, the file being sorted is only 192 KB.&lt;BR /&gt;&lt;BR /&gt;I'm going to try and find a way to run the batch server using my user ID, and also with compress option.&lt;BR /&gt;&lt;BR /&gt;The code runs fine in SAS EG again.</description>
      <pubDate>Thu, 26 Apr 2018 08:53:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457633#M284429</guid>
      <dc:creator>EddieR333</dc:creator>
      <dc:date>2018-04-26T08:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457635#M284430</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/206623"&gt;@EddieR333&lt;/a&gt; wrote:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm going to try and find a way to run the batch server using my user ID&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So there are different UserID's?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 09:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457635#M284430</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-26T09:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457636#M284431</link>
      <description>I should have been more spefici here - I actually don't know. I was hoping to find a USER option where I could specify, but I don't think there is one?&lt;BR /&gt;&lt;BR /&gt;With "-compress yes" added to the PuTTy code, I still have the same error &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Thu, 26 Apr 2018 09:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457636#M284431</guid>
      <dc:creator>EddieR333</dc:creator>
      <dc:date>2018-04-26T09:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457638#M284432</link>
      <description>I have compared both proc options outputs in Word - nothing about user is different &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;</description>
      <pubDate>Thu, 26 Apr 2018 09:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457638#M284432</guid>
      <dc:creator>EddieR333</dc:creator>
      <dc:date>2018-04-26T09:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Putty I/O Error when running program - Why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457647#M284433</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysget(USER);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;will show you the userid under which a SAS process is running (UNIX).&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 09:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linux-Putty-I-O-Error-when-running-program-Why/m-p/457647#M284433</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-26T09:30:07Z</dc:date>
    </item>
  </channel>
</rss>

