<?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: How to check all the variables in multiple datasets (single folder) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852241#M336900</link>
    <description>sorry, i thought Tom was correcting me (above) and i changed the terminology to match his correction, im not very good at this stuff and sorry for the confusion my communication skills are causing.&lt;BR /&gt;the two comments you left:&lt;BR /&gt;1. So you do not want to remove variables, but values??&lt;BR /&gt;2. So you need to check for the given variables that the count of non-missing values is zero?&lt;BR /&gt;Were both correct and that's what i've tried to do with proc sql and count steps, but as the number of variables to check increases i think there must be a better/faster way to do this?</description>
    <pubDate>Thu, 05 Jan 2023 08:41:36 GMT</pubDate>
    <dc:creator>2222</dc:creator>
    <dc:date>2023-01-05T08:41:36Z</dc:date>
    <item>
      <title>How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/850708#M336189</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;Can anyone help me to see if in multiple datasets an array or list of variables exists? Ideally, the code would check the "dirty" datasets and then compare these to the corresponding "cleaned" dataset checking for a set of variables that have (hopefully) been removed from the "dirty" datasets making them the "cleaned" datasets. For example, datasets1-5 have variables that have been removed to create dataset1(-5)_cleaned and id like some code to check to make sure all the "cleaning" has been done by returning a 0 or 1 or exists/does not exist for each variable in each cleaned dataset. (using sas EG)&lt;BR /&gt;Hope this makes some sense.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 05:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/850708#M336189</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2022-12-22T05:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/850715#M336191</link>
      <description>&lt;P&gt;Create dataset with your "allowed" variable names.&lt;/P&gt;
