<?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: macro question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577480#M75511</link>
    <description>&lt;P&gt;Btw, so this would fall into Maxim 9&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Honestly, it's so eloquent and a time saver. I use the Maxim 5 as the last option. For my convenience, I have sorted the maxims in my printed paper as 5th one to me is 52 the last one. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; coz no need in asking if I can find it. In essence Maxim 9 or Maxim 7 answers/guides this thread&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 18:50:52 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-07-29T18:50:52Z</dc:date>
    <item>
      <title>macro question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577450#M75504</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;i hate&amp;nbsp; when small things&amp;nbsp; in SAS bother me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so this is&amp;nbsp; a&amp;nbsp; part of my&amp;nbsp;&amp;nbsp; code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;noprint&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; count(*)&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; :rowcount1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; xx.secured;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SET&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; xx.secured;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;file&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"/aa/bbb/ccc/ddd/test.txt"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;dlm&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'|'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; _n_ = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;sysdate9.|&amp;amp;rowcount1.|&amp;amp;sysuserid."&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;put&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_all_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)(~);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;then&amp;nbsp; the&amp;nbsp; header in my&amp;nbsp; output&amp;nbsp; file will show&amp;nbsp; something like&lt;BR /&gt;29JUL2019|&amp;nbsp;&amp;nbsp;&amp;nbsp; 2936|abcdr4&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;then&amp;nbsp; i would change the select into&amp;nbsp; query to &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;noprint&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp; strip(put((count(*),6.))&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;into&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; :rowcount1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; xx.secured;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; and I get this &lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;29JUL2019|2936&amp;nbsp;&amp;nbsp;&amp;nbsp; |abcdr4&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;but i need to get this &lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;29JUL2019|2936|abcdr4.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;also ,can&amp;nbsp; i capitalize the&amp;nbsp; sysuserid&amp;nbsp; in the put statement?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Any one please?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;T&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 17:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577450#M75504</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2019-07-29T17:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: macro question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577451#M75505</link>
      <description>&lt;P&gt;Use Trimmed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;

select count(*) into :rowcount1 Trimmed from xx.secured;

quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jul 2019 17:16:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577451#M75505</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-07-29T17:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: macro question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577463#M75506</link>
      <description>&lt;P&gt;thank you novinosrin!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and do you maybe know how I can capitalize the sysuserid with some changes in the put statement?&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;abcdr4&lt;/FONT&gt; to ABCDR4&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 17:59:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577463#M75506</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2019-07-29T17:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: macro question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577468#M75507</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

data _null_;


put "&amp;amp;sysdate9.|%upcase(&amp;amp;sysuserid.)";

put (_all_)(~);

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;It's a simple &lt;STRONG&gt;%upcase&lt;/STRONG&gt; function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/34400"&gt;@Tal&lt;/a&gt;&amp;nbsp; Tell you what, this is when&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; 's maxims is so handy. I have it printed in my desk. It directs beautifully to look where for what.&amp;nbsp; Slick stuff and you should get that too&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577468#M75507</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-07-29T18:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: macro question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577474#M75508</link>
      <description>&lt;P&gt;Find the link to what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;mentioned in my footnotes.&lt;/P&gt;
&lt;P&gt;The SAS Global Forum paper is online at&amp;nbsp;&lt;A href="https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3062-2019.pdf" target="_blank" rel="noopener"&gt;https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3062-2019.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577474#M75508</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-29T18:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: macro question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577475#M75509</link>
      <description>&lt;P&gt;thank you again but how&amp;nbsp; I get&amp;nbsp; to this article&amp;nbsp; of his. He got many &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577475#M75509</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2019-07-29T18:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: macro question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577476#M75510</link>
      <description>&lt;P&gt;thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577476#M75510</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2019-07-29T18:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: macro question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577480#M75511</link>
      <description>&lt;P&gt;Btw, so this would fall into Maxim 9&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Honestly, it's so eloquent and a time saver. I use the Maxim 5 as the last option. For my convenience, I have sorted the maxims in my printed paper as 5th one to me is 52 the last one. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; coz no need in asking if I can find it. In essence Maxim 9 or Maxim 7 answers/guides this thread&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-question/m-p/577480#M75511</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-07-29T18:50:52Z</dc:date>
    </item>
  </channel>
</rss>

