<?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 How to mask unique identifier variable to make data anonymous yet keeping logical structure? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-mask-unique-identifier-variable-to-make-data-anonymous/m-p/425017#M68253</link>
    <description>&lt;P&gt;I have a repeated measurement data of individuals.&amp;nbsp;How to&amp;nbsp;mask the unique identifier variable (before&amp;nbsp;data sharing)&amp;nbsp;while keeping&amp;nbsp;nature of repeated records and&amp;nbsp;other logics embedded?&amp;nbsp;&amp;nbsp;Uniq_id variable is very long in and length and numeric. Using SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data temp; 
input uniq_id;
datalines;
2007122345567889
2007122345567889
2007122345567889
2008235689875421
2008235689875421
2008235689875421
;
data temp; set temp;
format uniq_id 20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2018 18:47:16 GMT</pubDate>
    <dc:creator>Cruise</dc:creator>
    <dc:date>2018-01-04T18:47:16Z</dc:date>
    <item>
      <title>How to mask unique identifier variable to make data anonymous yet keeping logical structure?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-mask-unique-identifier-variable-to-make-data-anonymous/m-p/425017#M68253</link>
      <description>&lt;P&gt;I have a repeated measurement data of individuals.&amp;nbsp;How to&amp;nbsp;mask the unique identifier variable (before&amp;nbsp;data sharing)&amp;nbsp;while keeping&amp;nbsp;nature of repeated records and&amp;nbsp;other logics embedded?&amp;nbsp;&amp;nbsp;Uniq_id variable is very long in and length and numeric. Using SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data temp; 
input uniq_id;
datalines;
2007122345567889
2007122345567889
2007122345567889
2008235689875421
2008235689875421
2008235689875421
;
data temp; set temp;
format uniq_id 20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 18:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-mask-unique-identifier-variable-to-make-data-anonymous/m-p/425017#M68253</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2018-01-04T18:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to mask unique identifier variable to make data anonymous yet keeping logical structure?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-mask-unique-identifier-variable-to-make-data-anonymous/m-p/425038#M68254</link>
      <description>&lt;P&gt;1. Create a list of your ID's, only unique values&lt;/P&gt;
&lt;P&gt;2. Create a list of random IDs in the data set from step1, keeping the seed value stored - you'll want to keep track of the seeds over time so I recommend keeping a master file of seeds.&lt;/P&gt;
&lt;P&gt;3. Match ID to RandomID so that an ID for a person is constant throughout the data set but it doesn't have the any significance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fully worked example here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/fd94b0b6e78815430c1340e8c19f8644" target="_blank"&gt;https://gist.github.com/statgeek/fd94b0b6e78815430c1340e8c19f8644&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 19:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-mask-unique-identifier-variable-to-make-data-anonymous/m-p/425038#M68254</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-04T19:55:56Z</dc:date>
    </item>
  </channel>
</rss>

