<?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: How to display log first (on top) after code submission in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280266#M269755</link>
    <description>&lt;P&gt;But I agree with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12460"&gt;@jklaverstijn﻿&lt;/a&gt;, you should move towards Enterprise Guide. If I'm not totally misinformed, it comes free (or at least to affordable price) with individual client SAS Foundation on Windows.&lt;/P&gt;</description>
    <pubDate>Sun, 26 Jun 2016 19:21:54 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-06-26T19:21:54Z</dc:date>
    <item>
      <title>How to display log first (on top) after code submission</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280245#M269751</link>
      <description>&lt;P&gt;After pressing the submit button from an editor window, is there a way to have SAS default to displaying the log "on top" instead of the results viewer or output window?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After submitting code to SAS, especially during development work, it is almost always necessary to check the log for errors etc before checking the results, so this&amp;nbsp;would be a very useful usability option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4, windows environment.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2016 17:49:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280245#M269751</guid>
      <dc:creator>SASEdward</dc:creator>
      <dc:date>2016-06-26T17:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to display log first (on top) after code submission</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280258#M269752</link>
      <description>&lt;P&gt;short of suggesting to use Enterprise Guide instead of Display manager, have a go at redefining a function key as "submit; log;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not tested this (I use EG primarily&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; ) but I'm confident the secret is in the keys here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2016 18:35:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280258#M269752</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-06-26T18:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to display log first (on top) after code submission</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280262#M269753</link>
      <description>No luck with this idea... the results viewer and/or output listing still pop over the top of the log.</description>
      <pubDate>Sun, 26 Jun 2016 18:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280262#M269753</guid>
      <dc:creator>SASEdward</dc:creator>
      <dc:date>2016-06-26T18:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to display log first (on top) after code submission</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280265#M269754</link>
      <description>&lt;P&gt;Works wonderful for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What do you mean with "no luck", do your get an error message, or...&lt;/P&gt;
&lt;P&gt;Describe&amp;nbsp;the exact steps (defining the key,&amp;nbsp;submitting the code)...&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2016 19:14:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280265#M269754</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-26T19:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to display log first (on top) after code submission</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280266#M269755</link>
      <description>&lt;P&gt;But I agree with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12460"&gt;@jklaverstijn﻿&lt;/a&gt;, you should move towards Enterprise Guide. If I'm not totally misinformed, it comes free (or at least to affordable price) with individual client SAS Foundation on Windows.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2016 19:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280266#M269755</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-26T19:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to display log first (on top) after code submission</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280273#M269756</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, in testing&amp;nbsp;this some more, it does work, but only if I don't use some log clearing commands first.&lt;/P&gt;&lt;P&gt;I defined the F8 key as follows:&lt;/P&gt;&lt;PRE&gt;submit;log&lt;/PRE&gt;&lt;P&gt;Then, from the enhanced editor window, the following works:&lt;/P&gt;&lt;P&gt;1) Highlight an &lt;U&gt;area of the code&lt;/U&gt; with a few proc sorts and prints. Works great! &amp;nbsp;The log ends up on top of the Results Viewer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following does not work, and was&amp;nbsp;apparently my initial problem:&lt;/P&gt;&lt;P&gt;2) If I execute my &lt;U&gt;entire code&lt;/U&gt;, which includes the following DM log commands&amp;nbsp;to clear prior log noise, I then get a warning&amp;nbsp;message saying that "Extra arguments on window command were ignored".&lt;/P&gt;&lt;PRE&gt;DM log "OUT;CLEAR;LOG;CLEAR;" log continue ;
