<?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: interate a list so that there is a dot in the name of the items in the list in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/interate-a-list-so-that-there-is-a-dot-in-the-name-of-the-items/m-p/801042#M315221</link>
    <description>Thanks! Works fine.</description>
    <pubDate>Wed, 09 Mar 2022 11:37:46 GMT</pubDate>
    <dc:creator>ger15xxhcker</dc:creator>
    <dc:date>2022-03-09T11:37:46Z</dc:date>
    <item>
      <title>interate a list so that there is a dot in the name of the items in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/interate-a-list-so-that-there-is-a-dot-in-the-name-of-the-items/m-p/801040#M315219</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to go through the elements of a list but there is a dot in the name of the elements of the list and there it separates the elements of the list I only want to separate them along the spaces.&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=""&gt;%macro px;

%let value = x.yy a.yy;
%local i next_value;
%let i=1;
%do %while (%scan(&amp;amp;value, &amp;amp;i) ne );
   %let next_value = %scan(&amp;amp;value, &amp;amp;i);
%put &amp;amp;next_value;
%let i = %eval(&amp;amp;i + 1);
%end;&lt;BR /&gt;
%mend;

%px;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;x&lt;/DIV&gt;&lt;DIV&gt;yy&lt;/DIV&gt;&lt;DIV&gt;a&lt;/DIV&gt;&lt;DIV&gt;yy&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I want this:&lt;/DIV&gt;&lt;DIV&gt;x.yy&lt;/DIV&gt;&lt;DIV&gt;a.yy&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Mar 2022 11:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/interate-a-list-so-that-there-is-a-dot-in-the-name-of-the-items/m-p/801040#M315219</guid>
      <dc:creator>ger15xxhcker</dc:creator>
      <dc:date>2022-03-09T11:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: interate a list so that there is a dot in the name of the items in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/interate-a-list-so-that-there-is-a-dot-in-the-name-of-the-items/m-p/801041#M315220</link>
      <description>&lt;P&gt;You have to specifically tell the SCAN function to only use spaces as word delimiter, and not spaces plus periods plus other special symbols (which is the default). Modify these two lines as shown&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%do %while (%scan(&amp;amp;value, &amp;amp;i) ne %str( ));
   %let next_value = %scan(&amp;amp;value, &amp;amp;i, %str( ));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Mar 2022 11:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/interate-a-list-so-that-there-is-a-dot-in-the-name-of-the-items/m-p/801041#M315220</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-03-09T11:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: interate a list so that there is a dot in the name of the items in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/interate-a-list-so-that-there-is-a-dot-in-the-name-of-the-items/m-p/801042#M315221</link>
      <description>Thanks! Works fine.</description>
      <pubDate>Wed, 09 Mar 2022 11:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/interate-a-list-so-that-there-is-a-dot-in-the-name-of-the-items/m-p/801042#M315221</guid>
      <dc:creator>ger15xxhcker</dc:creator>
      <dc:date>2022-03-09T11:37:46Z</dc:date>
    </item>
  </channel>
</rss>

