<?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: What do I put in my CSV file if I do not have an observation for one of my samples? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-do-I-put-in-my-CSV-file-if-I-do-not-have-an-observation-for/m-p/916879#M361147</link>
    <description>&lt;P&gt;SAS function &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n06xm8hwk0t0axn10gj16lfiri43.htm" target="_self"&gt;FILEEXIST()&lt;/A&gt; allows to &lt;EM&gt;verify for the existence of an external file by its physical name&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;Here some sample code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let myfile=C:\temp\test folder\testfile1.txt;
%if %sysfunc(fileexist(&amp;amp;myfile)) %then 
  %do;
    data _null_;
      put "file exists: &amp;amp;myfile";
    run;
  %end;
%else
  %do;
    data _null_;
      put "file does not exist: &amp;amp;myfile";
    run;
  %end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We would need to see your actual code to give you more targeted advice for you specific code.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2024 23:27:57 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2024-02-19T23:27:57Z</dc:date>
    <item>
      <title>What do I put in my CSV file if I do not have an observation for one of my samples?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-do-I-put-in-my-CSV-file-if-I-do-not-have-an-observation-for/m-p/916859#M361139</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have CSV files for all my data. For one of them, I am missing some data from one experimental unit (the sample was damaged, not all the work was able to be completed on it).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I put so SAS will know to not include that sample in the analysis? It's not 0, it just doesn't exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Caroline&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 20:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-do-I-put-in-my-CSV-file-if-I-do-not-have-an-observation-for/m-p/916859#M361139</guid>
      <dc:creator>caroline_rg</dc:creator>
      <dc:date>2024-02-19T20:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: What do I put in my CSV file if I do not have an observation for one of my samples?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-do-I-put-in-my-CSV-file-if-I-do-not-have-an-observation-for/m-p/916879#M361147</link>
      <description>&lt;P&gt;SAS function &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/n06xm8hwk0t0axn10gj16lfiri43.htm" target="_self"&gt;FILEEXIST()&lt;/A&gt; allows to &lt;EM&gt;verify for the existence of an external file by its physical name&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;Here some sample code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let myfile=C:\temp\test folder\testfile1.txt;
%if %sysfunc(fileexist(&amp;amp;myfile)) %then 
  %do;
    data _null_;
      put "file exists: &amp;amp;myfile";
    run;
  %end;
%else
  %do;
    data _null_;
      put "file does not exist: &amp;amp;myfile";
    run;
  %end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We would need to see your actual code to give you more targeted advice for you specific code.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 23:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-do-I-put-in-my-CSV-file-if-I-do-not-have-an-observation-for/m-p/916879#M361147</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-02-19T23:27:57Z</dc:date>
    </item>
  </channel>
</rss>

