<?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: replace the value 999 by a period '.' in a data set in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/replace-the-value-999-by-a-period-in-a-data-set/m-p/778432#M31522</link>
    <description>&lt;P&gt;You've been almost there.&lt;/P&gt;
&lt;P&gt;A dot is how SAS prints by default a missing value for a numerical variable. You can also use a dot in SAS syntax to assign missing to a SAS numerical variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ex18;
  input age @@;
  /*if age=999 then (I don't know what to put here);*/
  if age=999 then age=.;
  datalines;
18 30 25 999 42 36 999
;
run;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Nov 2021 07:06:38 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2021-11-04T07:06:38Z</dc:date>
    <item>
      <title>replace the value 999 by a period '.' in a data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/replace-the-value-999-by-a-period-in-a-data-set/m-p/778425#M31521</link>
      <description>&lt;P&gt;&lt;SPAN&gt;18.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The following raw data records contain the age of each individual customer. A value of 999 was used to represent a missing age value. Write an instream DATA step that will read the records and replace the value 999 with a period '.'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;18 30 25 999 42 36 999&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data ex18;&lt;BR /&gt;input age @@;&lt;BR /&gt;if age=999 then (I don't know what to put here);&lt;BR /&gt;datalines;&lt;BR /&gt;18 30 25 999 42 36 999&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 06:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/replace-the-value-999-by-a-period-in-a-data-set/m-p/778425#M31521</guid>
      <dc:creator>chriswong1386</dc:creator>
      <dc:date>2021-11-04T06:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: replace the value 999 by a period '.' in a data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/replace-the-value-999-by-a-period-in-a-data-set/m-p/778432#M31522</link>
      <description>&lt;P&gt;You've been almost there.&lt;/P&gt;
&lt;P&gt;A dot is how SAS prints by default a missing value for a numerical variable. You can also use a dot in SAS syntax to assign missing to a SAS numerical variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ex18;
  input age @@;
  /*if age=999 then (I don't know what to put here);*/
  if age=999 then age=.;
  datalines;
18 30 25 999 42 36 999
;
run;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 07:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/replace-the-value-999-by-a-period-in-a-data-set/m-p/778432#M31522</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-11-04T07:06:38Z</dc:date>
    </item>
  </channel>
</rss>