&lt;P&gt;Then, use DICTIONARY.COLUMNS:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table unclean as
  select memname, name
  from dictionary.columns
  where libname = "YOURLIB" and upcase(name) not in (select upcase(name) from allowed)
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;libname must be in uppercase.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 05:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/850715#M336191</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-22T05:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/850734#M336195</link>
      <description>&lt;P&gt;hi Kurt, thank you for replying.&lt;/P&gt;&lt;P&gt;could you please tell me what that code you wrote does and where do i put all the variables to check?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 07:14:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/850734#M336195</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2022-12-22T07:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/850747#M336199</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table unclean as
  select memname, name /* these are variables in the COLUMNS pseudo-table */
  from dictionary.columns
  where
    libname = "YOURLIB" /* this should be the library containing your datasets */
    and upcase(name) not in
      (select upcase(name) from allowed) /* a sub-select querying a dataset */
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The dataset WORK.ALLOWED in my example needs to contain your valid variable names.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 08:48:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/850747#M336199</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-22T08:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/850891#M336262</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for the explanation. I tried this but got an error i dont know how to fix (below):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table unclean as&lt;BR /&gt;select memname, a90_cleaned, a95_cleaned /* these are variables in the COLUMNS pseudo-table */ (these are two of the many variables to check)&lt;BR /&gt;from dictionary.columns&lt;BR /&gt;where&lt;BR /&gt;libname = "\\SAS\D\S20\A\DATA" /* this should be the library containing your datasets */ (all the datasets are in this folder)&lt;BR /&gt;and upcase(name) not in&lt;BR /&gt;(select upcase(name) from allowed) /* a sub-select querying a dataset */&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.PNG" style="width: 845px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78829i15E42E6EB74C3E62/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.PNG" alt="error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 02:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/850891#M336262</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2022-12-23T02:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/850902#M336271</link>
      <description>&lt;P&gt;You have to create the dataset WORK.ALLOWED first, with a variable called NAME which contains your valid variable names. You can use a DATA step with DATALINES for this (unless you already have another source for this).&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 06:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/850902#M336271</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-12-23T06:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/851887#M336739</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;Thank you and happy new year!&lt;/P&gt;&lt;P&gt;I think I have miscommunicated the goal and so please forgive me for making it more complicated that it needed to be.&lt;/P&gt;&lt;P&gt;What I'm trying to do is see if, within a dataset, a certain variable value has been removed. The variable itself (the column name) will remain but the goal of the checking is to make sure sure that the cell has been cleared. There are 10 datasets and about 10 variables in each ds (some of which have the same name in each ds). So i just want to make sure that the code that cleans the dirty dataset has done its job. Maybe a count and compare would do it?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 06:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/851887#M336739</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2023-01-03T06:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/851896#M336743</link>
      <description>&lt;P&gt;I did this and the results say 0 for each variable so im assuming that means there is nothing in each of the variable columns, but this seems wrong/ugly and if i had a million variables id have to type them all in which seems wrong:&lt;BR /&gt;&lt;BR /&gt;libname mylib "\\folder path";&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select count(a7) as a7,&lt;BR /&gt;count(e1) as e1,&lt;BR /&gt;count(m2) as m2,&lt;BR /&gt;count(p) as p,&lt;BR /&gt;from mylib.w90_cleaned;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 08:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/851896#M336743</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2023-01-03T08:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/851910#M336751</link>
      <description>&lt;P&gt;So you do not want to remove &lt;EM&gt;variables&lt;/EM&gt;, but &lt;EM&gt;values&lt;/EM&gt;??&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 10:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/851910#M336751</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-03T10:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/851913#M336753</link>
      <description>I do not fully understand your problem. &lt;BR /&gt;1. Do you want to query a specific table/dataset or are you after a generic solution (i.e. applicable to any dataset)?&lt;BR /&gt;2. What does "variable has been cleared" mean? Would you like to check a table per row if a certain variable and its value?&lt;BR /&gt;3. ... and following #2: What does "cleared" mean. Set to something or containing "." (i.e. is missing)?&lt;BR /&gt;--fja</description>
      <pubDate>Tue, 03 Jan 2023 10:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/851913#M336753</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-01-03T10:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852064#M336820</link>
      <description>Someone else has written code to remove the values (these are old values that are no longer valid), i want to check to make sure that the values have indeed been removed.</description>
      <pubDate>Wed, 04 Jan 2023 01:17:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852064#M336820</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2023-01-04T01:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852065#M336821</link>
      <description>hello fja, thank you. cleared means the values have been deleted/removed, the variable, as a column header still remains, but i need to make sure/check that the values for the variable are all gone/have been removed. some values are string, some are numbers. there are multiple datasets that i need to check</description>
      <pubDate>Wed, 04 Jan 2023 01:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852065#M336821</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2023-01-04T01:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852066#M336822</link>
      <description>&lt;P&gt;So you need to check for the given variables that the count of non-missing values is zero?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 01:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852066#M336822</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-04T01:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852067#M336823</link>
      <description>yes sir. wish i had written it like you just did, sorry.</description>
      <pubDate>Wed, 04 Jan 2023 01:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852067#M336823</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2023-01-04T01:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852070#M336824</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/404165"&gt;@2222&lt;/a&gt;&amp;nbsp;Before talking this any further can you please confirm if below code is heading into the direction of what you're after?&lt;/P&gt;
&lt;P&gt;If it is not then can you please be as specific as possible what you want and ideally provide a have and a want table/example so we can understand.&lt;/P&gt;
&lt;P&gt;If below code is heading into the direction of what you're after then please specify further:&lt;BR /&gt;1. Are the variables to test of type character or of type numeric?&lt;/P&gt;
&lt;P&gt;2. Can there be more than one value you need to search for?&lt;/P&gt;
&lt;P&gt;3. Is this a one-off or something you need to run on a regular basis?&lt;/P&gt;
&lt;P&gt;...and I just read in your latest post that "some variables are string, some are numbers": I guess this means that unlike to your initial post you actually need to check for different values (or list of values) per variable. Can you please be specific and best provide some representative sample data and desired result as this often reduces requirement ambiguity a lot.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro exceptions(libname=,memname=,varname=,value=,exception_tbl=work.exceptions);

  proc datasets lib=work nolist nowarn;
    delete __exceptions;
  quit;

  data work.__exceptions;
    length
      __libname $8
      __memname $32
      __rownum  8
      __varname $32
      __value   $100
      ;
    keep
      __libname
      __memname
      __rownum
      __varname
      __value
      ;
    rename 
      __libname=libname
      __memname=memname
      __rownum =rownum
      __varname=varname
      __value  =value
      ;

    set &amp;amp;libname..&amp;amp;memname;
    if &amp;amp;varname="&amp;amp;value" then
      do;
        __libname="%upcase(&amp;amp;libname)";
        __memname="%upcase(&amp;amp;memname)";
        __rownum=_n_;
        __varname="&amp;amp;varname";
        __value="&amp;amp;value";
        output;
      end;
  run;

  proc append base=&amp;amp;exception_tbl data=work.__exceptions;
  run;

