<?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: Infile statement issue running via UNIX, running fine on EGP in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616433#M35379</link>
    <description>&lt;P&gt;&lt;SPAN&gt;WORK.XXXPROFILE.DATA is different from WORK.PROFILE. Even if the import did not read any observations, you would still have the empty dataset.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You might have a problem earlier in your code when you run it in batch that causes SAS to set OBS=0, so you need to read the whole log from top down and eliminate all extraneous NOTEs, all WARNINGs and all ERRORs one by one.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The best method to run programs created in EG in batch is to use the BatchServer/sasbatch.sh script from the application server context you use in EG, as that provides an identical environment.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 12:26:35 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-01-10T12:26:35Z</dc:date>
    <item>
      <title>Infile statement issue running via UNIX, running fine on EGP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616427#M35377</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping someone can help. I am running SAS Enterprise guide on a Unix server. I have a very basic infile statement:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data profile;
infile "/SAS/data/nBOL/lookups/XXX.txt" dlm = "," pad missover dsd firstobs=2;
input key_customer :12.
key_user :$5.;
Keep = 'Yes';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I run the code via enterprise guide I see the following log:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.PROFILE has 63377 observations and 3 variables.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;i.e.NOT a blank file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I run the code via a shell script in unix, the log presents as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;The data set WORK.PROFILE has 0 observations and 3 variables.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;later on there is a reference to the dataset created and I get the following error when executing a proc sql where I join the infiledataset and then later try to reference the created dataset from the proc sql step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;BR /&gt;NOTE: Statement not executed due to NOEXEC option.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;.......&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: File WORK.XXXPROFILE.DATA does not exist."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know what is happening and how to get it to run and import properly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edited to Add: I am not an administrator and have very low level rights so I cannot change things on the server itself.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 11:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616427#M35377</guid>
      <dc:creator>SAS_Help_4me</dc:creator>
      <dc:date>2020-01-10T11:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Infile statement issue running via UNIX, running fine on EGP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616431#M35378</link>
      <description>&lt;P&gt;Is there any ERROR info in your LOG ?&lt;/P&gt;
&lt;P&gt;or try option truncover and termstr=&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data profile;
infile "/SAS/data/nBOL/lookups/XXX.txt" dlm = "," truncover dsd firstobs=2 termstr=crlf;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data profile;
infile "/SAS/data/nBOL/lookups/XXX.txt" dlm = "," truncover dsd firstobs=2 termstr=lf;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jan 2020 12:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616431#M35378</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-01-10T12:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Infile statement issue running via UNIX, running fine on EGP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616433#M35379</link>
      <description>&lt;P&gt;&lt;SPAN&gt;WORK.XXXPROFILE.DATA is different from WORK.PROFILE. Even if the import did not read any observations, you would still have the empty dataset.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You might have a problem earlier in your code when you run it in batch that causes SAS to set OBS=0, so you need to read the whole log from top down and eliminate all extraneous NOTEs, all WARNINGs and all ERRORs one by one.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The best method to run programs created in EG in batch is to use the BatchServer/sasbatch.sh script from the application server context you use in EG, as that provides an identical environment.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 12:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616433#M35379</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-10T12:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Infile statement issue running via UNIX, running fine on EGP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616441#M35380</link>
      <description>&lt;P&gt;Thanks for the input - tried both options and no luck. No actual error is shown, hence the confusion - Its hard to pin point what the issue is &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 12:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616441#M35380</guid>
      <dc:creator>SAS_Help_4me</dc:creator>
      <dc:date>2020-01-10T12:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Infile statement issue running via UNIX, running fine on EGP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616466#M35381</link>
      <description>&lt;P&gt;Other differences might be:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;EG sets OPTIONS VALIDVARNAME=ANY, which might affect import steps that read inputs with nonstandard column names.&lt;/LI&gt;
&lt;LI&gt;EG sets OPTIONS NOFMTERR, which allows more forgiving access to data when a user-defined format can't be found.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Doesn't seem like these should affect the program you shared though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When running in EG, is the SAS session using your same Unix account with same user/group permissions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running PROC OPTIONS in each environment and comparing the results might be a good place to start.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 13:49:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616466#M35381</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2020-01-10T13:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Infile statement issue running via UNIX, running fine on EGP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616492#M35382</link>
      <description>&lt;P&gt;Here's a very simple program. Run it in both environments, and hopefully the results will give you some insights into what's happening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data profile;
	length InRec $32767;
	infile "/SAS/data/nBOL/lookups/XXX.txt" lrecl=32767;
	input;
	InRec = _infile_;

	if _n_ = 5 then
		stop;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jan 2020 14:40:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616492#M35382</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2020-01-10T14:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Infile statement issue running via UNIX, running fine on EGP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616668#M35391</link>
      <description>&lt;P&gt;Make sure this SAS code is created under UNIX ,not Windows .&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2020 11:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/616668#M35391</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-01-11T11:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Infile statement issue running via UNIX, running fine on EGP</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/617702#M35405</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;EG sets OPTIONS VALIDVARNAME=ANY, which might affect import steps that read inputs with nonstandard column names.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested the code stand alone, outside the rest of my script and did see that the issue was infact linked to the&amp;nbsp;&lt;SPAN&gt;VALIDVARNAME=ANY option&lt;/SPAN&gt; above - I am still looking into ways to *not* apply that option (for other portions of the code where field names dont conform to SAS standard names), but thank you for helping me identify the issue!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2020 07:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Infile-statement-issue-running-via-UNIX-running-fine-on-EGP/m-p/617702#M35405</guid>
      <dc:creator>SAS_Help_4me</dc:creator>
      <dc:date>2020-01-16T07:32:27Z</dc:date>
    </item>
  </channel>
</rss>

