<?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: FLAG in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/FLAG/m-p/6917#M2638</link>
    <description>Hi:&lt;BR /&gt;
  This question is probably not an ODS or Base Reporting procedure (PRINT, REPORT, TABULATE) question.&lt;BR /&gt;
&lt;BR /&gt;
  Generally, speaking, a column or field called "FLAG" is meant to signal some condition. Usually in a program. Imagine that I use the file SASHELP.CLASS and I want to answer some question (do any names start with 'A'). I might have this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
data countA;&lt;BR /&gt;
  set sashelp.class;&lt;BR /&gt;
  if substr(name,1,1) = 'A' then flag = 'y';&lt;BR /&gt;
run;&lt;BR /&gt;
    &lt;BR /&gt;
proc print data=countA;&lt;BR /&gt;
where flag = 'y';&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Of course this is a silly example, because there are other ways to print a list of students whose names start with 'A'. But the point is that the use of FLAG as a variable or field is specific to the kind of program that FLAG appears in. There is an instance, where an SQL procedure view will create a column called "FLAGS" -- (and a few other places) as described here: &lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/19/578.html" target="_blank"&gt;http://support.sas.com/kb/19/578.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/5/346.html" target="_blank"&gt;http://support.sas.com/kb/5/346.html&lt;/A&gt;&lt;BR /&gt;
But you did not say this question was related to SQL or PROC CONTENTS.&lt;BR /&gt;
&lt;BR /&gt;
Your best bet for help with this question is to contact SAS Technical Support. To send a question to Tech Support, go to &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt; and in the left-hand navigation pane, click on the link entitled "Submit a Problem".&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 13 Feb 2008 16:49:05 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-02-13T16:49:05Z</dc:date>
    <item>
      <title>FLAG</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/FLAG/m-p/6916#M2637</link>
      <description>Can anyone tell me&lt;BR /&gt;
what is flag, where it is used and how it is used&lt;BR /&gt;
thanks</description>
      <pubDate>Wed, 13 Feb 2008 12:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/FLAG/m-p/6916#M2637</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-13T12:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: FLAG</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/FLAG/m-p/6917#M2638</link>
      <description>Hi:&lt;BR /&gt;
  This question is probably not an ODS or Base Reporting procedure (PRINT, REPORT, TABULATE) question.&lt;BR /&gt;
&lt;BR /&gt;
  Generally, speaking, a column or field called "FLAG" is meant to signal some condition. Usually in a program. Imagine that I use the file SASHELP.CLASS and I want to answer some question (do any names start with 'A'). I might have this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
data countA;&lt;BR /&gt;
  set sashelp.class;&lt;BR /&gt;
  if substr(name,1,1) = 'A' then flag = 'y';&lt;BR /&gt;
run;&lt;BR /&gt;
    &lt;BR /&gt;
proc print data=countA;&lt;BR /&gt;
where flag = 'y';&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Of course this is a silly example, because there are other ways to print a list of students whose names start with 'A'. But the point is that the use of FLAG as a variable or field is specific to the kind of program that FLAG appears in. There is an instance, where an SQL procedure view will create a column called "FLAGS" -- (and a few other places) as described here: &lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/19/578.html" target="_blank"&gt;http://support.sas.com/kb/19/578.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/5/346.html" target="_blank"&gt;http://support.sas.com/kb/5/346.html&lt;/A&gt;&lt;BR /&gt;
But you did not say this question was related to SQL or PROC CONTENTS.&lt;BR /&gt;
&lt;BR /&gt;
Your best bet for help with this question is to contact SAS Technical Support. To send a question to Tech Support, go to &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt; and in the left-hand navigation pane, click on the link entitled "Submit a Problem".&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 13 Feb 2008 16:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/FLAG/m-p/6917#M2638</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-02-13T16:49:05Z</dc:date>
    </item>
  </channel>
</rss>

