<?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 &amp;quot;The SAS System&amp;quot; title from the log (SAS Studio) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830922#M328346</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It's not a major concern. As it is not consistent and not working as expected, I would have expect it to be updated in recent SAS release. It means extra attention when scanning the content of the log per program for review. Ideally, when developing a program, you would expect as few possible differences between environment or program submission methods in order to get the same result across environments. It belongs to Good Programming Practices. Right now it means add a special case in the program.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So the simplest solution to the TITLE issue is to make sure each program sets a TITLE as soon as possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really want to compare logs you might also want to look at the (as far as I can tell undocumented) GENERIC option.&lt;/P&gt;
&lt;P&gt;That will remove a lot of the file system and owner details from the log and make the comparison easier.&amp;nbsp; (or course if you need the actual physical filenames in the log then don't use the GENERIC option).&lt;/P&gt;
&lt;PRE&gt;2867  options generic;
2868  filename csv temp;
2869  proc export data=sashelp.class dbms=csv file=csv replace;
2870  run;

2871   /**********************************************************************
2872   *   PRODUCT:   SAS
2873   *   VERSION:   9.4
2874   *   CREATOR:   External File Interface
2875   *   DATE:      25AUG22
2876   *   DESC:      Generated SAS Datastep Code
2877   *   TEMPLATE SOURCE:  (None Specified.)
2878   ***********************************************************************/
2879      data _null_;
2880      %let _EFIERR_ = 0; /* set the ERROR detection macro variable */
2881      %let _EFIREC_ = 0;     /* clear export record count macro variable */
2882      file CSV delimiter=',' DSD DROPOVER ;
2883      if _n_ = 1 then        /* write column names or labels */
2884       do;
2885         put
2886            "Name"
2887         ','
2888            "Sex"
2889         ','
2890            "Age"
2891         ','
2892            "Height"
2893         ','
2894            "Weight"
2895         ;
2896       end;
2897     set  SASHELP.CLASS   end=EFIEOD;
2898         format Name $8. ;
2899         format Sex $1. ;
2900         format Age best12. ;
2901         format Height best12. ;
2902         format Weight best12. ;
2903       do;
2904         EFIOUT + 1;
2905         put Name $ @;
2906         put Sex $ @;
2907         put Age @;
2908         put Height @;
2909         put Weight ;
2910         ;
2911       end;
2912      if _ERROR_ then call symputx('_EFIERR_',1);  /* set ERROR detection macro variable */
2913      if EFIEOD then call symputx('_EFIREC_',EFIOUT);
2914      run;

NOTE: The file CSV is:
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;      (system-specific pathname),
      (system-specific file attributes)
&lt;/STRONG&gt;&lt;/FONT&gt;
NOTE: 20 records were written to the file (system-specific pathname).
      The minimum record length was 17.
      The maximum record length was 26.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


19 records created in CSV from SASHELP.CLASS.


NOTE: "CSV" file was successfully created.
NOTE: PROCEDURE EXPORT used (Total process time):
      real time           0.08 seconds
      cpu time            0.10 seconds
&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Aug 2022 16:06:45 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-08-29T16:06:45Z</dc:date>
    <item>
      <title>Remove "The SAS System" title from the log (SAS Studio)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830856#M328316</link>
      <description>&lt;P&gt;I cannot remove "The SAS System" title from the log in SAS Studio (background submit) like this person 8 years ago.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/22610877/remove-the-sas-system-from-sas-the-log" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/22610877/remove-the-sas-system-from-sas-the-log&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you aware of any solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74823i33D38150222128F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 13:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830856#M328316</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-08-29T13:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "The SAS System" title from the log (SAS Studio)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830860#M328318</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We don't know what you did. We don't know what the output looks like. Please show us the log for the portion of your code (and let's say 20 lines before this) where you try this. Please click on the &amp;lt;/&amp;gt; icon to include your log. Please show us a screen capture of the output, by clicking on the "Insert Photos" icon to include your screen capture in your reply. (Please don't make us ask for this in the future, it should be provided every single time you have a problem with SAS code)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title;
proc print data=sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not get a title.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1661767581795.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74820i69940F359867F97D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaigeMiller_0-1661767581795.png" alt="PaigeMiller_0-1661767581795.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 10:18:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830860#M328318</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-29T10:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "The SAS System" title from the log (SAS Studio)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830866#M328321</link>
      <description>&lt;P&gt;SAS Studio does not have pagesize option.&lt;/P&gt;
&lt;P&gt;Instead of setting preference you can try this code for changing PageSize.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options ps=32767;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;This will reduce them significantly. Not sure if there's a way to remove it entirely.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 10:40:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830866#M328321</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-08-29T10:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "The SAS System" title from the log (SAS Studio)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830881#M328327</link>
      <description>The output you show is not a log file.</description>
      <pubDate>Mon, 29 Aug 2022 12:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830881#M328327</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-08-29T12:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "The SAS System" title from the log (SAS Studio)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830883#M328329</link>
      <description>&lt;P&gt;My mistake. I have misread the problem. I apologize.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We still need to see what you tried (the log plus maybe 20 previous lines), and a screen capture of the part of the log where you are seeing "The SAS System". I don't see it here in my SAS (which is not SAS Studio).&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 13:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830883#M328329</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-29T13:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "The SAS System" title from the log (SAS Studio)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830887#M328330</link>
      <description>According to the discussions 8 years ago, the problem is not on SAS Enterprise Guide.&lt;BR /&gt;I also don't see the problem when running the job in interactive mode, only in batch mode with the "Background Submit" functionality.&lt;BR /&gt;I'm gonna add a snapshoot in the original question.</description>
      <pubDate>Mon, 29 Aug 2022 13:11:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830887#M328330</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-08-29T13:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "The SAS System" title from the log (SAS Studio)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830891#M328332</link>
      <description>&lt;P&gt;Yes, I see it when I run programs in batch mode only. I believe the only option is what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/226565"&gt;@japelin&lt;/a&gt;&amp;nbsp;said.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see why this text in the LOG is a problem that needs to be fixed. What is your concern?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 13:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830891#M328332</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-29T13:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "The SAS System" title from the log (SAS Studio)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830907#M328342</link>
      <description>&lt;P&gt;It's not a major concern. As it is not consistent and not working as expected, I would have expect it to be updated in recent SAS release. It means extra attention when scanning the content of the log per program for review. Ideally, when developing a program, you would expect as few possible differences between environment or program submission methods in order to get the same result across environments. It belongs to Good Programming Practices. Right now it means add a special case in the program.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 15:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830907#M328342</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-08-29T15:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "The SAS System" title from the log (SAS Studio)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830918#M328345</link>
      <description>I see your point.&lt;BR /&gt;When I tried to Git manage my SAS program and SAS logs, I too was very uncomfortable with the fact that the slight discrepancies that occur in the logs each time they are executed are detected as differences.&lt;BR /&gt;I used various options to make the execution log itself tolerable for detecting differences, but I couldn't do anything about the page breaks, and I didn't want to add a PS option for that, so I decided to write my own program to exclude unwanted lines from the log.&lt;BR /&gt;&lt;BR /&gt;I digress.&lt;BR /&gt;I usually use an older type of SAS (DMS environment) and don't use SAS Studio, so I don't know the details, but perhaps the batch execution uses the internal processing of the older SAS. (I can guess from the fact that the print is in lst format)&lt;BR /&gt;If enough people speak out to Technical Support, this may be fixed in the future, but as it stands now, it is difficult. I think a compromise needs to be made somewhere.&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Aug 2022 15:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830918#M328345</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-08-29T15:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "The SAS System" title from the log (SAS Studio)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830922#M328346</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;It's not a major concern. As it is not consistent and not working as expected, I would have expect it to be updated in recent SAS release. It means extra attention when scanning the content of the log per program for review. Ideally, when developing a program, you would expect as few possible differences between environment or program submission methods in order to get the same result across environments. It belongs to Good Programming Practices. Right now it means add a special case in the program.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So the simplest solution to the TITLE issue is to make sure each program sets a TITLE as soon as possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really want to compare logs you might also want to look at the (as far as I can tell undocumented) GENERIC option.&lt;/P&gt;
&lt;P&gt;That will remove a lot of the file system and owner details from the log and make the comparison easier.&amp;nbsp; (or course if you need the actual physical filenames in the log then don't use the GENERIC option).&lt;/P&gt;
&lt;PRE&gt;2867  options generic;
2868  filename csv temp;
2869  proc export data=sashelp.class dbms=csv file=csv replace;
2870  run;

2871   /**********************************************************************
2872   *   PRODUCT:   SAS
2873   *   VERSION:   9.4
2874   *   CREATOR:   External File Interface
2875   *   DATE:      25AUG22
2876   *   DESC:      Generated SAS Datastep Code
2877   *   TEMPLATE SOURCE:  (None Specified.)
2878   ***********************************************************************/
2879      data _null_;
2880      %let _EFIERR_ = 0; /* set the ERROR detection macro variable */
2881      %let _EFIREC_ = 0;     /* clear export record count macro variable */
2882      file CSV delimiter=',' DSD DROPOVER ;
2883      if _n_ = 1 then        /* write column names or labels */
2884       do;
2885         put
2886            "Name"
2887         ','
2888            "Sex"
2889         ','
2890            "Age"
2891         ','
2892            "Height"
2893         ','
2894            "Weight"
2895         ;
2896       end;
2897     set  SASHELP.CLASS   end=EFIEOD;
2898         format Name $8. ;
2899         format Sex $1. ;
2900         format Age best12. ;
2901         format Height best12. ;
2902         format Weight best12. ;
2903       do;
2904         EFIOUT + 1;
2905         put Name $ @;
2906         put Sex $ @;
2907         put Age @;
2908         put Height @;
2909         put Weight ;
2910         ;
2911       end;
2912      if _ERROR_ then call symputx('_EFIERR_',1);  /* set ERROR detection macro variable */
2913      if EFIEOD then call symputx('_EFIREC_',EFIOUT);
2914      run;

NOTE: The file CSV is:
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;      (system-specific pathname),
      (system-specific file attributes)
&lt;/STRONG&gt;&lt;/FONT&gt;
NOTE: 20 records were written to the file (system-specific pathname).
      The minimum record length was 17.
      The maximum record length was 26.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


19 records created in CSV from SASHELP.CLASS.


NOTE: "CSV" file was successfully created.
NOTE: PROCEDURE EXPORT used (Total process time):
      real time           0.08 seconds
      cpu time            0.10 seconds
&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830922#M328346</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-29T16:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove "The SAS System" title from the log (SAS Studio)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830994#M328370</link>
      <description>&lt;P&gt;I'm pretty sure that title is baked into SAS. I'm seeing it in EG and batch and from what I can see you can possibly reduce its occurrence with PAGESIZE as in that link you posted but it can't be removed entirely. Personally I've never felt a need to remove it...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 20:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-quot-The-SAS-System-quot-title-from-the-log-SAS-Studio/m-p/830994#M328370</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-08-29T20:24:43Z</dc:date>
    </item>
  </channel>
</rss>