DM log 'next results; clear; cancel;' whostedit continue ;&lt;/PRE&gt;&lt;P&gt;So, it appears that when I include&amp;nbsp;the DM log statements in the code, the DM keys command doesn't work properly. They must be conflicting somehow...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I make the F8 key as follows, and delete the DM statements from my code, then I seem to get all the functionality I was looking for. Cleared logs and output, and log screen on top after&amp;nbsp;execution.&lt;/P&gt;&lt;PRE&gt;clear log;clear output;submit;log&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2016 20:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280273#M269756</guid>
      <dc:creator>SASEdward</dc:creator>
      <dc:date>2016-06-26T20:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to display log first (on top) after code submission</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280276#M269757</link>
      <description>I do have access to Enterprise Guide, however my coursework (prep for Base SAS certification exam) is specific to the windows environment. I look forward to the newer interfaces later on for sure.</description>
      <pubDate>Sun, 26 Jun 2016 20:06:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280276#M269757</guid>
      <dc:creator>SASEdward</dc:creator>
      <dc:date>2016-06-26T20:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to display log first (on top) after code submission</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280277#M269758</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/91821"&gt;@SASEdward&lt;/a&gt; wrote:&lt;BR /&gt;I do have access to Enterprise Guide, however my coursework (prep for Base SAS certification exam) is specific to the windows environment. I look forward to the newer interfaces later on for sure.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Aha that's good to hear. Good luck on the exam.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2016 20:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280277#M269758</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-06-26T20:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to display log first (on top) after code submission</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280949#M269759</link>
      <description>&lt;P&gt;I know this does not answer your question but:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; With the cost of monitors under $100 why not get a third monitor, win 7 and win 10 support three monitors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; As a side note, I seem to have good luck with these key settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You need to use the more powerfull old text editor, many of these features are not in EE, UE, Sas Studio or EG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MMB pgm;file &amp;amp;pgm..sas;file c:\ver\&amp;amp;pgm.&amp;amp;_q..sas;%let _q=%eval(0&amp;amp;_q +1); * does versioning;&lt;BR /&gt;RMB log;clear;out;clear;pgm;submit;home;rec;home;log;home;z;z; * submit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Magic string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;;;;/*'*/ *);*};*];*/;/*"*/;%mend;run;quit;%end;end;run;endcomp;%utlfix;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%utlfix&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro utlfix(dum);&lt;BR /&gt;* fix frozen sas and restore to invocation ;&lt;BR /&gt;dm "odsresults;clear;";&lt;BR /&gt;ods results off;&lt;BR /&gt;options ls=171 ps=65;run;quit;&lt;BR /&gt;ods listing;&lt;BR /&gt;ods select all;&lt;BR /&gt;ods excel close;&lt;BR /&gt;ods graphics off;&lt;BR /&gt;proc printto;run;&lt;BR /&gt;goptions reset=all;&lt;BR /&gt;endsubmit;&lt;BR /&gt;endrsubmit;&lt;BR /&gt;run;quit;&lt;BR /&gt;%utlopts;&lt;/P&gt;&lt;P&gt;%mend utlfix;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%utlopts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO UTLOPTS&lt;BR /&gt;/ des = "Turn all debugging options off forgiving options";&lt;/P&gt;&lt;P&gt;OPTIONS&lt;/P&gt;&lt;P&gt;OBS=MAX&lt;BR /&gt;FIRSTOBS=1&lt;BR /&gt;lrecl=384&lt;BR /&gt;NOFMTERR /* DO NOT FAIL ON MISSING FORMATS */&lt;BR /&gt;SOURCE /* turn sas source statements on */&lt;BR /&gt;SOURCe2 /* turn sas source statements on */&lt;BR /&gt;MACROGEN /* turn MACROGENERATON ON */&lt;BR /&gt;SYMBOLGEN /* turn SYMBOLGENERATION ON */&lt;BR /&gt;NOTES /* turn NOTES ON */&lt;BR /&gt;NOOVP /* never overstike */&lt;BR /&gt;CMDMAC /* turn CMDMAC command macros on */&lt;BR /&gt;/* ERRORS=2 turn ERRORS=2 max of two errors */&lt;BR /&gt;MLOGIC /* turn MLOGIC macro logic */&lt;BR /&gt;MPRINT /* turn MPRINT macro statements */&lt;BR /&gt;MRECALL /* turn MRECALL always recall */&lt;BR /&gt;MERROR /* turn MERROR show macro errors */&lt;BR /&gt;NOCENTER /* turn NOCENTER I do not like centering */&lt;BR /&gt;DETAILS /* turn DETAILS show details in dir window */&lt;BR /&gt;SERROR /* turn SERROR show unresolved macro refs */&lt;BR /&gt;NONUMBER /* turn NONUMBER do not number pages */&lt;BR /&gt;FULLSTIMER /* turn FULLSTIMER give me all space/time stats */&lt;BR /&gt;NODATE /* turn NODATE suppress date */&lt;BR /&gt;/*DSOPTIONS=NOTE2ERR */&lt;BR /&gt;/*ERRORCHECK=STRICT /* syntax-check mode when an error occurs in a LIBNAME or FILENAME statement */&lt;BR /&gt;DKRICOND=WARN /* variable is missing from input data during a DROP=, KEEP=, or RENAME= */&lt;BR /&gt;DKROCOND=WARN /* variable is missing from output data during a DROP=, KEEP=, or RENAME= */&lt;BR /&gt;/* NO$SYNTAXCHECK be careful with this one */&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;run;quit;&lt;/P&gt;&lt;P&gt;%MEND UTLOPTS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FUNCTION KEYS - not quite right but will give you some ideas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a couple dozen actions on my 6 button mouse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;F1&lt;BR /&gt;F2 pgm;file &amp;amp;pgm..sas;file "c:\ver\&amp;amp;pgm.&amp;amp;_q..sas";%let _q=%eval(0&amp;amp;_q +1);&lt;BR /&gt;F3 note;notesubmit '%lastall; /* contents last */&lt;BR /&gt;F4 note;notesubmit '%last'; /* last 40 obs */&lt;BR /&gt;F5 log;file "./&amp;amp;pgm..log";note zx;notesubmit '%utl_logcurchk(.'&amp;amp;pgm..log);';&lt;BR /&gt;F6 next out;&lt;BR /&gt;F7 right 3&lt;BR /&gt;F8 left 3&lt;BR /&gt;F9 rfind /* data;v1=;v2=3;v3=2;callsortn(of v1-v3);put v1 1v2 v3; */&lt;BR /&gt;F11 rchange&lt;BR /&gt;F12 wattention&lt;BR /&gt;SHF F1 ~;;;;/*'*/ @);*};*];*/;/* " */;%mend;run;quit;%end;end;run;endcomp;%utlopts;&lt;BR /&gt;SHF F2 vt _last_ colnames=names;&lt;BR /&gt;SHF F6 ~pmenu off;/*where n='Phil Mason';n=:'Ph';n like 'P_il M_s_n';n like '%son'; */&lt;BR /&gt;SHF F7 :a;copy box;/*n ? 'hil';n=*'PFil Mason';n gt:'Phil';n le:'Phim'; sql - eqt */&lt;BR /&gt;SHF F8 :a;copy hdr;/*libname x excel '.xls';proc sql;update x;set y=2;where n='Roger'*/&lt;BR /&gt;SHF F9 ~set file00: indsname=inputsd1; /* constant(pi,big,small,logbig) */&lt;BR /&gt;SHF F10 home; /* proc print blankline=5; * blanline every 5 lines */&lt;BR /&gt;SHF F11 ~%let dtetym=%substr(%sysfunc(outn(%sysfunc(datetime(),datetime22.)),1,15);&lt;BR /&gt;SHF F12 ~proc print split='*';attrib _all_ label='*'; * print without col names&lt;BR /&gt;CTL F1 ~%macro utl_div(n,d); ifn(&amp;amp;d,(&amp;amp;n)/ifn(&amp;amp;d,&amp;amp;d,1),.) %mend utldiv;&lt;BR /&gt;CTL F2 store;note;notesubmit '%uxpall';&lt;BR /&gt;CTL F3 store;note;notesubmit '%viewt'; /* all obs highlighted */&lt;BR /&gt;CTL F11 note;notesubmit '%lastall'; /* all obs last datasets */&lt;BR /&gt;CTL F12 ~data;x=count('boy girl Boy','boy'); put x=; result is 2 /freshstart*/&lt;BR /&gt;ALT F1 ~array x[1] x1;array n[1] $ nam ('x1');l1=vname(n[1]);l2=vnamex(n[1]);put l1 l2&lt;BR /&gt;ALT F2 ~PROC TABULATE DATA=CLASS;CLASS SEX AGE;TABLE AGE,SEX*(N PCTN&amp;lt;AGE&amp;gt;)/RTS=8&lt;BR /&gt;ALT F3 ~%let find=AT; %in &amp;amp;find in AT THE END %then %put founf &amp;amp;find;&lt;BR /&gt;ALT F11 ~CREATE TABLE D (S INT,T DATE LABEL="D");INSERT INTO D VALUES(1,"01JAN99"D)&lt;BR /&gt;ALT F12 ~%macro inop/minoperator;%let f=A;%if &amp;amp;f in XX A %then %put got &amp;amp;f;%mend;%inop;&lt;BR /&gt;CTL B ~dm "dexport sashelp.class 'c:\tmp\tmp.csv' replace; reverse for dimport&lt;BR /&gt;CTL D note b.b /* cnt sex * frq sex*age xos "ls -l * dos "dir c:/rtf */&lt;BR /&gt;CTL E home; /* prt sex age * xin pgm */&lt;BR /&gt;CTL G ~do until(last.s);set c;by s;a+ag;end;do until(last.s);set c;by s;output;end;a=0&lt;BR /&gt;CTL H :a;copy exceltips; /* source h:/oto/exceltips.sas */&lt;BR /&gt;CTL I note h.h /* rpt sex age * libs/libunx libnames pc/unx */&lt;BR /&gt;CTL J note i.i /* */&lt;BR /&gt;CTL K f "Summay of 2011";&lt;BR /&gt;CTL L :mcu /* xplo ROGER - exploded text * sccs ckc/cko/chk/prt ckn prg c*/&lt;BR /&gt;CTL M :mcl /* iota 20 * pth libref *path2 paste bufr */&lt;BR /&gt;CTL Q :lc /* dmp sasuser.class * ata unix - HI print dataset */&lt;BR /&gt;CTL R ~select quote(strip(name)) into :qls separated by ',' from sashelp.class;quit;&lt;BR /&gt;CTL T :a:copy utl_vex;&lt;BR /&gt;CTL U note;notesubmit '%dmp';&lt;BR /&gt;CTL W ~%let qw="%sysfunc(tranwrd(a aa aaa,%str( ),%str(" ")))";%put &amp;amp;qw;&lt;BR /&gt;CTL Y ~proc catalog cat=lib.formats; delete yr2pop/et=formatc;quit;&lt;BR /&gt;RMB ~WHERE NAME LIKE "B_B" "%B%" "B%B" NAME =/symexist(var)&lt;BR /&gt;SHF RMB log;clear;out; clear;pgm;submit;rec;home;log;/*data;z=anydigit('a1');anycntrl*/&lt;BR /&gt;CTL RMB store;note;notesubmit '%uxp'; /* 40 highlighted last */&lt;BR /&gt;MMB store;note;notesubmit '%uxpcon'; /* contents highlighted last */&lt;BR /&gt;SHF MMB ~mapped to f1&lt;BR /&gt;CTL MMB ~test&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 00:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-display-log-first-on-top-after-code-submission/m-p/280949#M269759</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2016-06-29T00:16:05Z</dc:date>
    </item>
  </channel>
</rss>

