<?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: Unable to Print Selct Query in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239284#M55521</link>
    <description>Hi Reeza,&lt;BR /&gt;&lt;BR /&gt;My code&lt;BR /&gt;---------------------------&lt;BR /&gt;data abc;&lt;BR /&gt;input e f g;&lt;BR /&gt;infile datalines;&lt;BR /&gt;datalines;&lt;BR /&gt;1 2 3&lt;BR /&gt;4 5 6&lt;BR /&gt;7 8 9&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=abc;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;--------------------------------&lt;BR /&gt;&lt;BR /&gt;LOG&lt;BR /&gt;*********************************&lt;BR /&gt;16         GOPTIONS ACCESSIBLE;&lt;BR /&gt;17         data abc;&lt;BR /&gt;18         input e f g;&lt;BR /&gt;19         infile datalines;&lt;BR /&gt;20         datalines;&lt;BR /&gt;&lt;BR /&gt;NOTE: Compression was disabled for data set WORK.ABC because compression overhead would increase the size of the data set.&lt;BR /&gt;NOTE: The data set WORK.ABC has 3 observations and 3 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;      real time           0.00 seconds&lt;BR /&gt;      cpu time            0.00 seconds&lt;BR /&gt;      &lt;BR /&gt;24         ;&lt;BR /&gt;&lt;BR /&gt;25         run;&lt;BR /&gt;26         &lt;BR /&gt;27         proc print data=abc;&lt;BR /&gt;28         run;&lt;BR /&gt;&lt;BR /&gt;NOTE: There were 3 observations read from the data set WORK.ABC.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;      real time           0.00 seconds&lt;BR /&gt;      cpu time            0.01 seconds&lt;BR /&gt;      &lt;BR /&gt;&lt;BR /&gt;29         &lt;BR /&gt;30         GOPTIONS NOACCESSIBLE;&lt;BR /&gt;&lt;BR /&gt;**************************************************</description>
    <pubDate>Tue, 15 Dec 2015 04:31:47 GMT</pubDate>
    <dc:creator>K_HARI__PRASAD</dc:creator>
    <dc:date>2015-12-15T04:31:47Z</dc:date>
    <item>
      <title>Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239134#M55495</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried once to PRINT select query in PROC PRINT, its worked for one time. But after the session turned off, I am unable to PRINT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the sample query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC PRINT;&lt;/P&gt;
&lt;P&gt;PROC SQL;&lt;/P&gt;
&lt;P&gt;SELECT a,b,c FROM XYZ;&lt;/P&gt;
&lt;P&gt;QUIT;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 12:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239134#M55495</guid>
      <dc:creator>K_HARI__PRASAD</dc:creator>
      <dc:date>2015-12-14T12:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239136#M55496</link>
      <description>Just try&lt;BR /&gt;&lt;BR /&gt;PROC SQL;&lt;BR /&gt;SELECT a,b,c FROM XYZ;&lt;BR /&gt;QUIT;&lt;BR /&gt;&lt;BR /&gt;No proc print required.</description>
      <pubDate>Mon, 14 Dec 2015 13:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239136#M55496</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2015-12-14T13:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239141#M55497</link>
      <description>I tried, but still the same result. It's not printing. &lt;BR /&gt;Thank you.</description>
      <pubDate>Mon, 14 Dec 2015 13:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239141#M55497</guid>
      <dc:creator>K_HARI__PRASAD</dc:creator>
      <dc:date>2015-12-14T13:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239144#M55498</link>
      <description>&lt;P&gt;By what do you mean "print" the query? &amp;nbsp;Just putting the select will output the results directly to the output window if running interactive SAS unless you have turned that option off with:&lt;/P&gt;
&lt;P&gt;ods noresults;&lt;/P&gt;
&lt;P&gt;You can turn it back on with:&lt;/P&gt;
&lt;P&gt;ods results;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you mean you want to keep the data as a file then its a simple two step process:&lt;/P&gt;
&lt;P&gt;extract data to a dataset then print the dataset:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  create table WANT as
  select A,
            B,
            C
  from   HAVE;
quit;

ods rtf file="c:\results.rtf";
proc report data=want;
  columns _all_;
run;
ods rtf close;&lt;/PRE&gt;
&lt;P&gt;Its very dependant on what you are doing/want which is not clear from your post.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 13:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239144#M55498</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-12-14T13:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239147#M55499</link>
      <description>I don't want to create a file with the select query result. I just want to display the results. Even I am unable to print permanent or work library datasets.</description>
      <pubDate>Mon, 14 Dec 2015 13:51:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239147#M55499</guid>
      <dc:creator>K_HARI__PRASAD</dc:creator>
      <dc:date>2015-12-14T13:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239155#M55500</link>
      <description>&lt;P&gt;And how do you want to display them, via file, output window? &amp;nbsp;Have you tried the ods results? &amp;nbsp;What about ods listing. &amp;nbsp;What software are you using, is is interactive SAS or Batch.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 14:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239155#M55500</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-12-14T14:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239169#M55501</link>
      <description>Are you using SAS Base installed? If so,  it's possible you closed the output window by accident. Go to view and results to see the output window again.</description>
      <pubDate>Mon, 14 Dec 2015 15:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239169#M55501</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-14T15:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239180#M55502</link>
      <description>I am using  SAS EG. I just tried  to print data set (work or permanent lib) /select query. It's not printing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 14 Dec 2015 16:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239180#M55502</guid>
      <dc:creator>K_HARI__PRASAD</dc:creator>
      <dc:date>2015-12-14T16:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239182#M55504</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt; :I want to print the results in output window</description>
      <pubDate>Mon, 14 Dec 2015 16:17:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239182#M55504</guid>
      <dc:creator>K_HARI__PRASAD</dc:creator>
      <dc:date>2015-12-14T16:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239185#M55505</link>
      <description>Post your code and the log.</description>
      <pubDate>Mon, 14 Dec 2015 16:23:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239185#M55505</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-14T16:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239186#M55506</link>
      <description>&lt;PRE&gt;ods listing;
