<?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: SAS real-time scenario in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589034#M168407</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/231696"&gt;@Siddhu&lt;/a&gt;&amp;nbsp;welcome to the SAS Community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Next time you post a question, please do not specify your request in an image file. Describe your problem and provide usable code. Makes it much easier to help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here you go though&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id type $ A B C;
datalines;
1 A 10 100 200
2 B 15 105 300
3 C 20 120 200
4 B 30 125 300
5 A 25 110 400
;

data want;
    set have;
    array _{*} A--C;
    do i=1 to dim(_);
        if vname(_[i])=type then value=_[i];
    end;
    keep id type value;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 16 Sep 2019 13:11:11 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-09-16T13:11:11Z</dc:date>
    <item>
      <title>SAS real-time scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589030#M168406</link>
      <description>&lt;P&gt;Please go through the pdf file for full details.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 13:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589030#M168406</guid>
      <dc:creator>Siddhu</dc:creator>
      <dc:date>2019-09-16T13:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS real-time scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589034#M168407</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/231696"&gt;@Siddhu&lt;/a&gt;&amp;nbsp;welcome to the SAS Community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Next time you post a question, please do not specify your request in an image file. Describe your problem and provide usable code. Makes it much easier to help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here you go though&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id type $ A B C;
datalines;
1 A 10 100 200
2 B 15 105 300
3 C 20 120 200
4 B 30 125 300
5 A 25 110 400
;

data want;
    set have;
    array _{*} A--C;
    do i=1 to dim(_);
        if vname(_[i])=type then value=_[i];
    end;
    keep id type value;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Sep 2019 13:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589034#M168407</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-16T13:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS real-time scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589035#M168408</link>
      <description>&lt;P&gt;Please try the below code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id type$ a b c d;
cards;
1 A 1 2 3 4
2 B 1 2 3 4
3 C 1 2 3 4
;

data want;
set have;
array vars(*) a b c d ;
do i = 1 to dim(vars);
if lowcase(type)=lowcase(vname(vars(i))) then value=vars(i);
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Sep 2019 13:11:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589035#M168408</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-09-16T13:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS real-time scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589227#M168494</link>
      <description>&lt;P&gt;Can you please explain me about the background work of "vname" in SAS arrays. If possible, please try to explain it by a video or post a link as I couldn't get it.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 02:04:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589227#M168494</guid>
      <dc:creator>Siddhu</dc:creator>
      <dc:date>2019-09-17T02:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS real-time scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589263#M168516</link>
      <description>&lt;P&gt;Whenever you encounter a function in SAS you're unsure of, do consult the documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in this case&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n1cjm0xdeczcd5n1s7d8ah9x8432.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;SAS Documentation:&amp;nbsp;VNAME Function&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 06:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589263#M168516</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-17T06:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS real-time scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589318#M168539</link>
      <description>&lt;P&gt;Why not use VVALUEX()&amp;nbsp; ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want2;
 set have;
 value=vvaluex(type);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Sep 2019 11:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589318#M168539</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-09-17T11:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS real-time scenario</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589319#M168540</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;tbh, didn't even cross my mind &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Kudos!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 11:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-real-time-scenario/m-p/589319#M168540</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-17T11:56:03Z</dc:date>
    </item>
  </channel>
</rss>

