<?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: remove log number? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574058#M23027</link>
    <description>&lt;P&gt;The NONUMBER SAS option removes page numbers from SAS printed output. It has nothing to do with removing numbers SAS log numbers:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lesysoptsref&amp;amp;docsetTarget=n05f7gfmt2vy5tn0z4x36run57gm.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lesysoptsref&amp;amp;docsetTarget=n05f7gfmt2vy5tn0z4x36run57gm.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There isn't any option I'm aware of to remove SAS log line numbers. Why do you want to remove them?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 01:48:43 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-07-17T01:48:43Z</dc:date>
    <item>
      <title>remove log number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574050#M23025</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;well, I try to use proc printto save log, the log shows numbering on left. is there any way to remove it?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OPTIONS&amp;nbsp; NONUMBER not working? thanks&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&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;&lt;P&gt;NOTE: PROCEDURE PRINTTO used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; ods escapechar='^';&lt;BR /&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp; proc sort data=sashelp.class out=class;&lt;BR /&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp; by sex;&lt;BR /&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto log='C:\Desktop\backup\CA402.log' new;
run;
ods escapechar='^';

proc sort data=sashelp.class out=class;
by sex;
run;

data c11;
  set class;
  length sexf $50.;
    dup=1 ;output;
    dup=2; output;
	dup=3 ;output;
     dup=4; output;

run;

data c1;
length sexf2 $50.;
  set c11;
  if dup=1 then sexf=sex;
  if dup=2 and sex='F' then sexf='g';
  if dup=2 and sex='M' then sexf='h';
    if dup=3 and sex='F' then sexf='i';
  if dup=3 and sex='M' then sexf='j';
   if dup=4 and sex='F' then sexf='k';
  if dup=4 and sex='M' then sexf='l';
  dupc=STRIP(PUT(dup, 8.));
  if age in (11 12 13 ) then sexf2=strip(sexf)||strip(dupc)||' multi tests3 multi tests3';
  else sexf2=strip(sexf)||strip(dupc)||' multi tests3 multi';

    sexf3=strip(sex);

  sexf4=' multi tests3';
  group=1;
run;

proc sort data=c1;by sexf4 sexf3 sexf2   age group;run;


PROC MEANS DATA=c1  NOPRINT; 
     BY  sexf4 sexf3 sexf2   age group;   
     VAR Weight;  
   OUTPUT OUT=AB
    N=N0   
	MEAN=Mean0  
	CV=CV0   
	STD=SD0  
	STDERR=SE0  
	LCLM=LCLM   
	UCLM=UCLM  
    MIN=MIN0  
	Q1=Q10  
	MEDIAN=Median0  
    Q3=Q30  
	MAX=MAX0;   
RUN;


PROC tabulate data=ab  ORDER=data; 
  by sexf4 sexf3 sexf2;
  CLASS sexf4 sexf3 sexf2  age group;   
   VAR  n0   median0  q30 MIN0 MAX0 ;
   keyword mean / style=[just=R];
keyword StD / style=[just=L];
   TABLE   
sexf4=" "*sexf3=" "*sexf2=" "*age=" "*(
	n0='n'*max=''*f=4.  

	median0='Median'*max=''*f=8.2  
	Q30='Q3'*max=''*f=8.2 
    min0='Tmin'*max=''*f=8.2
	max0='Max'*max=''*f=8.2

	
),  age=" "  

     /  misstext='---' box=" sex"  RTS=30  ;   
RUN;
OPTIONS CENTER NODATE NONUMBER ORIENTATION=landscape CENTER  LEFTMARGIN="1 IN" RIGHTMARGIN="1 IN" TOPMARGIN="1 IN" BOTTOMMARGIN="1 IN"  ; 

