<?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: arrays to change values to missing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/arrays-to-change-values-to-missing/m-p/344846#M79286</link>
    <description>You are trying to update the numeric variables values to character value 'missing'. Hence  it is not working i guess. Please try to create new character variables corresponding to the numeric variables and in them you could populate the missing value if the corresponding numeric values is zero in those variables. &lt;BR /&gt;&lt;BR /&gt;could you please try this.&lt;BR /&gt;&lt;BR /&gt;array change(6) gpa sat satm satv act toefl;&lt;BR /&gt;array changec(6)$10 gpac satc satmc satvc actc toeflc;&lt;BR /&gt;do i = 1 TO 6;&lt;BR /&gt;if change(i) = 0 then changec(i) = 'missing';&lt;BR /&gt;else changec(i) = put(change(i),best.);&lt;BR /&gt;end;&lt;BR /&gt;run;</description>
    <pubDate>Tue, 28 Mar 2017 01:37:31 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2017-03-28T01:37:31Z</dc:date>
    <item>
      <title>arrays to change values to missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/arrays-to-change-values-to-missing/m-p/344845#M79285</link>
      <description>&lt;P&gt;array change (6) gpa, sat, satm, satv, act, toefl;&lt;BR /&gt;do i = 1 TO 6;&lt;BR /&gt;if change(i) = 0 then change(i) = 'missing';&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;want to make this array change each 0 value to missing but it isnt working...&lt;/P&gt;&lt;P&gt;any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 01:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/arrays-to-change-values-to-missing/m-p/344845#M79285</guid>
      <dc:creator>larkjr18</dc:creator>
      <dc:date>2017-03-28T01:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: arrays to change values to missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/arrays-to-change-values-to-missing/m-p/344846#M79286</link>
      <description>You are trying to update the numeric variables values to character value 'missing'. Hence  it is not working i guess. Please try to create new character variables corresponding to the numeric variables and in them you could populate the missing value if the corresponding numeric values is zero in those variables. &lt;BR /&gt;&lt;BR /&gt;could you please try this.&lt;BR /&gt;&lt;BR /&gt;array change(6) gpa sat satm satv act toefl;&lt;BR /&gt;array changec(6)$10 gpac satc satmc satvc actc toeflc;&lt;BR /&gt;do i = 1 TO 6;&lt;BR /&gt;if change(i) = 0 then changec(i) = 'missing';&lt;BR /&gt;else changec(i) = put(change(i),best.);&lt;BR /&gt;end;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 28 Mar 2017 01:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/arrays-to-change-values-to-missing/m-p/344846#M79286</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-03-28T01:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: arrays to change values to missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/arrays-to-change-values-to-missing/m-p/344848#M79287</link>
      <description>&lt;P&gt;Perfect thank you.&lt;/P&gt;&lt;P&gt;If I wanted to keep it a numeric value could I use my old code and just use (missing) or something?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 01:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/arrays-to-change-values-to-missing/m-p/344848#M79287</guid>
      <dc:creator>larkjr18</dc:creator>
      <dc:date>2017-03-28T01:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: arrays to change values to missing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/arrays-to-change-values-to-missing/m-p/344849#M79288</link>
      <description>Yes, if you want to make the zero to missing (.) then yes you could use your old code. But i think in the array you cannot separate the variables by comma as they will be considered as values , just separate the variables in array by space.&lt;BR /&gt;&lt;BR /&gt;array change(6) gpa sat satm satv act toefl;&lt;BR /&gt;do i = 1 TO 6;&lt;BR /&gt;if change(i) = 0 then change(i) =.;&lt;BR /&gt;end;</description>
      <pubDate>Tue, 28 Mar 2017 01:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/arrays-to-change-values-to-missing/m-p/344849#M79288</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-03-28T01:59:11Z</dc:date>
    </item>
  </channel>
</rss>

