<?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: check number of files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884253#M349334</link>
    <description>&lt;P&gt;Thank you, I managed to compress the file so it’s like this now:&lt;BR /&gt;&lt;SPAN&gt;DPS_cais_DPSCAIS_Interactive_Workbook_20230629.xlsm DPS_cais_DPSCAIS_Summary_Workbook_20230629.xlsm DPS_cais_DPSCAISappend_20230629.csv&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;would a loop like this work?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data check_filenames;
    set DPS_FILE_COUNT;
    flag = 0; /* Initialize flag to 0 */
    
    /* Loop over the records */
    do until (eof);
        set DPS_FILE_COUNT end = eof;
        
        /* Check if the filename matches all conditions */
        if filename = "DPS_cais_DPSCAIS_Interactive_Workbook_&amp;amp;date..xlsm" and
           filename = "DPS_cais_DPSCAIS_append_&amp;amp;date..csv" and
           filename = "DPS_cais_DPSCAIS_Summary_Report_&amp;amp;date..xlsx" then
        do;
            flag = 1; /* Set flag to 1 to indicate a "pass" */
            output; /* Output the record to the check_filenames dataset */
        end;
    end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2023 20:13:35 GMT</pubDate>
    <dc:creator>Coding4you</dc:creator>
    <dc:date>2023-07-10T20:13:35Z</dc:date>
    <item>
      <title>check number of files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884213#M349301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to write a SAS code where I can count how many files exist in that folder. However, I'm struggling to execute the logic behind the code. In the scenario the output name =" dps_cais ". the output name is base on&amp;nbsp; different names, which is why it's in a macro variable. I'm trying to work out a solution to flag up as fail if it does equal the filename (see the code below) which should be always be 3 per output_name.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dps_file_count;
set WORK.FILENAME;
WHERE filename  like "%DPSCAIS%" ;

data dps_file_count;
set DPS_FILE_COUNT;
WHERE filename NOT like "%Rossen%";


/*Creating a output name loop unitl it matches the filename */
data check_filenames;
set DPS_FILE_COUNT;
flag = filename;
do until (flag = filename or eof);
set DPS_FILE_COUNT end = eof;
if filename = "&amp;amp;output_name._DPSCAIS_Interactive_Workbook_&amp;amp;date..xlsm"
or filename = "&amp;amp;output_name. DPSCAIS append_&amp;amp;date..csv"
or filename = "&amp;amp;output_name._DPSCAIS_Summary_Report_&amp;amp;date..xlsx" then flag = 1;
end;
run;


/*check what files is missing*/
PROC SQL;
create table file_compare as 
SELECT b.filename from check_filenames b
where filename not in (select filename from dps_file_count a where a.filename = b.filename);
quit;

PROC SQL;
create table COUNT_FILES AS SELECT COUNT(filename) AS COUNTS  FROM file_compare
;

DATA CHECK_NUM_FILES;
SET file_compare;
IF COUNTS &amp;gt;= 1 THEN FILE_COUNT = "FAIL" ;ELSE FILE_COUNT = "PASS";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Jul 2023 16:00:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884213#M349301</guid>
      <dc:creator>Coding4you</dc:creator>
      <dc:date>2023-07-10T16:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: check number of files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884215#M349302</link>
      <description>&lt;P&gt;There are plenty of threads in this forum which show how to read the names of the files in a folder into a SAS data set. Then, the number of records in the resulting data set is what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For most situations, you need to write the above code without macros and without macro variables FIRST, before trying to turn it into something the requires macros and requires macro variables. So, please show us code for one folder that works without macros and without macro variables, before trying to turn this into a more general piece of code.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 16:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884215#M349302</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-10T16:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: check number of files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884224#M349309</link>
      <description>&lt;P&gt;these are the files I managed to read from the folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DPS_File_count table&lt;/P&gt;
