<?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: retrieve data with a proc print or a sql query or else in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148590#M39306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, lets think about it for a second. You have 6000 variables. No one in their sane mind is going to scroll through all 6000 variables to read them, I hope. So what are you doing with them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, if you're printing to HTML or LISTING that will take a while to generate the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the real question is what do you want the output to look for whomever is using it next. Then, how do you get it there efficiently. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2014 00:10:01 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-06-20T00:10:01Z</dc:date>
    <item>
      <title>retrieve data with a proc print or a sql query or else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148587#M39303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;I'm looking for advice on that one. Some context before.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;I have the following table on SAS. There are 711 observations and many more variables. Below is a sample from my table.&lt;/P&gt;&lt;PRE class="lang-sql prettyprint prettyprinted" style="margin: 0 0 10px; padding: 5px; font-size: 14px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #000000; background: #eeeeee;"&gt;
&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;date col1 col2 col3 &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;jun14&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;may14&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;apr14&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;3&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;The table has no index, no primary key , nothing.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;The results I'm aiming for, is to know for a specific date, all the values of that column.&lt;/P&gt;&lt;PRE class="lang-sql prettyprint prettyprinted" style="margin: 0 0 10px; padding: 5px; font-size: 14px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #000000; background: #eeeeee;"&gt;
&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;date col1 col2 col3 &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;may14&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;apr14&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;3&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;Example for May 14, I will have&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;I'm running the following SQL query on it&lt;/P&gt;&lt;PRE class="lang-sql prettyprint prettyprinted" style="margin: 0 0 10px; padding: 5px; font-size: 14px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #000000; background: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="kwd" style="color: #00008b; background: transparent;"&gt;proc&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; sql&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b; background: transparent;"&gt;select&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;*&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b; background: transparent;"&gt;from&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; mytable &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b; background: transparent;"&gt;where&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; date &lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;input&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000; background: transparent;"&gt;'may14'&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;MONYY5&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;.));&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;As you can imagine, the query is heavy when you have many variables and many observations. The query started 50 minutes ago and it is still running.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;I also thought about using a &lt;CODE style="padding: 1px 5px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background: #eeeeee;"&gt;proc print&lt;/CODE&gt;&lt;/P&gt;&lt;PRE class="lang-sql prettyprint prettyprinted" style="margin: 0 0 10px; padding: 5px; font-size: 14px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #000000; background: #eeeeee;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="kwd" style="color: #00008b; background: transparent;"&gt;proc&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b; background: transparent;"&gt;print&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; data&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;mytable&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; var date col1 col2 col3&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b; background: transparent;"&gt;where&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; date &lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;input&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000; background: transparent;"&gt;'may14'&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;MONYY5&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;.));&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; run&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;So here is my question.&lt;/P&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;Is there an other way to have my results rather than through this query or the proc print? Do I need to have a datastep like a transpose , although if I'm doing a transpose, things would be different (see below).&lt;/P&gt;&lt;PRE class="lang-sql prettyprint prettyprinted" style="margin: 0 0 10px; padding: 5px; font-size: 14px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; color: #000000; background: #eeeeee;"&gt;
&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;date jun14 may14 apr14 &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;col1 &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;col2 &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;col3 &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #800000; background: transparent;"&gt;3&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P style="margin: 0 0 1em; font-size: 14px; color: #000000; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; background: #ffffff;"&gt;Thanks in advance for your insight.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 16:37:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148587#M39303</guid>
      <dc:creator>andy_wk</dc:creator>
      <dc:date>2014-06-19T16:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve data with a proc print or a sql query or else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148588#M39304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;711 observations and how many columns?&lt;/P&gt;&lt;P&gt;That shouldn't take 50 minutes. Are you on a server or desktop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 16:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148588#M39304</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-19T16:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve data with a proc print or a sql query or else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148589#M39305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza, I have 6000 variables ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 23:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148589#M39305</guid>
      <dc:creator>andy_wk</dc:creator>
      <dc:date>2014-06-19T23:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve data with a proc print or a sql query or else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148590#M39306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, lets think about it for a second. You have 6000 variables. No one in their sane mind is going to scroll through all 6000 variables to read them, I hope. So what are you doing with them. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, if you're printing to HTML or LISTING that will take a while to generate the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the real question is what do you want the output to look for whomever is using it next. Then, how do you get it there efficiently. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 00:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148590#M39306</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-20T00:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve data with a proc print or a sql query or else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148591#M39307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you by any chance miss the quit statement at the end of proc sql query? Proc SQL needs "quit" at the end in order to stop.&lt;/P&gt;&lt;P&gt;If your process is still running then abort the procedure from SAS tool bar and try running it again with "quit"&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 00:50:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148591#M39307</guid>
      <dc:creator>Anna_nag</dc:creator>
      <dc:date>2014-06-20T00:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve data with a proc print or a sql query or else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148592#M39308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me have a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 05:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148592#M39308</guid>
      <dc:creator>andy_wk</dc:creator>
      <dc:date>2014-06-20T05:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve data with a proc print or a sql query or else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148593#M39309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add, I concur with Reeza, 6000 variables is not plausible, even turning the table round so you have 6000 rows and 711 variables would drastically increase your performance.&amp;nbsp; If you have that many variables then the data should be normalized, e.g. &lt;BR /&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Result&lt;/P&gt;&lt;P&gt;JUN14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;JUN14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;JUN14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;MAY14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;MAY14&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;"&gt;&lt;SPAN class="lit" style="color: #800000;"&gt;Whilst working with that many variables may work in SAS, its not a good idea.&amp;nbsp; Also, depending on your data, try summarizing, grouping, etc to shrink the data up.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 09:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148593#M39309</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-06-20T09:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve data with a proc print or a sql query or else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148594#M39310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I concur with Reeza and you , actually I'm trying to identify these columns to drop them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 09:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148594#M39310</guid>
      <dc:creator>andy_wk</dc:creator>
      <dc:date>2014-06-20T09:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve data with a proc print or a sql query or else</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148595#M39311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you trying to identify about those variables (columns)?&amp;nbsp; And what does it have to do with the DATE variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 11:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/retrieve-data-with-a-proc-print-or-a-sql-query-or-else/m-p/148595#M39311</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-06-20T11:39:26Z</dc:date>
    </item>
  </channel>
</rss>

