<?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: Trouble with indsname in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trouble-with-indsname/m-p/490014#M128090</link>
    <description>&lt;P&gt;Note that I changed the subject of your question. "SET" as a subject is not helpful for finding posts specific to an issue.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Aug 2018 09:28:03 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-08-27T09:28:03Z</dc:date>
    <item>
      <title>Trouble with indsname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-with-indsname/m-p/490009#M128086</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why mon field is not calculated correctly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tbl1807;
input x;
cards;
1
2
3
;
run;
data tbl1806;
input x;
cards;
4
5
;
run;
data tbl1712;
input x;
cards;
7
8
9
;
run;
data combined;
set tbl1807 tbl1806 tbl1712 indsname=ds;
length mon $5;
mon=substr(scan(ds,3,','),5);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Aug 2018 09:26:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-with-indsname/m-p/490009#M128086</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-08-27T09:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with indsname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-with-indsname/m-p/490013#M128089</link>
      <description>&lt;P&gt;Just run this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data combined;
set tbl1807 tbl1806 tbl1712 indsname=ds;
dsname = ds;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and you'll see why both the scan() and the substr() in your code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data combined;
set tbl1807 tbl1806 tbl1712 indsname=ds;
length mon $5;
mon=substr(scan(ds,3,','),5);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;can't work.&lt;/P&gt;
&lt;P&gt;Maxim 3: Know your Data. Can be extended to "know your variables" &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 09:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-with-indsname/m-p/490013#M128089</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-27T09:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with indsname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-with-indsname/m-p/490014#M128090</link>
      <description>&lt;P&gt;Note that I changed the subject of your question. "SET" as a subject is not helpful for finding posts specific to an issue.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 09:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-with-indsname/m-p/490014#M128090</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-27T09:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with indsname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trouble-with-indsname/m-p/490036#M128097</link>
      <description>&lt;P&gt;I assumed you are trying to extract numeric value of indsname.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data combined;
set tbl1807 tbl1806 tbl1712 indsname=ds;
dsname=ds;
mon=compress(dsname,,'ap');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Aug 2018 11:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trouble-with-indsname/m-p/490036#M128097</guid>
      <dc:creator>muratatik</dc:creator>
      <dc:date>2018-08-27T11:54:32Z</dc:date>
    </item>
  </channel>
</rss>

