<?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 import imports nothing even though the file has content in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-imports-nothing-even-though-the-file-has-content/m-p/589004#M168396</link>
    <description>&lt;P&gt;Looks strange to me, as the permissions for the file is the same in both cases, and the file size as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could it be that the system option OBS has been set to 0 somewhere earlier in the program, when it runs on the server? SAS sets the system option SYNTAXCHECK in batch mode, meaning that if an error is encountered, it sets OBS to 0 and continues. You may want to look for errors earlier in the log from the batch session. An alternative is to set the ERRORABEND option in the batch program, so that it stops when an error is encountered, or (the dirty way) to set the option NOSYNTAXCHECK, so that SAS continues with OBS=MAX (or whatever you have explicitly set it to earlier).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2019 11:28:41 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2019-09-16T11:28:41Z</dc:date>
    <item>
      <title>Proc import imports nothing even though the file has content</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-imports-nothing-even-though-the-file-has-content/m-p/588972#M168385</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a STP which runs under the sassrv technical user. With the follwing x-command I create a list of all work-directories with a certain table inside of them and then want to import it as a table. When I run the code as another user it works fine, but with the sassrv user nothing gets imported.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Coding:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x "find &amp;amp;workpath. -name &amp;amp;tableName..sas7bdat &amp;gt; &amp;amp;workpath./work_directories.txt";

proc Import datafile="&amp;amp;workpath./work_directories.txt"
                out=work.work_finding_1
                dbms=dlm
                replace;
                getnames=NO;
        run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result when I run the coding with my user:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: The infile '/work_p/work_directories.txt' is:
      Filename=/work_p/work_directories.txt,
      Owner Name=XXXXXXX,Group Name=XXXXXX,
      Access Permission=-rw-r--r--,
      Last Modified=16Sep2019:10:38:22,
      File Size (bytes)=81

NOTE: 1 record was read from the infile '/work_p/work_directories.txt'.
      The minimum record length was 80.
      The maximum record length was 80.
NOTE: The data set WORK.work_finding_1 has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result when sassrv runs the same code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: The infile '/work_p/work_directories.txt' is:
      Filename=/work_p/work_directories.txt,
      Owner Name=sassrv,Group Name=sas,
      Access Permission=-rw-r--r--,
      Last Modified=16. September 2019 10.38 Uhr,
      File Size (bytes)=81

NOTE: 0 records were read from the infile '/work_p/work_directories.txt'.
NOTE: The data set WORK.WORK_finding_1 has 0 observations and 1 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds
      &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Content of the txt File:&lt;/P&gt;
&lt;P&gt;/work_p/SAS_work1D9C015D00B6_macdb001/SAS_work0994015D00B6_macdb001/aa1.sas7bdat&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am completly lost as to why this is happening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be greatly welcomed&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;Criptic&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 09:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-imports-nothing-even-though-the-file-has-content/m-p/588972#M168385</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2019-09-16T09:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import imports nothing even though the file has content</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-imports-nothing-even-though-the-file-has-content/m-p/589004#M168396</link>
      <description>&lt;P&gt;Looks strange to me, as the permissions for the file is the same in both cases, and the file size as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could it be that the system option OBS has been set to 0 somewhere earlier in the program, when it runs on the server? SAS sets the system option SYNTAXCHECK in batch mode, meaning that if an error is encountered, it sets OBS to 0 and continues. You may want to look for errors earlier in the log from the batch session. An alternative is to set the ERRORABEND option in the batch program, so that it stops when an error is encountered, or (the dirty way) to set the option NOSYNTAXCHECK, so that SAS continues with OBS=MAX (or whatever you have explicitly set it to earlier).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 11:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-imports-nothing-even-though-the-file-has-content/m-p/589004#M168396</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2019-09-16T11:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import imports nothing even though the file has content</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-imports-nothing-even-though-the-file-has-content/m-p/589009#M168397</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76464"&gt;@s_lassen&lt;/a&gt;&amp;nbsp;thank you every much this seems to be the problem for me, as I tested it with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.test;
     set sashelp.class;
run; 

* Log-Entry;
NOTE: There were 0 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.TEST has 0 observations and 5 variables.
NOTE: DATA statement used (Total process time):
      real time           0.03 seconds
      cpu time            0.00 seconds&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The Log I can view of the STP in EG doesn't contain any warnings or errors so the error must occur somewhere in the autoexec-flow of the STP. Is there a way to view that log?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 11:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-imports-nothing-even-though-the-file-has-content/m-p/589009#M168397</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2019-09-16T11:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc import imports nothing even though the file has content</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-import-imports-nothing-even-though-the-file-has-content/m-p/589011#M168399</link>
      <description>I found a quick way by running the different autoexec-files that get included by the STP-Server in batch and found my error.</description>
      <pubDate>Mon, 16 Sep 2019 12:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-import-imports-nothing-even-though-the-file-has-content/m-p/589011#M168399</guid>
      <dc:creator>Criptic</dc:creator>
      <dc:date>2019-09-16T12:14:04Z</dc:date>
    </item>
  </channel>
</rss>