&lt;TABLE border="1" width="44.44444444444444%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px" class="lia-align-center"&gt;&lt;STRONG&gt;Filename&lt;/STRONG&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;DPS_cais_DPSCAIS_Interactive_Workbook_20230629.xlsm&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;DPS_cais_DPSCAIS_Summary_Workbook_20230629.xlsm&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DPS_Check_filenames table&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="1" width="52.177981963586866%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px" class="lia-align-center"&gt;&lt;STRONG&gt;Filename&lt;/STRONG&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="12.5%" height="30px" class="lia-align-center"&gt;&lt;STRONG&gt;Filename&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="30px"&gt;&lt;STRONG&gt;Flag&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;DPS_cais_DPSCAIS_Interactive_Workbook_20230629.xlsm&lt;/TD&gt;
&lt;TD width="12.5%" height="30px"&gt;DPS_cais_DPSCAIS_Interactive_Workbook_20230629.xlsm&lt;/TD&gt;
&lt;TD width="12.5%" height="30px"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;DPS_cais_DPSCAIS_Summary_Workbook_20230629.xlsm&lt;/TD&gt;
&lt;TD width="12.5%" height="30px"&gt;DPS_cais_DPSCAIS_Summary_Workbook_20230629.xlsm&lt;/TD&gt;
&lt;TD width="12.5%" height="30px"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File_compare table (blank)&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="50%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the loop part of the codes the filename&amp;nbsp;&lt;STRONG&gt;DPS_cais_DPSCAIS_append_20230629.csv&lt;/STRONG&gt; is missing in the table which meant that the result will flag as pass instead of fail if that make sense&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;
&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, 10 Jul 2023 16:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884224#M349309</guid>
      <dc:creator>Coding4you</dc:creator>
      <dc:date>2023-07-10T16:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: check number of files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884225#M349310</link>
      <description>&lt;P&gt;Okay, so first you talk about "count" the number of files. You said "&lt;SPAN&gt;I'm trying to write a SAS code where I can count how many files exist in that folder."&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Now you write about something that isn't about counting, and in fact I'm not sure what it is you have just explained or how it relates to counting files, but there is a flag being computed and I don't think that has been explained.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Furthermore, I asked to see code without macros and without macro variables that works on one folder and does what you want. I still would like to see that code before I feel comfortable moving forward. In fact, I still consider such code a mandatory first step to write more generic code with macros and with macro variables.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 16:58:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884225#M349310</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-10T16:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: check number of files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884226#M349311</link>
      <description>&lt;P&gt;I do not follow what you are trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You seem to be saying you found 2 files, both of which are XLSM files where the only difference is one of the many "words" in the named.&amp;nbsp; Summary vs Interactive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the source of the information that let's you know that there is a missing file with a CSV extension?&amp;nbsp; It looks like perhaps you want a CSV file with a similar name, only with the strings 'Summary_Workbook' or 'Interactive_Workbook' in the name changed to the string 'appended' instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is that what you are trying to test?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you expect all of the files to follow those naming conventions of:&lt;/P&gt;
&lt;P&gt;A_B_C_X_Y_D.xlsm&lt;/P&gt;
&lt;P&gt;A_B_C_Z_D.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where A is DPS, B is cais, C is DPSCAIS, X is Interactive or Summary, Y is Workbook and D is 20230629 and Z is appended?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which parts of ABCDXYZ vary?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 16:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884226#M349311</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-10T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: check number of files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884230#M349315</link>
      <description>&lt;P&gt;So the purpose of the checks is to identify if the correct number of &amp;nbsp;excel files has been outputted in the folder.&lt;/P&gt;
&lt;P&gt;The output name always changes depending on the input name. I’ve already built this macro variable in so that it scan the input name. For every input name e.g. A we expect to see three files outputted:&lt;/P&gt;
&lt;P&gt;The only thing that changes is the macro variable output name and date . If there is two Input file with input name A&amp;amp;B we should see six files.&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;"&amp;amp;output_name._DPSCAIS_Interactive_Workbook_&amp;amp;date..xlsm"
or filename = "&amp;amp;output_name. DPSCAIS append_&amp;amp;date..csv"
or filename = "&amp;amp;output_name._DPSCAIS_Summary_Report_&amp;amp;date..xlsx"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I think I managed to find the solution where I can create a table base of all the output filenames at that particular time and compare it with the what’s in the folder.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 17:15:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884230#M349315</guid>
      <dc:creator>Coding4you</dc:creator>
      <dc:date>2023-07-10T17:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: check number of files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884233#M349317</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437191"&gt;@Coding4you&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So the purpose of the checks is to identify if the correct number of &amp;nbsp;excel files has been outputted in the folder.&lt;/P&gt;
