<?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: SASHELP.VCOLUMN issue in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SASHELP-VCOLUMN-issue/m-p/820565#M34827</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not know SASHELP.VCOLUMN very well.&lt;/P&gt;
&lt;P&gt;Instead I always use PROC SQL with the dictionary.columns dataset.&lt;/P&gt;
&lt;P&gt;But SASHELP.VCOLUMN is a view on this&amp;nbsp;dictionary.columns dataset (the latter you can only access via PROC SQL).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In dictionary.columns the libname and memname column are all in uppercase.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, I would recommend you try uppercase notation :&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; where libname='WORK' and memname in ('C2020','C2021');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; where libname='WORK' and memname in ('c2020' 'c2021');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Probably that is the solution to your problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2022 18:54:36 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2022-06-27T18:54:36Z</dc:date>
    <item>
      <title>SASHELP.VCOLUMN issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SASHELP-VCOLUMN-issue/m-p/820562#M34825</link>
      <description>&lt;P&gt;Dear Expert:&lt;/P&gt;
&lt;P&gt;i want to compare the format, label and variable names in two dataset. and i used the following code to do it. the code work very well for two of my compared datasets but the same code didn't work for another two compared dataset. there is no error message but log says&amp;nbsp; : "No observations were selected from data set SASHELP.VCOLUMN." . i just can't figure out the reason that caused this issue. please advise.&lt;BR /&gt;&lt;BR /&gt;data work.g2020;&lt;BR /&gt;set rsrbase0.g2020;&lt;BR /&gt;run;&lt;BR /&gt;data work.g2021;&lt;BR /&gt;set rsrbase1.g2021;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc tabulate data=sashelp.vcolumn;&lt;BR /&gt;title "compare name and types";&lt;BR /&gt;where libname='WORK' and memname in ('g2020' 'g2021');&lt;BR /&gt;class memname name type ;&lt;BR /&gt;table name*type,&lt;BR /&gt;memname &lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used the same code for another two dataset and works well:&lt;/P&gt;
&lt;P&gt;data work.c2020;&lt;BR /&gt;set rsrbase0.c2020;&lt;BR /&gt;run;&lt;BR /&gt;data work.c2021;&lt;BR /&gt;set rsrbase1.c2021;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc tabulate data=sashelp.vcolumn;&lt;BR /&gt;title "compare name and types";&lt;BR /&gt;where libname='WORK' and memname in ('c2020' 'c2021');&lt;BR /&gt;class memname name type ;&lt;BR /&gt;table name*type,&lt;BR /&gt;memname &lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 18:37:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SASHELP-VCOLUMN-issue/m-p/820562#M34825</guid>
      <dc:creator>juliajulia</dc:creator>
      <dc:date>2022-06-27T18:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: SASHELP.VCOLUMN issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SASHELP-VCOLUMN-issue/m-p/820565#M34827</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not know SASHELP.VCOLUMN very well.&lt;/P&gt;
&lt;P&gt;Instead I always use PROC SQL with the dictionary.columns dataset.&lt;/P&gt;
&lt;P&gt;But SASHELP.VCOLUMN is a view on this&amp;nbsp;dictionary.columns dataset (the latter you can only access via PROC SQL).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In dictionary.columns the libname and memname column are all in uppercase.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, I would recommend you try uppercase notation :&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; where libname='WORK' and memname in ('C2020','C2021');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; where libname='WORK' and memname in ('c2020' 'c2021');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Probably that is the solution to your problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 18:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SASHELP-VCOLUMN-issue/m-p/820565#M34827</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-06-27T18:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: SASHELP.VCOLUMN issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SASHELP-VCOLUMN-issue/m-p/820570#M34829</link>
      <description>&lt;P&gt;I seriously doubt that this has ever worked:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where libname='WORK' and memname in ('c2020' 'c2021');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Why? Memnames for Base SAS libraries are always uppercase in the DICTIONARY tables. So it has to be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where libname='WORK' and memname in ('C2020' 'C2021');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Jun 2022 19:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SASHELP-VCOLUMN-issue/m-p/820570#M34829</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-27T19:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: SASHELP.VCOLUMN issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SASHELP-VCOLUMN-issue/m-p/820615#M34836</link>
      <description>&lt;P&gt;Libname and Memname are stored in the views in upper case. But variable names are not. You may want to consider creating a data set so that you can apply UPCASE , or Lowcase, to the Name of variables so that Proc Tabulate will treat names that differ in case as the same variable for the report.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 00:19:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SASHELP-VCOLUMN-issue/m-p/820615#M34836</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-28T00:19:21Z</dc:date>
    </item>
  </channel>
</rss>

