<?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: Select second half of the string / display a note on a single line. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Select-second-half-of-the-string-display-a-note-on-a-single-line/m-p/827776#M326974</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&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;My problem: The path is not displayed in the same line as NOTE: (MYMACRO) XXOUTPATH=&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;My SAS log displays it in the same line. I am using &lt;FONT face="courier new,courier"&gt;options ls=156&lt;/FONT&gt;, whereas your &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/n1quv1ypgn8bojn1q4s7nfagkfwu.htm" target="_blank" rel="noopener"&gt;linesize&lt;/A&gt; is probably &amp;lt;117. If you don't want to increase it, you can write&amp;nbsp;&lt;EM&gt;two&lt;/EM&gt; lines after&amp;nbsp;&lt;FONT face="courier new,courier"&gt;'(MYMACRO)'&lt;/FONT&gt; was found in _INFILE_:&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;do;&lt;/STRONG&gt;
  put _infile_;
&lt;STRONG&gt;  input;
  put _infile_;
end;&lt;/STRONG&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 09 Aug 2022 08:49:58 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2022-08-09T08:49:58Z</dc:date>
    <item>
      <title>Select second half of the string / display a note on a single line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Select-second-half-of-the-string-display-a-note-on-a-single-line/m-p/827766#M326967</link>
      <description>&lt;P&gt;My problem: The path is not displayed in the same line as NOTE: (MYMACRO) XXOUTPATH=&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let xxoutpath=C:/Users/xxdemo/Documents/Dropbox/xxdemo/xxdemo_prod_programming/sas/val/mymacro/reporting;
%put %str(NOT)E: (MYMACRO) XXOUTPATH= &amp;amp;xxoutpath.;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It means that when I search for (MYMACRO) the path is not selected.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_; 
    infile "&amp;amp;xxproject./log/tc001.log"; 
    file "&amp;amp;xxproject./log/review_tc001.log";
    input; 
     if index(_infile_,'(MYMACRO)') ne 0 then put _infile_; 
run&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My current solution: create a shorter version of the path, keeping the last 60 characters or less.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    tmp=substr("&amp;amp;xxoutpath.",length("&amp;amp;xxoutpath.")-60); *keep the last 60 characters; 
    call symputx('xxoutpath_short','...' || substr(tmp,findc(tmp,'/')),'L');
    
    put _all_;
run;

%put &amp;amp;xxoutpath_short.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm sure there is a smarter way to get a shorter version. So feel free to comment.&lt;/P&gt;
&lt;P&gt;If you have a solution get everything kept in the selection, let me know too.&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 07:53:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Select-second-half-of-the-string-display-a-note-on-a-single-line/m-p/827766#M326967</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-08-09T07:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select second half of the string / display a note on a single line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Select-second-half-of-the-string-display-a-note-on-a-single-line/m-p/827776#M326974</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&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;My problem: The path is not displayed in the same line as NOTE: (MYMACRO) XXOUTPATH=&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;My SAS log displays it in the same line. I am using &lt;FONT face="courier new,courier"&gt;options ls=156&lt;/FONT&gt;, whereas your &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/n1quv1ypgn8bojn1q4s7nfagkfwu.htm" target="_blank" rel="noopener"&gt;linesize&lt;/A&gt; is probably &amp;lt;117. If you don't want to increase it, you can write&amp;nbsp;&lt;EM&gt;two&lt;/EM&gt; lines after&amp;nbsp;&lt;FONT face="courier new,courier"&gt;'(MYMACRO)'&lt;/FONT&gt; was found in _INFILE_:&lt;/P&gt;
&lt;PRE&gt;&lt;STRONG&gt;do;&lt;/STRONG&gt;
  put _infile_;
&lt;STRONG&gt;  input;
  put _infile_;
end;&lt;/STRONG&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Aug 2022 08:49:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Select-second-half-of-the-string-display-a-note-on-a-single-line/m-p/827776#M326974</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-08-09T08:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select second half of the string / display a note on a single line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Select-second-half-of-the-string-display-a-note-on-a-single-line/m-p/827783#M326975</link>
      <description>&lt;P&gt;Well spotted. Thanks. ls=98 by default in my SAS version.&lt;/P&gt;
&lt;P&gt;I keep forgetting that ls and ps have no common default across SAS versions.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 09:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Select-second-half-of-the-string-display-a-note-on-a-single-line/m-p/827783#M326975</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-08-09T09:07:23Z</dc:date>
    </item>
  </channel>
</rss>