&lt;P&gt;The output name always changes depending on the input name. I’ve already built this macro variable in so that it scan the input name. For every input name e.g. A we expect to see three files outputted:&lt;/P&gt;
&lt;P&gt;The only thing that changes is the macro variable output name and date . If there is two Input file with input name A&amp;amp;B we should see six files.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;"&amp;amp;output_name._DPSCAIS_Interactive_Workbook_&amp;amp;date..xlsm"
or filename = "&amp;amp;output_name. DPSCAIS append_&amp;amp;date..csv"
or filename = "&amp;amp;output_name._DPSCAIS_Summary_Report_&amp;amp;date..xlsx"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;I think I managed to find the solution where I can create a table base of all the output filenames at that particular time and compare it with the what’s in the folder.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;Look very closely at that file name for the CSV. Do you see the space between the . and DPSCAIS? and before append. &lt;/STRONG&gt;&lt;/FONT&gt;The = comparison means that unless the actual file name has that space then the code won't (and likely shouldn't spaces in filenames are a bad idea) match.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 20:20:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884233#M349317</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-07-10T20:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: check number of files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884253#M349334</link>
      <description>&lt;P&gt;Thank you, I managed to compress the file so it’s like this now:&lt;BR /&gt;&lt;SPAN&gt;DPS_cais_DPSCAIS_Interactive_Workbook_20230629.xlsm DPS_cais_DPSCAIS_Summary_Workbook_20230629.xlsm DPS_cais_DPSCAISappend_20230629.csv&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;would a loop like this work?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data check_filenames;
    set DPS_FILE_COUNT;
    flag = 0; /* Initialize flag to 0 */
    
    /* Loop over the records */
    do until (eof);
        set DPS_FILE_COUNT end = eof;
        
        /* Check if the filename matches all conditions */
        if filename = "DPS_cais_DPSCAIS_Interactive_Workbook_&amp;amp;date..xlsm" and
           filename = "DPS_cais_DPSCAIS_append_&amp;amp;date..csv" and
           filename = "DPS_cais_DPSCAIS_Summary_Report_&amp;amp;date..xlsx" then
        do;
            flag = 1; /* Set flag to 1 to indicate a "pass" */
            output; /* Output the record to the check_filenames dataset */
        end;
    end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 20:13:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884253#M349334</guid>
      <dc:creator>Coding4you</dc:creator>
      <dc:date>2023-07-10T20:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: check number of files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884257#M349336</link>
      <description>&lt;P&gt;So if the idea is that there should be all three of those filenames then you probably need three flags (or one flag that counts).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set DPS_FILE_COUNT end=eof;
  retain flag 0;
  if filename in
     ("DPS_cais_DPSCAIS_Interactive_Workbook_&amp;amp;date..xlsm"
      "DPS_cais_DPSCAIS_append_&amp;amp;date..csv"
      "DPS_cais_DPSCAIS_Summary_Report_&amp;amp;date..xlsx"
     ) then flag+1
  ;
  if eof then do;
    put 'NOTE: Found ' flag "files for &amp;amp;date..";
    call symputx('nfiles',flag);
  end;
run;

%put NOTE: Found &amp;amp;nfiles files for &amp;amp;date.. ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you can use the value of the macro variable NFILES to decide whether or not to do something else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 20:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884257#M349336</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-10T20:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: check number of files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884258#M349337</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437191"&gt;@Coding4you&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you, I managed to compress the file so it’s like this now:&lt;BR /&gt;&lt;SPAN&gt;DPS_cais_DPSCAIS_Interactive_Workbook_20230629.xlsm DPS_cais_DPSCAIS_Summary_Workbook_20230629.xlsm DPS_cais_DPSCAISappend_20230629.csv&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;would a loop like this work?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data check_filenames;
    set DPS_FILE_COUNT;
    flag = 0; /* Initialize flag to 0 */
    
    /* Loop over the records */
    do until (eof);
        set DPS_FILE_COUNT end = eof;
        
        /* Check if the filename matches all conditions */
        if filename = "DPS_cais_DPSCAIS_Interactive_Workbook_&amp;amp;date..xlsm" and
           filename = "DPS_cais_DPSCAIS_append_&amp;amp;date..csv" and
           filename = "DPS_cais_DPSCAIS_Summary_Report_&amp;amp;date..xlsx" then
        do;
            flag = 1; /* Set flag to 1 to indicate a "pass" */
            output; /* Output the record to the check_filenames dataset */
        end;
    end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not with AND. When you check a single variable for multiple values it will never be true for AND condition. A value cannot be 123 AND ABC at the same time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I would use&lt;/P&gt;
&lt;PRE&gt;        flag = filename in(     
                   "DPS_cais_DPSCAIS_Interactive_Workbook_&amp;amp;date..xlsm",
                   "DPS_cais_DPSCAIS_append_&amp;amp;date..csv"               ,
                   "DPS_cais_DPSCAIS_Summary_Report_&amp;amp;date..xlsx"
                  );
       &lt;/PRE&gt;
&lt;P&gt;IN tests if a variable is one of multiple values. The result of any logical comparison in SAS is 1 or 0 so you can assign values this way skipping the if/then to assign 1/0 when true/false.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 20:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/check-number-of-files/m-p/884258#M349337</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-07-10T20:29:42Z</dc:date>
    </item>
  </channel>
</rss>

