<?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 how to add line feed into the log file to make the reading easier in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-add-line-feed-into-the-log-file-to-make-the-reading/m-p/844906#M41728</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even if my SAS code is well idented and spaced as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put starting check_env !

%check_env;

%put ===========&amp;gt; &amp;amp;=envp;
%put ===========&amp;gt; &amp;amp;=envN;
 
%put fileref and directories associated to sasautos: %sysfunc(getoption(sasautos)) ;


OPTIONS    SASAUTOS=("//eis&amp;amp;envN./EISFEED/sasmacro","//saspgm&amp;amp;envP./prod/sasmacro","//saspgm/prod/sasmacro");

%put fileref and directories associated to sasautos: %sysfunc(getoption(sasautos)) ;

%macro check_intg_prd;
   %if &amp;amp;envN.=p %then %let suffix=prd1;
   %else %let suffix=intg&amp;amp;envP.;
%mend;
%check_intg_prd;

%put &amp;amp;=envN  &amp;amp;=suffix;

/*Creation of the directory to save the daily sources in order to restore the original data in the event of a problem.*/

%checkDir_libname(lname=,dir=/dwh_actuariat/sasprocess/saspgm&amp;amp;envP./prod/dwh&amp;amp;suffix./daily_bkp);
%checkDir_libname(lname=,dir=/dwh_actuariat/sasprocess/saspgm&amp;amp;envP./prod/dwh&amp;amp;suffix./log);

%put ==================&amp;gt; The location of the original daily datasets is : "/dwh_actuariat/sasprocess/saspgm&amp;amp;envP./prod/dwh&amp;amp;suffix./daily_bkp";
%put ==================&amp;gt; The location of the logfile is : "/dwh_actuariat/sasprocess/saspgm&amp;amp;envP./prod/dwh&amp;amp;suffix./daily_bkp";


%DATEPROD(Q); run;
%CIE1LET(&amp;amp;cie); run;




/*******************Current date and deadline for keeping datasets **************************************/



%let nDateProd = %sysfunc(InputN ( &amp;amp;dateprod, yymmdd8 ));
%let datejourd=%sysfunc(Intnx( Day, &amp;amp;ndateprod, -120), yymmddn8.);
%put =================================================================================;
%put ================&amp;gt; The current Day                       = &amp;amp;dateprod.===============;
%put ================&amp;gt; The deadline for keeping the datasets = &amp;amp;datejourd.===============;
%put =================================================================================;



/***************** Getting the part of the Halcion source file name based on the line of business, i.e. auto or habi *****************/

%if %upcase(&amp;amp;LINE) = AUTO %then 
	%do;   
       	%let FINDSN2 = paac.q92;
       	%let LG2=3000;                 
       	%let LINE3 = auto;
	%end;
%else %do;
       	%let FINDSN2 = pbad.q96;
       	%let LG2 = 3000;
       	%let LINE3 = prop;
	%end;
%put ============&amp;gt; &amp;amp;=findsn2 &amp;amp;=lg2 &amp;amp;=line3;

%put ==================&amp;gt; Writing the SAS program &amp;amp;cie..dailyconv.&amp;amp;line..&amp;amp;type..sas &amp;lt;================= ;
%put ==================&amp;gt; The location of "&amp;amp;cie..dailyconv.&amp;amp;line..&amp;amp;type..sas" is:  %sysfunc(quote(%sysfunc(pathname(sas))));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The log file is not as easy to read as I which to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to few lines feed into the log files to make it more readeable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;=================================================================================
================&amp;gt; The current Day                       = 20221116===============
================&amp;gt; The deadline for keeping the datasets = 20220719===============
=================================================================================
============&amp;gt; FINDSN2=pbad.q96 LG2=3000 LINE3=prop
==================&amp;gt; Writing the SAS program xx.yyyyyyy.habi.prm.sas &amp;lt;=================
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The date infor is one bloc of information, the second bloc of information is pbad.96 and the last bloc of information is writing the SAS program.&amp;nbsp; But as it is, the information is compacted into the log file.&amp;nbsp; Is there a way to do it better, more agreable to read ?&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2022 15:59:53 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2022-11-17T15:59:53Z</dc:date>
    <item>
      <title>how to add line feed into the log file to make the reading easier</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-add-line-feed-into-the-log-file-to-make-the-reading/m-p/844906#M41728</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even if my SAS code is well idented and spaced as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put starting check_env !

%check_env;

%put ===========&amp;gt; &amp;amp;=envp;
%put ===========&amp;gt; &amp;amp;=envN;
 
