<?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: getting non missing value into new variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557311#M155337</link>
    <description>&lt;P&gt;You're right.&amp;nbsp; I was using a handheld where I couldn't actually see the sample data.&amp;nbsp; Oh well.&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2019 22:24:47 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2019-05-08T22:24:47Z</dc:date>
    <item>
      <title>getting non missing value into new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557290#M155323</link>
      <description>&lt;P&gt;I have data in the format where there are variable from eci01nam to eci20nam. Only one value would be present for each observation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to get that non missing&amp;nbsp; value into new variable.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 21:24:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557290#M155323</guid>
      <dc:creator>yashraj89</dc:creator>
      <dc:date>2019-05-08T21:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: getting non missing value into new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557292#M155324</link>
      <description>&lt;P&gt;Use a CAT function to pull the information in. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WANT = CATS(of eci01nam-eci20nam);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/189817"&gt;@yashraj89&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have data in the format where there are variable from eci01nam to eci20nam. Only one value would be present for each observation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i want to get that non missing&amp;nbsp; value into new variable.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 21:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557292#M155324</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-08T21:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: getting non missing value into new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557293#M155325</link>
      <description>It's easy as long as those 20 are the only variable names that begin with "eci":&lt;BR /&gt;&lt;BR /&gt;newvar = max (of eci: ) ;</description>
      <pubDate>Wed, 08 May 2019 21:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557293#M155325</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-05-08T21:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: getting non missing value into new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557297#M155327</link>
      <description>I think MAX() only works on numeric variables in a data step.</description>
      <pubDate>Wed, 08 May 2019 21:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557297#M155327</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-08T21:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: getting non missing value into new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557304#M155330</link>
      <description>&lt;P&gt;I think it will work but first i have to convert the variable numeric suffix. It throughs the error&lt;/P&gt;&lt;P&gt;ERROR: Missing numeric suffix on a numbered variable list (eci01nam-eci18nam).&lt;BR /&gt;ERROR 71-185: The CATS function call does not have enough arguments.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 22:04:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557304#M155330</guid>
      <dc:creator>yashraj89</dc:creator>
      <dc:date>2019-05-08T22:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: getting non missing value into new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557306#M155332</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp; Mam , Are you telling me you forgot &lt;STRONG&gt;coalescec&lt;/STRONG&gt;?&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;WANT &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;STRONG&gt;coalescec&lt;/STRONG&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;of eci01nam&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;eci20nam&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or did you not have coffee or you must be tired?&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 22:14:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557306#M155332</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-05-08T22:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: getting non missing value into new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557309#M155335</link>
      <description>&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 22:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557309#M155335</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-08T22:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: getting non missing value into new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557311#M155337</link>
      <description>&lt;P&gt;You're right.&amp;nbsp; I was using a handheld where I couldn't actually see the sample data.&amp;nbsp; Oh well.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 22:24:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/getting-non-missing-value-into-new-variable/m-p/557311#M155337</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-05-08T22:24:47Z</dc:date>
    </item>
  </channel>
</rss>

