<?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: Print all output to the log as default? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750861#M29638</link>
    <description>Great, thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Mon, 28 Jun 2021 17:05:11 GMT</pubDate>
    <dc:creator>rasmuslarsen</dc:creator>
    <dc:date>2021-06-28T17:05:11Z</dc:date>
    <item>
      <title>Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748302#M29520</link>
      <description>&lt;P&gt;Dear SAS support Communities&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My goal is to have all &lt;STRONG&gt;output&lt;/STRONG&gt; from SAS printed in &lt;STRONG&gt;one window&lt;/STRONG&gt;, &lt;STRONG&gt;instead of two windows. &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The current default is that all output is printed to both the log and results viewer, but I would like all output to be printed to the log (or everything to the output-window).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By '&lt;STRONG&gt;output&lt;/STRONG&gt;' I mean:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The text that is usually printed to the log (warnings, errors, notes, messages)&lt;/LI&gt;
&lt;LI&gt;...AND the text/html that is usually printed to the 'results viewer' (e.g. the output of 'proc sql; select * from sashelp.class;quit; )&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;reason&lt;/STRONG&gt;&amp;nbsp;for this goal is that it would give me more screen estate, because 2 windows take up less space than 3 windows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: Printing everything to the output-window instead of the log would also suffice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: I am using&amp;nbsp; SAS 9.4 for Windows&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 12:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748302#M29520</guid>
      <dc:creator>rasmuslarsen</dc:creator>
      <dc:date>2021-06-28T12:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748309#M29522</link>
      <description>&lt;P&gt;Could you please clarify this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The current default is that all output is printed to both the log and results viewer&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;By '&lt;STRONG&gt;output&lt;/STRONG&gt;' I mean:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The text that is usually printed to the log (warnings, errors, notes, messages)&lt;/LI&gt;
&lt;LI&gt;...AND the text/html that is usually printed to the 'results viewer' (e.g. the output of 'proc sql; select * from sashelp.class;quit; )&lt;/LI&gt;
&lt;/UL&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That would not be the default I have seen in over 9 centuries of SAS usage. Do you really mean that log and also PROC outputs goes both places (and so is duplicated), or do you mean that LOG text goes to the LOG window, and the output goes to the OUTPUT window?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 11:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748309#M29522</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-16T11:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748312#M29523</link>
      <description>You are right. The default is that LOG-text goes to the log window, and the output-text goes to the output window.&lt;BR /&gt;&lt;BR /&gt;Basically I want the output of things like 'proc sql; select * from sashelp.class;quit;' to go to the log. &lt;BR /&gt;&lt;BR /&gt;Is this possible?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jun 2021 11:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748312#M29523</guid>
      <dc:creator>rasmuslarsen</dc:creator>
      <dc:date>2021-06-16T11:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748313#M29524</link>
      <description>&lt;P&gt;afaik no, this is not possible.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 11:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748313#M29524</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-06-16T11:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748316#M29525</link>
      <description>&lt;P&gt;I don't know how to re-direct both LOG and OUTPUT to the exact same window. I am skeptical this is a good idea anyway, if you don't want to see a window, you can just minimize it; and if everything is in one window then scrolling and finding the log or the output you want takes longer and could be more confusing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can redirect both the log and output to the same output FILE as follows (note, that nothing will be written to both the LOG window and OUTPUT window when you do this, and the Results window will not be able to point you to your output, which all seem like major disadvantages to me...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log="myfolder\pm.txt" print="myfolder\pm.txt"; run;
/* NOTE: both LOG= and PRINT= point to the same file */
ods html close;
ods listing;
proc sql;
    select * from sashelp.class;
quit;
proc printto; run; /* This turns off the re-direction of LOG and OUTPUT to the same file */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So, you can redirect either the log or the output (or both), which gives you a plethora of choices, one of which might work better for you than having both log and output in the same window or file.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 12:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748316#M29525</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-16T12:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748324#M29526</link>
      <description>Thanks. &lt;BR /&gt;Coming from R, I am used to (mainly) only having two windows: (1) script and (2) console (which prints results as text and the equivalent of the SAS-log). With my background having 3 windows open at the same time in SAS takes up screen estate, and seems unnecessary, I am used to having everything printed to one window. I could also just minimize the results or log window, but opening it or switching to it disturbs my work flow (reaching for the mouse or Ctr-tabbing though to the right window). But maybe my I am using it wrong? How is your setup, and how do you avoid these problems?</description>
      <pubDate>Wed, 16 Jun 2021 12:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748324#M29526</guid>
      <dc:creator>rasmuslarsen</dc:creator>
      <dc:date>2021-06-16T12:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748328#M29527</link>
      <description>&lt;P&gt;Just program one of the function keys (or any other programmable key) to open the LOG, PGM or OUTPUT window.&lt;/P&gt;
&lt;P&gt;Personally I normally keep them all full screen and just toggle between them.&lt;/P&gt;
&lt;P&gt;Use the KEYS window to change how you have programmed the keys.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 194px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60423iE625C653D97A1B5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 12:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748328#M29527</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-16T12:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748333#M29528</link>
      <description>&lt;P&gt;My workflow is simply I minimize or maximize windows as needed. Also, as pointed out by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;you can switch from one window to another with keyboard shortcuts, which you can assign if you don't like the defaults, and I do this as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find having a working Results window is very helpful, if I am running a string of PROCs and each one writes to the OUTPUT, I can simply use the Results window to go directly to the outputs from the third PROC in the sequence, if that's what I want to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 13:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748333#M29528</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-16T13:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748335#M29529</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/hostunx/n16ui9f6dacn8pn1t0y2hgxgi7wa.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/hostunx/n16ui9f6dacn8pn1t0y2hgxgi7wa.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried line mode? Particularly when you are developing and debugging code, line mode can be helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 13:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748335#M29529</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2021-06-16T13:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748375#M29530</link>
      <description>RStudio would have had two or three output windows as well. You would have had the console which is the log, then you would have any RMD or Output files which are more similar to ODS output files and the plots in the bottom right corner.  You can use a Jupyter Notebook with SAS, perhaps that will get you closer to the same type of functionality you need. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jun 2021 15:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748375#M29530</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-16T15:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748407#M29531</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/56750"&gt;@rasmuslarsen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16777"&gt;@WarrenKuhfeld&lt;/a&gt;&amp;nbsp;. This gives you something very close to R console.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 17:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748407#M29531</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-06-16T17:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748432#M29532</link>
      <description>&lt;P&gt;Let me follow up on my line mode comment. When I was a SAS developer, I did most of my editing in emacs. I developed some emacs commands to write the entire buffer, from the point down, a marked region, or the next step to a file then automatically %include that file in the SAS line mode window. It was like my personal display manager. Now granted, as a SAS developer, my methods of using SAS were different than most users. I would at times enable debugging code, and I always wanted to see those results in amongst the log and output. It worked really well for me, and a number of my colleagues used my emacs tools. As primitive as line mode seems, I found it highly effective when coupled with some SAS-specific editing capabilities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 18:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/748432#M29532</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2021-06-16T18:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750782#M29632</link>
      <description>Line mode sounds good. However it is only on Linux right? &lt;BR /&gt;I am on Windows (I should have written that in the question).</description>
      <pubDate>Mon, 28 Jun 2021 12:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750782#M29632</guid>
      <dc:creator>rasmuslarsen</dc:creator>
      <dc:date>2021-06-28T12:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750786#M29633</link>
      <description>Thanks. Is it possible to create a shortcut to maximize the current window? E.g. the results-window or the log-window?&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jun 2021 12:20:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750786#M29633</guid>
      <dc:creator>rasmuslarsen</dc:creator>
      <dc:date>2021-06-28T12:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750816#M29634</link>
      <description>&lt;P&gt;I used Unix for most of my career, so haven't tried it, but this should be helpful.&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostwin/p16esisc4nrd5sn1ps5l6u8f79k6.htm#n1rcikkd50j7rbn1sb9ydwhozujp" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostwin/p16esisc4nrd5sn1ps5l6u8f79k6.htm#n1rcikkd50j7rbn1sb9ydwhozujp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 13:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750816#M29634</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2021-06-28T13:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750817#M29635</link>
      <description>&lt;P&gt;Don't know.&amp;nbsp; There is a one click button on the screen to do that however. Pretty standard feature of all windowing systems.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 14:01:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750817#M29635</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-28T14:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750821#M29636</link>
      <description>Thanks, yes I know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; But I would like to avoid using the mouse. &lt;BR /&gt;For those interested i found the shortcut for in Windows 10 for maximizing 'internal' windows (e.g. the results window, which is 'internal' to the SAS-window):&lt;BR /&gt;[Alt] + [-],  [x].</description>
      <pubDate>Mon, 28 Jun 2021 14:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750821#M29636</guid>
      <dc:creator>rasmuslarsen</dc:creator>
      <dc:date>2021-06-28T14:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750826#M29637</link>
      <description>&lt;P&gt;The DMS command is ZOOM.&amp;nbsp; So ZOOM OFF goes back to default size.&amp;nbsp; ZOOM ON goes to full screen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Map those commands to any available key using the KEYS command.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 14:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750826#M29637</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-06-28T14:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750861#M29638</link>
      <description>Great, thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 28 Jun 2021 17:05:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/750861#M29638</guid>
      <dc:creator>rasmuslarsen</dc:creator>
      <dc:date>2021-06-28T17:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Print all output to the log as default?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/755303#M30001</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No. Working in an rscript typically looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rasmuslarsen_1-1626780296372.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61410iDDCB2692E96F8503/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rasmuslarsen_1-1626780296372.png" alt="rasmuslarsen_1-1626780296372.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Both the results and the log-messages goes in the console.&lt;/P&gt;
&lt;P&gt;Any plots generated are either in side panel or popup-window.&lt;/P&gt;
&lt;P&gt;The output of an Rmarkdown is the same, but can also be inline (in the source window), or indeed as a third window when generating the whole Rmarkdown, but this is typically done rarely or at the end of a session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 11:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Print-all-output-to-the-log-as-default/m-p/755303#M30001</guid>
      <dc:creator>rasmuslarsen</dc:creator>
      <dc:date>2021-07-20T11:29:46Z</dc:date>
    </item>
  </channel>
</rss>