proc sql;
  select * from sashelp.cars;
quit;
&lt;/PRE&gt;
&lt;P&gt;Then open the output window (not sure where its located as dont use EG, probably off the menu bar at the top, something like show output window).&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 16:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239186#M55506</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-12-14T16:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239284#M55521</link>
      <description>Hi Reeza,&lt;BR /&gt;&lt;BR /&gt;My code&lt;BR /&gt;---------------------------&lt;BR /&gt;data abc;&lt;BR /&gt;input e f g;&lt;BR /&gt;infile datalines;&lt;BR /&gt;datalines;&lt;BR /&gt;1 2 3&lt;BR /&gt;4 5 6&lt;BR /&gt;7 8 9&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc print data=abc;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;--------------------------------&lt;BR /&gt;&lt;BR /&gt;LOG&lt;BR /&gt;*********************************&lt;BR /&gt;16         GOPTIONS ACCESSIBLE;&lt;BR /&gt;17         data abc;&lt;BR /&gt;18         input e f g;&lt;BR /&gt;19         infile datalines;&lt;BR /&gt;20         datalines;&lt;BR /&gt;&lt;BR /&gt;NOTE: Compression was disabled for data set WORK.ABC because compression overhead would increase the size of the data set.&lt;BR /&gt;NOTE: The data set WORK.ABC has 3 observations and 3 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;      real time           0.00 seconds&lt;BR /&gt;      cpu time            0.00 seconds&lt;BR /&gt;      &lt;BR /&gt;24         ;&lt;BR /&gt;&lt;BR /&gt;25         run;&lt;BR /&gt;26         &lt;BR /&gt;27         proc print data=abc;&lt;BR /&gt;28         run;&lt;BR /&gt;&lt;BR /&gt;NOTE: There were 3 observations read from the data set WORK.ABC.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;      real time           0.00 seconds&lt;BR /&gt;      cpu time            0.01 seconds&lt;BR /&gt;      &lt;BR /&gt;&lt;BR /&gt;29         &lt;BR /&gt;30         GOPTIONS NOACCESSIBLE;&lt;BR /&gt;&lt;BR /&gt;**************************************************</description>
      <pubDate>Tue, 15 Dec 2015 04:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239284#M55521</guid>
      <dc:creator>K_HARI__PRASAD</dc:creator>
      <dc:date>2015-12-15T04:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239286#M55522</link>
      <description>Go to Options and Results tab, ensure that the a Result type is selected. If that doesn't work, you'll need to contact SAS Tech Support.</description>
      <pubDate>Tue, 15 Dec 2015 04:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239286#M55522</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-15T04:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239287#M55523</link>
      <description>hI Reeza,&lt;BR /&gt;&lt;BR /&gt;I selected Results as SAS Report, HTML formats. But still the result is not displyed in the out put window.&lt;BR /&gt;&lt;BR /&gt;Thanks for your time.</description>
      <pubDate>Tue, 15 Dec 2015 04:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239287#M55523</guid>
      <dc:creator>K_HARI__PRASAD</dc:creator>
      <dc:date>2015-12-15T04:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239461#M55529</link>
      <description>&lt;P&gt;After you run the code, does your EG process flow look something like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1188iA64A7489CB97CA31/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="EG_Results.PNG" title="EG_Results.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 02:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239461#M55529</guid>
      <dc:creator>dkb</dc:creator>
      <dc:date>2015-12-16T02:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239475#M55530</link>
      <description>&lt;P&gt;Hi dkb, &lt;BR /&gt;&lt;BR /&gt;No. its not. &lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 05:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239475#M55530</guid>
      <dc:creator>K_HARI__PRASAD</dc:creator>
      <dc:date>2015-12-16T05:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239480#M55531</link>
      <description>&lt;P&gt;What &lt;STRONG&gt;does&lt;/STRONG&gt; it look like then?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The more you tell&amp;nbsp;us about the problem, the better the advice you will get back.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 07:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239480#M55531</guid>
      <dc:creator>dkb</dc:creator>
      <dc:date>2015-12-16T07:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239710#M55545</link>
      <description>&lt;P&gt;Hi dkb,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lets take the below scenario.&lt;/P&gt;
&lt;P&gt;1. I want to print sashelp.air data set&lt;/P&gt;
&lt;P&gt;2. The output window doesnot displaying the PRINT results&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attached the screen shorts of code widnow,procss flow and options I have given in EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your time.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 05:27:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239710#M55545</guid>
      <dc:creator>K_HARI__PRASAD</dc:creator>
      <dc:date>2015-12-17T05:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239766#M55555</link>
      <description>&lt;P&gt;Did you press run? Show a screenshot of the log as well please.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 15:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239766#M55555</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-17T15:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Print Selct Query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239962#M55565</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I clicked on Ran .Please find the attachment for logs.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12148iD4D025D0B1F898C9/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="log.PNG" title="log.PNG" /&gt;</description>
      <pubDate>Fri, 18 Dec 2015 10:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Unable-to-Print-Selct-Query/m-p/239962#M55565</guid>
      <dc:creator>K_HARI__PRASAD</dc:creator>
      <dc:date>2015-12-18T10:58:37Z</dc:date>
    </item>
  </channel>
</rss>

