<?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: how to create flags for variables with no indentation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-flags-for-variables-with-no-indentation/m-p/715179#M220888</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not yet checked but I think you want something like that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;

&amp;nbsp;set have;

&amp;nbsp; &amp;nbsp;If substr(LABEL,1,1)=' ' then i=1;

&amp;nbsp; else i=0;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2021 06:10:08 GMT</pubDate>
    <dc:creator>ResoluteCarbon</dc:creator>
    <dc:date>2021-01-29T06:10:08Z</dc:date>
    <item>
      <title>how to create flags for variables with no indentation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-flags-for-variables-with-no-indentation/m-p/715173#M220882</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to see if&amp;nbsp; I can create a flag variable for values with indentations and no indenation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_0-1611898231731.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54057i64C1A4394D0D3C1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_0-1611898231731.png" alt="HitmonTran_0-1611898231731.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 05:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-flags-for-variables-with-no-indentation/m-p/715173#M220882</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2021-01-29T05:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to create flags for variables with no indentation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-flags-for-variables-with-no-indentation/m-p/715175#M220884</link>
      <description>&lt;P&gt;For the indented variables, is the first character a blank? If so, you can use the SUBSTR function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi25/25/cc/25p088.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/proceedings/sugi25/25/cc/25p088.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 05:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-flags-for-variables-with-no-indentation/m-p/715175#M220884</guid>
      <dc:creator>Norman21</dc:creator>
      <dc:date>2021-01-29T05:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to create flags for variables with no indentation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-flags-for-variables-with-no-indentation/m-p/715179#M220888</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not yet checked but I think you want something like that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;

&amp;nbsp;set have;

&amp;nbsp; &amp;nbsp;If substr(LABEL,1,1)=' ' then i=1;

&amp;nbsp; else i=0;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 06:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-flags-for-variables-with-no-indentation/m-p/715179#M220888</guid>
      <dc:creator>ResoluteCarbon</dc:creator>
      <dc:date>2021-01-29T06:10:08Z</dc:date>
    </item>
  </channel>
</rss>

