<?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: Option to keep a macro variable from printing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137199#M27738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;shwilliams4&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;you wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I need the symbolgen mlogic mprint on for the log files audits.&lt;/P&gt;
&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true" style="display: inline !important;"&gt;
&lt;P style="min-height: 8pt; display: inline !important; padding: 0px;"&gt;&lt;/P&gt;
&lt;P style="display: inline !important;"&gt;.&lt;/P&gt;
&lt;/PRE&gt;
&lt;/PRE&gt;&lt;P&gt;expecting this "need" I offered you two statements - one to retrieve the current settings before masking the password, and one to reinstate after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You suggest something which might be possible. Create an IDEA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peter.C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2014 20:24:57 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2014-03-07T20:24:57Z</dc:date>
    <item>
      <title>Option to keep a macro variable from printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137193#M27732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The programs I run often require a password which usually comes in the form of a macro variable that can then be printed to the log window. Log windows may be saved for audits.&lt;/P&gt;&lt;P&gt;We use SQL pass-through mostly for speed considerations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering if SAS would consider puting an option on the %let statement to keep certain macro variables from printing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is done in SAS Stored procedures for variables named &amp;lt;something&amp;gt;_password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sumner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 19:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137193#M27732</guid>
      <dc:creator>shwilliams4</dc:creator>
      <dc:date>2014-03-07T19:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Option to keep a macro variable from printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137194#M27733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this help you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings09/013-2009.pdf"&gt;http://support.sas.com/resources/papers/proceedings09/013-2009.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 19:30:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137194#M27733</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2014-03-07T19:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Option to keep a macro variable from printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137195#M27734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before the statements revealing that mVar use statements&lt;/P&gt;&lt;P&gt;%let oldopts = &lt;/P&gt;&lt;P&gt;%sysfunc( getoption( mprint))&lt;/P&gt;&lt;P&gt;%sysfunc( getoption( Symbolgen))&lt;/P&gt;&lt;P&gt;%sysfunc( getoption( mLogic))&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;option NOmprint NOsymbolgen NOmlogic ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the statement that (no longer) reveals the password, use this statement to reinstate any macro debugging:&lt;/P&gt;&lt;P&gt;Option &amp;amp;oldopts ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 19:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137195#M27734</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-03-07T19:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Option to keep a macro variable from printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137196#M27735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the symbolgen mlogic mprint on for the log files audits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Symget was something I tried in the past and it didn't work.&lt;/P&gt;&lt;P&gt;I want a property to be on the macro variable that makes it so SAS knows the macro variable should not be printed versus using a different method of calling the macro variable. This may not be possible as macro variables are plain text with no real inherent properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 19:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137196#M27735</guid>
      <dc:creator>shwilliams4</dc:creator>
      <dc:date>2014-03-07T19:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Option to keep a macro variable from printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137197#M27736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="active_link" href="http://blogs.sas.com/content/sasdummy/2010/11/23/five-strategies-to-eliminate-passwords-from-your-sas-programs/" title="http://blogs.sas.com/content/sasdummy/2010/11/23/five-strategies-to-eliminate-passwords-from-your-sas-programs/"&gt;http://blogs.sas.com/content/sasdummy/2010/11/23/five-strategies-to-eliminate-passwords-from-your-sas-programs/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 19:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137197#M27736</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-07T19:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Option to keep a macro variable from printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137198#M27737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for contribution, Reeza. I also linked a document by Carpenter dealing with the issue of masking passwords. Was hoping the OP would read it and see if there was anything useful there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 20:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137198#M27737</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2014-03-07T20:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Option to keep a macro variable from printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137199#M27738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;shwilliams4&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;you wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I need the symbolgen mlogic mprint on for the log files audits.&lt;/P&gt;
&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true" style="display: inline !important;"&gt;
&lt;P style="min-height: 8pt; display: inline !important; padding: 0px;"&gt;&lt;/P&gt;
&lt;P style="display: inline !important;"&gt;.&lt;/P&gt;
&lt;/PRE&gt;
&lt;/PRE&gt;&lt;P&gt;expecting this "need" I offered you two statements - one to retrieve the current settings before masking the password, and one to reinstate after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You suggest something which might be possible. Create an IDEA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peter.C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 20:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137199#M27738</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-03-07T20:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Option to keep a macro variable from printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137200#M27739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All great ideas I have aexplored. Peter C. lead me down the path of Creating an Idea which is more of what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 20:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137200#M27739</guid>
      <dc:creator>shwilliams4</dc:creator>
      <dc:date>2014-03-07T20:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Option to keep a macro variable from printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137201#M27740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/community/support-communities/sas_macro_facility_data_step_and_sas_language_elements"&gt;https://communities.sas.com/community/support-communities/sas_macro_facility_data_step_and_sas_language_elements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; has a box of ACTIONS on the right&lt;/P&gt;&lt;P&gt;the last of these is &lt;/P&gt;&lt;P&gt;create an IDEA&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 22:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137201#M27740</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-03-07T22:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Option to keep a macro variable from printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137202#M27741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc pwencode comes fairly close to what you need for the moment, as it keeps your password from appearing in the log. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 23:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137202#M27741</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-07T23:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Option to keep a macro variable from printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137203#M27742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really. Having the encrypted password in the log does not make it secure.You are corect that one does not know the password, but they don't need to know the password in order to get into the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internally we lock our databases down to protect PHI and Employee PHI. Having the encrypted password go into a log means someone without access to EPHI can use that login/encrypted password to see EPHI. This user would be internal to the company with access to every system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While {sas02}A48sdgkjsdhkljer may seem secure because you can't see the original password, that encrypted password can still be used to get access to the system. A log file that says password = ********** is secure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 23:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137203#M27742</guid>
      <dc:creator>shwilliams4</dc:creator>
      <dc:date>2014-03-07T23:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Option to keep a macro variable from printing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137204#M27743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are methods to deal with this.&lt;/P&gt;&lt;P&gt;One is better coding to turn off MPRINT, SYMBOLGEN while dealing with the password.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Another is better methods of connecting using SAS BI tools so that passwords are not stored in macro variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 23:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Option-to-keep-a-macro-variable-from-printing/m-p/137204#M27743</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-03-07T23:19:17Z</dc:date>
    </item>
  </channel>
</rss>