%put fileref and directories associated to sasautos: %sysfunc(getoption(sasautos)) ;


OPTIONS    SASAUTOS=("//eis&amp;amp;envN./EISFEED/sasmacro","//saspgm&amp;amp;envP./prod/sasmacro","//saspgm/prod/sasmacro");

%put fileref and directories associated to sasautos: %sysfunc(getoption(sasautos)) ;

%macro check_intg_prd;
   %if &amp;amp;envN.=p %then %let suffix=prd1;
   %else %let suffix=intg&amp;amp;envP.;
%mend;
%check_intg_prd;

%put &amp;amp;=envN  &amp;amp;=suffix;

/*Creation of the directory to save the daily sources in order to restore the original data in the event of a problem.*/

%checkDir_libname(lname=,dir=/dwh_actuariat/sasprocess/saspgm&amp;amp;envP./prod/dwh&amp;amp;suffix./daily_bkp);
%checkDir_libname(lname=,dir=/dwh_actuariat/sasprocess/saspgm&amp;amp;envP./prod/dwh&amp;amp;suffix./log);

%put ==================&amp;gt; The location of the original daily datasets is : "/dwh_actuariat/sasprocess/saspgm&amp;amp;envP./prod/dwh&amp;amp;suffix./daily_bkp";
%put ==================&amp;gt; The location of the logfile is : "/dwh_actuariat/sasprocess/saspgm&amp;amp;envP./prod/dwh&amp;amp;suffix./daily_bkp";


%DATEPROD(Q); run;
%CIE1LET(&amp;amp;cie); run;




/*******************Current date and deadline for keeping datasets **************************************/



%let nDateProd = %sysfunc(InputN ( &amp;amp;dateprod, yymmdd8 ));
%let datejourd=%sysfunc(Intnx( Day, &amp;amp;ndateprod, -120), yymmddn8.);
%put =================================================================================;
%put ================&amp;gt; The current Day                       = &amp;amp;dateprod.===============;
%put ================&amp;gt; The deadline for keeping the datasets = &amp;amp;datejourd.===============;
%put =================================================================================;



/***************** Getting the part of the Halcion source file name based on the line of business, i.e. auto or habi *****************/

%if %upcase(&amp;amp;LINE) = AUTO %then 
	%do;   
       	%let FINDSN2 = paac.q92;
       	%let LG2=3000;                 
       	%let LINE3 = auto;
	%end;
%else %do;
       	%let FINDSN2 = pbad.q96;
       	%let LG2 = 3000;
       	%let LINE3 = prop;
	%end;
%put ============&amp;gt; &amp;amp;=findsn2 &amp;amp;=lg2 &amp;amp;=line3;

%put ==================&amp;gt; Writing the SAS program &amp;amp;cie..dailyconv.&amp;amp;line..&amp;amp;type..sas &amp;lt;================= ;
%put ==================&amp;gt; The location of "&amp;amp;cie..dailyconv.&amp;amp;line..&amp;amp;type..sas" is:  %sysfunc(quote(%sysfunc(pathname(sas))));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The log file is not as easy to read as I which to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to few lines feed into the log files to make it more readeable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;=================================================================================
================&amp;gt; The current Day                       = 20221116===============
================&amp;gt; The deadline for keeping the datasets = 20220719===============
=================================================================================
============&amp;gt; FINDSN2=pbad.q96 LG2=3000 LINE3=prop
==================&amp;gt; Writing the SAS program xx.yyyyyyy.habi.prm.sas &amp;lt;=================
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The date infor is one bloc of information, the second bloc of information is pbad.96 and the last bloc of information is writing the SAS program.&amp;nbsp; But as it is, the information is compacted into the log file.&amp;nbsp; Is there a way to do it better, more agreable to read ?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 15:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-add-line-feed-into-the-log-file-to-make-the-reading/m-p/844906#M41728</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2022-11-17T15:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to add line feed into the log file to make the reading easier</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-add-line-feed-into-the-log-file-to-make-the-reading/m-p/844909#M41729</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An "empty" %PUT statement creates a line feed:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Indentation can be achieved with non-breaking spaces ('A0'x, typed as Alt+0160, then copied and pasted).&lt;/P&gt;
&lt;PRE&gt;options nosource;
%put Line 1;
%put;
%put &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Line 2;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt;Line 1

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Line 2&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Nov 2022 16:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-add-line-feed-into-the-log-file-to-make-the-reading/m-p/844909#M41729</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-11-17T16:20:28Z</dc:date>
    </item>
  </channel>
</rss>