%mend;


proc datasets lib=work nolist nowarn;
  delete exceptions;
quit;

%exceptions(libname=sashelp,memname=class,varname=name,value=Louise);
%exceptions(libname=sashelp,memname=classfit,varname=name,value=Louise);

proc print data=work.exceptions;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1672797335294.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79020i7AD91973299F0457/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1672797335294.png" alt="Patrick_0-1672797335294.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 02:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852070#M336824</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-01-04T02:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852071#M336825</link>
      <description>Hello Patrick, thank you for your reply and help. It really is just as Kirk said "So you need to check for the given variables that the count of non-missing values is zero?"</description>
      <pubDate>Wed, 04 Jan 2023 02:08:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852071#M336825</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2023-01-04T02:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852081#M336830</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/404165"&gt;@2222&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hello Patrick, thank you for your reply and help. It really is just as Kirk said "So you need to check for the given variables that the count of non-missing values is zero?"&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then I leave it to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;to support you further.&lt;/P&gt;
&lt;P&gt;The way I understood your requirement only certain values would have been deleted resulting in the variable having rows ("cells") with missing values and other rows with actual still valid values.&lt;/P&gt;
&lt;P&gt;That's what the code I posted is doing: Creating an exception table for all the "cells" with invalid values (the ones that should have been deleted). If everything is o.k. then this exception table has no rows.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 03:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852081#M336830</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-01-04T03:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852082#M336831</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/404165"&gt;@2222&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Someone else has written code to remove the values (these are old values that are no longer valid), i want to check to make sure that the values have indeed been removed.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does that mean?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Terminology clarification.&amp;nbsp; SAS datasets consist of OBSERVATIONS (what you might call a row in a spreadsheet or a printed reported) and VARIABLES (what you might call a column in a spreadsheet or a printed report).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean they changed the values of some the variables to something else?&amp;nbsp; What did they change them to?&lt;BR /&gt;Do you mean they deleted the OBSERVATIONS that had an invalid value for at least one of the VARIABLES?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you know which values are invalid?&amp;nbsp; What makes them invalid?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You mentioned before about comparing the "original" and the "clean" dataset. If you have a lot of datasets how to know which ones to compare to each other?&amp;nbsp; Is there some pattern in the NAME of the datasets?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 04:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852082#M336831</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-01-04T04:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852083#M336832</link>
      <description>Hi Tom, thanks for replying. Kurt is onto it i think. Basically there are datasets that have observations that were outdated (all were outdated) and someone deleted them all by hand. My job is to check, that for each specified variable within a dataset there should are no observations (make sure they have indeed all been removed). I made a mistake by saying i wanted to compare them and Kurt helped to clarify the wording of what we actually want to do, there is no need to compare the datasets, we just want to check the datasets have been "cleaned" ie had all the observations for the variables in question, removed. We still need to keep the variables though because the structure of the dataset needs to remain the same.</description>
      <pubDate>Wed, 04 Jan 2023 04:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852083#M336832</guid>
      <dc:creator>2222</dc:creator>
      <dc:date>2023-01-04T04:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to check all the variables in multiple datasets (single folder)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852097#M336836</link>
      <description>&lt;P&gt;Please use correct diction. A variable cannot "have observations".&lt;/P&gt;
&lt;P&gt;A dataset consists of observations (records or rows), which contain variables (columns), and the variables contain values.&lt;/P&gt;
&lt;P&gt;As long as there are observations in a dataset, all variables defined will have values. These values may be missing or non-missing. You cannot have a "variable with no observations", unless the dataset is empty (no observations at all).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In light of this, restate your issue, using the correct terms.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 10:21:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-check-all-the-variables-in-multiple-datasets-single/m-p/852097#M336836</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-01-04T10:21:21Z</dc:date>
    </item>
  </channel>
</rss>

