<?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: Importing a text file in SAS of social security numbers and finding where it belongs in which li in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-text-file-in-SAS-of-social-security-numbers-and/m-p/768168#M243623</link>
    <description>&lt;P&gt;Are you looking to create a permanent data set that can be used for look-ups? Or is this a one time thing?&lt;/P&gt;
&lt;P&gt;Are the data sets in your Company library static or do they change (new files or content of existing files have records appended)?&lt;/P&gt;
&lt;P&gt;Do all of your data sets have the same variable name for social security number? The same properties (all numeric or all character with the same defined length)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your data set Test does not actually read anything (Input lists variables, not files, the file IN would be on an INFILE statement) your code doesn't do much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS does have tools to examine the contents of data sets and find specific variables and properties which is why I ask those questions at the top.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Sep 2021 17:28:56 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-09-16T17:28:56Z</dc:date>
    <item>
      <title>Importing a text file in SAS of social security numbers and finding where it belongs in which lib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-text-file-in-SAS-of-social-security-numbers-and/m-p/768166#M243621</link>
      <description>&lt;P&gt;I have multiple SAS data bases or libraries consisting of data.&lt;/P&gt;&lt;P&gt;One is titled for example company.teamblue_weekly and company.teamred_weekly. It is social security numbers and relevant columns to that entry. I received a text file of society security.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find where the social security in which databases listed above so I tried to do this.&lt;/P&gt;&lt;P&gt;filename in ("X:\folder\example.txt");&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input in;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=in;&lt;/P&gt;&lt;P&gt;by ssn;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data teamred teamblue;&lt;/P&gt;&lt;P&gt;merge in (in=a)&lt;/P&gt;&lt;P&gt;company.teamblue_weekly (in=b);&lt;/P&gt;&lt;P&gt;by ssn;&lt;/P&gt;&lt;P&gt;if a then output teamblue;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is what i was trying to do but i am not sure. Would anyone assist?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 17:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-a-text-file-in-SAS-of-social-security-numbers-and/m-p/768166#M243621</guid>
      <dc:creator>kmin87</dc:creator>
      <dc:date>2021-09-16T17:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a text file in SAS of social security numbers and finding where it belongs in which li</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-text-file-in-SAS-of-social-security-numbers-and/m-p/768168#M243623</link>
      <description>&lt;P&gt;Are you looking to create a permanent data set that can be used for look-ups? Or is this a one time thing?&lt;/P&gt;
&lt;P&gt;Are the data sets in your Company library static or do they change (new files or content of existing files have records appended)?&lt;/P&gt;
&lt;P&gt;Do all of your data sets have the same variable name for social security number? The same properties (all numeric or all character with the same defined length)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your data set Test does not actually read anything (Input lists variables, not files, the file IN would be on an INFILE statement) your code doesn't do much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS does have tools to examine the contents of data sets and find specific variables and properties which is why I ask those questions at the top.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 17:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-a-text-file-in-SAS-of-social-security-numbers-and/m-p/768168#M243623</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-16T17:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a text file in SAS of social security numbers and finding where it belongs in which li</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-a-text-file-in-SAS-of-social-security-numbers-and/m-p/768178#M243627</link>
      <description>&lt;P&gt;They have the same variables name and same properties.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 18:19:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-a-text-file-in-SAS-of-social-security-numbers-and/m-p/768178#M243627</guid>
      <dc:creator>kmin87</dc:creator>
      <dc:date>2021-09-16T18:19:11Z</dc:date>
    </item>
  </channel>
</rss>