proc printto;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 01:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574050#M23025</guid>
      <dc:creator>magicdj</dc:creator>
      <dc:date>2019-07-17T01:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: remove log number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574056#M23026</link>
      <description>Not that I'm aware of, why do you need them removed? &lt;BR /&gt;&lt;BR /&gt;Several text editors have that function and you can hold down ALT+mouse the selection and it will select in blocks so you can avoid the line numbers, at least this works in Base SAS, not sure about Studio or Viya.</description>
      <pubDate>Wed, 17 Jul 2019 01:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574056#M23026</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-17T01:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: remove log number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574058#M23027</link>
      <description>&lt;P&gt;The NONUMBER SAS option removes page numbers from SAS printed output. It has nothing to do with removing numbers SAS log numbers:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lesysoptsref&amp;amp;docsetTarget=n05f7gfmt2vy5tn0z4x36run57gm.htm&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lesysoptsref&amp;amp;docsetTarget=n05f7gfmt2vy5tn0z4x36run57gm.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There isn't any option I'm aware of to remove SAS log line numbers. Why do you want to remove them?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 01:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574058#M23027</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-07-17T01:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: remove log number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574059#M23028</link>
      <description>&lt;P&gt;I use sas 9.4,&lt;/P&gt;&lt;P&gt;since I used proc printo, the log show start line 3. if I can remove numbers. it won't looks like it start from line 3&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 01:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574059#M23028</guid>
      <dc:creator>magicdj</dc:creator>
      <dc:date>2019-07-17T01:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: remove log number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574060#M23029</link>
      <description>&lt;P&gt;If you run your program in batch mode then a SAS log file is created automatically with the correct line numbering starting at 1 and you don't need to use PROC PRINTO at all.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 02:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574060#M23029</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-07-17T02:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: remove log number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574063#M23030</link>
      <description>RESETLINE as indicated in your previous question is the next best option, which resets your line numbering. &lt;BR /&gt;&lt;BR /&gt;Is there a specific reason for why that won't work?</description>
      <pubDate>Wed, 17 Jul 2019 02:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574063#M23030</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-17T02:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: remove log number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574065#M23031</link>
      <description>&lt;P&gt;the log line numbers are used when there is an issue.&amp;nbsp; that is how the log references you line of code.&amp;nbsp; removing them does nothing more that echo's your program and the final results unless there is an error and how many select * options will you have to go through to find the correct one if there is an issue.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 02:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574065#M23031</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-07-17T02:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: remove log number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574078#M23032</link>
      <description>&lt;P&gt;As others have stated, the line numbers are essential for navigating the log, and removing them would only make debugging harder (and that's the logs foremost usage).&lt;/P&gt;
&lt;P&gt;If you need to copy code out of the log (eg code generated by proc import/export), follow &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;'s advice and hold down the Alt key while marking the text so you get a nice block that excludes the leading columns with the line numbers.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 07:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574078#M23032</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-17T07:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: remove log number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574319#M23033</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;In my program, it has:&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=%sysget(SAS_EXECFILEPATH);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;that’s where the problem from. I use sysget to get folder path.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;Just need to go around of it. then batch run will work and save log the way I want. it will solve the problem in this post and previous post&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;Thanks a lot for your help.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;WARNING: The argument to macro function %SYSGET is not defined as a system variable.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;NOTE: No units specified for the GUNIT option. CELLS will be used.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 18:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574319#M23033</guid>
      <dc:creator>magicdj</dc:creator>
      <dc:date>2019-07-17T18:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: remove log number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574327#M23034</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/224340"&gt;@magicdj&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;In my program, it has:&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=%sysget(SAS_EXECFILEPATH);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;that’s where the problem from. I use sysget to get folder path.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;Just need to go around of it. then batch run will work and save log the way I want. it will solve the problem in this post and previous post&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;Thanks a lot for your help.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;WARNING: The argument to macro function %SYSGET is not defined as a system variable.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Calibri" size="3"&gt;NOTE: No units specified for the GUNIT option. CELLS will be used.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am not really seeing how this has anything to do with the original post.&amp;nbsp; That environment variable is something that the "enhanced" editor available in the Windows (only) version of SAS when running interactively using Display Manager interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want clean SAS logs then save the code as a stand alone program and submit it in batch (background) in its own SAS session. Then your log will have everything that has happened and can be used as your audit trail.&amp;nbsp; Don't try to use interactive sessions to do production work.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 18:54:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574327#M23034</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-17T18:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: remove log number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574704#M23042</link>
      <description>&lt;P&gt;got it, thanks for the advise.&lt;/P&gt;&lt;P&gt;yes, I want clean logs. at the beginning, I don't know how to make batch run works, so I'm thinking about remove log numbers...haha&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 18:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574704#M23042</guid>
      <dc:creator>magicdj</dc:creator>
      <dc:date>2019-07-18T18:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: remove log number?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574786#M23043</link>
      <description>&lt;P&gt;Have you figured out how to do a batch run now? It is simply a matter of running from an OS command line: sas MySASProgram.sas&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 20:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-log-number/m-p/574786#M23043</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-07-18T20:43:34Z</dc:date>
    </item>
  </channel>
</rss>

