<?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: How to enable\disable Macros\datastep without commenting? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191169#M36059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, firstly I would recommend not using proc import, use a datastep and infile statement to ensure you have complete control over your import.&lt;/P&gt;&lt;P&gt;Secondly, are you checking for the existence of the file before doing things?&amp;nbsp; If so then:&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if %sysfunc(fileexist(&amp;amp;APPFILE.)) = 1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('proc import datafile="&amp;amp;appfile." out=appfile_class...; run;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also do it in a macro. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Dec 2014 09:31:27 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-12-01T09:31:27Z</dc:date>
    <item>
      <title>How to enable\disable Macros\datastep without commenting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191165#M36055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a cross sell campaign which was conducted by one bank. They sold products like home loan, personal loan, debit card loan and mortgage loan.However product sold was not identical for each month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: they sold home loan, personal loan, debit card loan and mortgage loan for Jan month. For Feb month product sold was home loan, debit card loan and mortgage loan.Please&amp;nbsp; be informed that they sold maximum of three\four products per month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to complete the report generation (via merge,macros and proc report) to determine the status of cross sell campaign for January. Now I need to work on reports for February month whereas I need to comment out the data steps,macros which has debit card loan since they sold only home loan, debit card and mortgage loan. Any possibilities to make this logic static by changing only the product name at the initial step ( in %let statement) rather than commenting out each step which holds the product that is not required. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see my code snippet below for February month. You can see that I'm commenting all the parts connected with personal loan. Likewise there are many steps in my code. So any inputs to this threat is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;%let Actfile&amp;nbsp; = strat_fullacct_12312013.csv ;*** App File ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;%let mciffile = strat_fullacct_07182014_cass.csv&amp;nbsp;&amp;nbsp; ;***&amp;nbsp; Customer base file ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;%let dcfile&amp;nbsp;&amp;nbsp; = WB_D1_DEBIT_CONTROL_revised.csv&amp;nbsp;&amp;nbsp; ;*** Debit card control file ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;%let plcfile&amp;nbsp; = /*WB_D1_TU_PLOAN_CONTROL_revised.csv ;*** Personal loan control file ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;%let ctlfile&amp;nbsp; = controlclpjan_sept2014_10202014.csv;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;****************Merge WISC mail file and MCIF file to produce the direct responses;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;/*Proc Sort data=&amp;amp;clint.mfile_WIS_C out=&amp;amp;clint.mfile_WIS_C_sorted;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;by&amp;nbsp; CONKEY;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;Proc Sort data=&amp;amp;clint.mcif_unmat2_PL out=&amp;amp;clint.mcif_unmat2_sorted;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;by&amp;nbsp; conkey;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;Data rpt.&amp;amp;clint._WISC_dirresp_&amp;amp;outdt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;merge &amp;amp;clint.mfile_WIS_C_sorted(In=aa )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;&amp;amp;clint.mcif_unmat2_sorted(In=bb drop=N_ADDRESS N_STATE N_ZIP Full_Name );&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;by CONKEY;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;if aa &amp;amp; bb then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;do;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;format acctnum_prod $30. nbr_acct 1.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;acctnum_prod =compress(upcase(ACCOUNT_NUMBER||Product_code));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;control_flag=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;camp_flag = &amp;amp;outdt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;nbr_acct = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;if (&amp;amp;maildate+7 &amp;lt;= date_OPEN &amp;lt;= &amp;amp;maildate+97) and TRIM(Prod_grpm)=TRIM(Prod_grp) then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;DO;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;MATCHED='Y';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;resptype = 'direct';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;dmatch_mail=1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;END;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;iF prod_flag ne '4';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;if aa then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;output;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;Proc Sort data=rpt.&amp;amp;clint._WISC_dirresp_&amp;amp;outdt out=&amp;amp;clint._WISC_dirresp_sorted;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;by&amp;nbsp; conkey;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif'; color: #222222;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 17:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191165#M36055</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2014-11-30T17:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable\disable Macros\datastep without commenting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191166#M36056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could probably just make data set related to that type of data with 0 observations and not need to eliminate any of the code.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: Arial, sans-serif; font-size: 16px; background-color: #ffffff;"&gt;%let dcfile&amp;nbsp;&amp;nbsp; = WB_D1_DEBIT_CONTROL_revised.csv&amp;nbsp;&amp;nbsp; ;*** Debit card control file ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 16px; background-color: #ffffff; font-family: Arial, sans-serif;"&gt;%let dcfile&amp;nbsp;&amp;nbsp; = &amp;lt;NONE&amp;gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 16px; background-color: #ffffff; font-family: Arial, sans-serif;"&gt;data dcdata ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 16px; background-color: #ffffff; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "&amp;amp;dcfile" = "&amp;lt;NONE&amp;gt;" then stop;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 16px; background-color: #ffffff; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; input "&amp;amp;dcfile" .... ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 16px; background-color: #ffffff; font-family: Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; input .....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 16px; background-color: #ffffff; font-family: Arial, sans-serif;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 16px; background-color: #ffffff; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 01:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191166#M36056</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-12-01T01:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable\disable Macros\datastep without commenting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191167#M36057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm not sure fit your code for proc import. See my code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* working*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let appfile =/data/PPM/Spatial_Analysis/fcu_combined_mf_201411_cass.csv; /*termstr=crlf lrecl=32760 ;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile="&amp;amp;appfile." out=appfile_cass dbms=CSV replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; guessingrows=30000;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;if "&amp;amp;appfile." = "&amp;lt;NONE&amp;gt;" then stop;&lt;/P&gt;&lt;P&gt;else;&lt;/P&gt;&lt;P&gt;set appfile_cass;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* not working - because proc import search for the file "&amp;lt;NONE&amp;gt;" in server */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let appfile =&amp;lt;None&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile="&amp;amp;appfile." out=appfile_cass dbms=CSV replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; guessingrows=30000;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;if "&amp;amp;appfile." = "&amp;lt;NONE&amp;gt;" then stop;&lt;/P&gt;&lt;P&gt;else;&lt;/P&gt;&lt;P&gt;set appfile_cass;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest to overcome this error. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 09:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191167#M36057</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2014-12-01T09:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable\disable Macros\datastep without commenting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191168#M36058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Encapsulate the steps in question in a macro and a %if "&amp;amp;flag" = "value" %then %do; &lt;EM&gt;your code&lt;/EM&gt; %end; block.&lt;/P&gt;&lt;P&gt;Then you only need to check conditions and set the flags at the beginning and then call the macros.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 09:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191168#M36058</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-12-01T09:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable\disable Macros\datastep without commenting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191169#M36059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, firstly I would recommend not using proc import, use a datastep and infile statement to ensure you have complete control over your import.&lt;/P&gt;&lt;P&gt;Secondly, are you checking for the existence of the file before doing things?&amp;nbsp; If so then:&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if %sysfunc(fileexist(&amp;amp;APPFILE.)) = 1 then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('proc import datafile="&amp;amp;appfile." out=appfile_class...; run;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also do it in a macro. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 09:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191169#M36059</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-12-01T09:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable\disable Macros\datastep without commenting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191170#M36060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May I request you to provide some example code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 11:46:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191170#M36060</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2014-12-01T11:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable\disable Macros\datastep without commenting?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191171#M36061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%let appfile =&amp;lt;None&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro do_work(infilename);&lt;/P&gt;&lt;P&gt;%if "&amp;amp;infilename" ne "&amp;lt;NONE&amp;gt;" %then %do;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile="&amp;amp;infilename." out=appfile_cass dbms=CSV replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; guessingrows=30000;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set appfile_cass;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%do_work(&amp;amp;appfile);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 13:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-disable-Macros-datastep-without-commenting/m-p/191171#M36061</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-12-01T13:36:24Z</dc:date>
    </item>
  </channel>
</rss>

