<?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: Proc sql select format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569860#M160635</link>
    <description>Hey thanks! I think the simple format = 'DATE9.' actually works. I did something wrong when specifying other where conditions.</description>
    <pubDate>Fri, 28 Jun 2019 15:08:00 GMT</pubDate>
    <dc:creator>laiguanyu001</dc:creator>
    <dc:date>2019-06-28T15:08:00Z</dc:date>
    <item>
      <title>Proc sql select format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569840#M160624</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to use proc sql to select data where format is DATE9. So I tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;select * from sashelp.vcolumn&lt;/P&gt;&lt;P&gt;where format = 'DATE9.';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried where format = DATE9. without quotation marks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both commands select 0 rows from the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know what I did wrong.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569840#M160624</guid>
      <dc:creator>laiguanyu001</dc:creator>
      <dc:date>2019-06-28T14:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql select format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569848#M160630</link>
      <description>&lt;P&gt;Maxim 3 (Know Your Data) is also valid for the dictionary tables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run the same SQL for a specific column where you know that it has DATE9. as format, and look at the value in the format column.&lt;/P&gt;
&lt;P&gt;Hint: In SQL, don't use the SASHELP views, use the underlying tables, in this case dictionary.columns.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569848#M160630</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-28T14:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql select format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569851#M160631</link>
      <description>&lt;P&gt;That is a little strange because when I did the following it worked ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
	SELECT * FROM sashelp.vcolumn WHERE format LIKE 'DATE9.';
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569851#M160631</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-06-28T14:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql select format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569857#M160632</link>
      <description>&lt;P&gt;Ok may be because the format of the "format" column (:-)) is 49 chracters wide and if you adjust for it as below it selects&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
	SELECT * FROM sashelp.vcolumn WHERE TRIM(format) = 'DATE9.';
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Did it work? Please let me know.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 15:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569857#M160632</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-06-28T15:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql select format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569860#M160635</link>
      <description>Hey thanks! I think the simple format = 'DATE9.' actually works. I did something wrong when specifying other where conditions.</description>
      <pubDate>Fri, 28 Jun 2019 15:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569860#M160635</guid>
      <dc:creator>laiguanyu001</dc:creator>
      <dc:date>2019-06-28T15:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql select format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569861#M160636</link>
      <description>Hey thanks! format = 'DATE9.' actually works. I had a different mistake when specifying other where conditions. Thanks for the hint tho I think this is great help!</description>
      <pubDate>Fri, 28 Jun 2019 15:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569861#M160636</guid>
      <dc:creator>laiguanyu001</dc:creator>
      <dc:date>2019-06-28T15:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql select format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569862#M160637</link>
      <description>Great. I actually did not test that. I took it for granted that it is not working. Should have tested. Glad that it worked out.</description>
      <pubDate>Fri, 28 Jun 2019 15:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569862#M160637</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-06-28T15:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql select format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569864#M160638</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;.. Very nice compilation --&amp;gt; &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 15:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/569864#M160638</guid>
      <dc:creator>koyelghosh</dc:creator>
      <dc:date>2019-06-28T15:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql select format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/570530#M160890</link>
      <description>&lt;P&gt;And a SAS GF paper now:&amp;nbsp;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3062-2019.pdf" target="_blank" rel="noopener"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3062-2019.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 12:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-select-format/m-p/570530#M160890</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-02T12:51:35Z</dc:date>
    </item>
  </channel>
</rss>

