<?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 Changing ID of observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Changing-ID-of-observations/m-p/799768#M314510</link>
    <description>&lt;P&gt;I have dataset with patients' IDs numbered in no sequential way. I want to make change to all the IDs.&lt;/P&gt;
&lt;P&gt;For example patient 002 would be after the change: F1-1-KIDN-002.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is just adding&amp;nbsp; "F1-1-KIDN-" in front of the original ID.&lt;/P&gt;
&lt;P&gt;I give an example of how the data looks like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id,C1,C2,C3,C4&lt;BR /&gt;002,4.19855,5.74574,33.46678,6.85391&lt;BR /&gt;007,3.48004,6.69138,31.85662,11.73753&lt;BR /&gt;009,3.33851,5.74293,36.09064,10.9801&lt;BR /&gt;020,3.2966,8.15718,30.27008,7.62836&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>Thu, 03 Mar 2022 07:49:18 GMT</pubDate>
    <dc:creator>Job04</dc:creator>
    <dc:date>2022-03-03T07:49:18Z</dc:date>
    <item>
      <title>Changing ID of observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-ID-of-observations/m-p/799768#M314510</link>
      <description>&lt;P&gt;I have dataset with patients' IDs numbered in no sequential way. I want to make change to all the IDs.&lt;/P&gt;
&lt;P&gt;For example patient 002 would be after the change: F1-1-KIDN-002.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is just adding&amp;nbsp; "F1-1-KIDN-" in front of the original ID.&lt;/P&gt;
&lt;P&gt;I give an example of how the data looks like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id,C1,C2,C3,C4&lt;BR /&gt;002,4.19855,5.74574,33.46678,6.85391&lt;BR /&gt;007,3.48004,6.69138,31.85662,11.73753&lt;BR /&gt;009,3.33851,5.74293,36.09064,10.9801&lt;BR /&gt;020,3.2966,8.15718,30.27008,7.62836&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>Thu, 03 Mar 2022 07:49:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-ID-of-observations/m-p/799768#M314510</guid>
      <dc:creator>Job04</dc:creator>
      <dc:date>2022-03-03T07:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ID of observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-ID-of-observations/m-p/799771#M314512</link>
      <description>&lt;P&gt;Is id currently stored as numeric or character?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Posting example data in a data step with datalines would have made this question unnecessary.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 08:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-ID-of-observations/m-p/799771#M314512</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-03T08:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ID of observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-ID-of-observations/m-p/799772#M314513</link>
      <description>&lt;P&gt;Numeric&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 08:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-ID-of-observations/m-p/799772#M314513</guid>
      <dc:creator>Job04</dc:creator>
      <dc:date>2022-03-03T08:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Changing ID of observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-ID-of-observations/m-p/799776#M314516</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have (rename=(id=_id));
length id $13;
id = "F1-1-KIDN-" !! put(_id,z3.);
drop _id;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Mar 2022 08:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-ID-of-observations/m-p/799776#M314516</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-03T08:34:23Z</dc:date>
    </item>
  </channel>
</rss>

