<?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 macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203540#M37930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to do a macro which search in every folder of a directory and when he finds a sas table in that folder to do a proc cporc. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2015 14:32:40 GMT</pubDate>
    <dc:creator>googa22</dc:creator>
    <dc:date>2015-07-15T14:32:40Z</dc:date>
    <item>
      <title>macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203540#M37930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to do a macro which search in every folder of a directory and when he finds a sas table in that folder to do a proc cporc. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 14:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203540#M37930</guid>
      <dc:creator>googa22</dc:creator>
      <dc:date>2015-07-15T14:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203541#M37931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use your OS listing with the recursive option to list every file/folder in the directory and bring that into a table. Then use call execute or a macro to do your proc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203541#M37931</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-15T15:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203542#M37932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I will try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203542#M37932</guid>
      <dc:creator>googa22</dc:creator>
      <dc:date>2015-07-15T15:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203543#M37933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My OS is Linux and I made this to obtain the table with paths:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: navy; background: white;"&gt;data&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;rc1=system(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"cd /data/projects/smartdata/librerie/"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;rc2=system(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"du -k &amp;gt; /data/projects/smartdata/librerie/listfolders.txt"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: navy; background: white;"&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: navy; background: white;"&gt;PROC&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: navy; background: white;"&gt;IMPORT&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; line-height: 1.5em; font-family: 'Courier New'; color: blue; background: white;"&gt;OUT&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; line-height: 1.5em; font-family: 'Courier New'; color: black; background: white;"&gt;= WORK.listfolders &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;DATAFILE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;= &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"/data/projects/smartdata/librerie/listfolders.txt"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;DBMS&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=DLM REPLACE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;DELIMITER&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'09'x&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;GETNAMES&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=NO;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;DATAROW&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;And I have also this macro:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%macro list_folder_contents(folder_path,file_path);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;*create library;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;libname lib_tmp "&amp;amp;folder_path.";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;*list library detailed contents;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; create table List_lib_contents as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memname,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memtype&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from dictionary.members&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; where libname="LIB_TMP" and memtype in ('DATA','CATALOG');&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;*count the number of rows;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data _NULL_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if 0 then set work.List_lib_contents nobs=n;&lt;/P&gt;&lt;P&gt;&amp;nbsp; call symputx('nrows',n);&lt;/P&gt;&lt;P&gt;&amp;nbsp; stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;*verify for files;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%if&amp;nbsp; &amp;amp;nrows &amp;gt; 0 %then %do;&lt;/P&gt;&lt;P&gt;libname oldlib "&amp;amp;folder_path.";&lt;/P&gt;&lt;P&gt;filename tranfile "&amp;amp;file_path.";&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;proc cport lib=oldlib file=tranfile;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;%mend;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Can I call this macro using perhaps like parameter the paths which are in the sas table obtained? &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203543#M37933</guid>
      <dc:creator>googa22</dc:creator>
      <dc:date>2015-07-15T15:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203544#M37934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, see my working example on GitHub, and specific to your situation below. I don't see (or missed) how filepath is specified in your macro or data so you'll need to work that out as well. The actual macro execution is commented out, I like to verify my macro call first and then run it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/beb97b1c6d4517dde3b2" title="https://gist.github.com/statgeek/beb97b1c6d4517dde3b2"&gt;SAS - Call macro using parameters from data set&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="line" id="file-sas_call_execute-LC17"&gt;data sample;&lt;/P&gt;&lt;P class="line" id="file-sas_call_execute-LC18"&gt;set listfolders;&lt;/P&gt;&lt;P class="line" id="file-sas_call_execute-LC19"&gt;&lt;/P&gt;&lt;P class="line" id="file-sas_call_execute-LC22"&gt;string =&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; catt('%&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;list_folder_contents&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;(age=' folder_path, ',', filepath,&amp;nbsp; ');');&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="line" id="file-sas_call_execute-LC24"&gt;put string;&lt;/P&gt;&lt;P class="line"&gt;*call execute(string);&lt;/P&gt;&lt;P class="line" id="file-sas_call_execute-LC25"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 16:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203544#M37934</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-15T16:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203545#M37935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to make a list of SAS data sets, use proc contents, which requires a libname statement for the listing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since you want to search a folder and sub-folders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this page on making lists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.sascommunity.org/wiki/Making_Lists" title="http://www.sascommunity.org/wiki/Making_Lists"&gt;http://www.sascommunity.org/wiki/Making_Lists&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to figure out which way you are going to do these tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to use cport you need a libref.data_set_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your Q implicitly stated that you wanted to search for files named data_set_name.sas7bdat&lt;/P&gt;&lt;P&gt;and then automagically cport them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doing a recursive call to a make-list-folders is non-trivial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would use a DOS directory command to find all the folders containing *.sas7bdat&lt;/P&gt;&lt;P&gt;then parse that to a set of folders that are arguments to the libname::libref statements for use by contents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a tool to call a macro using a data set as list of parameter values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Macro_CallMacr" title="http://www.sascommunity.org/wiki/Macro_CallMacr"&gt;Macro CallMacr - sasCommunity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. make list of folders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dir *.sas7bdat /S &amp;gt;list-of-folder-with-data-sets.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. edit that file and get one row per folder, save as list-folders.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;folder&lt;/P&gt;&lt;P&gt;c:\temp\sas7b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. import list-folder.csv to data-set list_folders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. write and test macro cport with parameters data and transport-file-name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. write and test macro make_list_folders_data with parameters folder&lt;/P&gt;&lt;P&gt;%macro make_libref(folder=c:\temp)&lt;/P&gt;&lt;P&gt;libname temp "&amp;amp;folder";&lt;/P&gt;&lt;P&gt;proc contents data = temp._all_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; out = out_contents;&lt;/P&gt;&lt;P&gt;DATA out_list_data;&lt;/P&gt;&lt;P&gt;attrib folder length = $256;&lt;/P&gt;&lt;P&gt;retain folder "&amp;amp;folder";&lt;/P&gt;&lt;P&gt;set out_contents;&lt;/P&gt;&lt;P&gt;proc append data = &amp;amp;syslast&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; base = list_folders_data_sets;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;libname temp clear;*important! libref TEMP is reused;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this macro is called for each row of list_folders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. use data set list_folders_data_sets to call macro cport&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ah, yes, there is a slight problem with naming collisions in the cport transport filenames.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;every data set ought to be written to a same-name-as-data-set transport file&lt;/P&gt;&lt;P&gt;that is easy to guarantee when reading from one folder&lt;/P&gt;&lt;P&gt;but not, in your case, multiple folders which may contain same names in different folders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution to consider: sequentially number the transport files with either a prefix or suffix&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your cport macro can increment a global macro variable&lt;/P&gt;&lt;P&gt;%let cport_N = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro cport(libref=temp,data=);&lt;/P&gt;&lt;P&gt;*...;&lt;/P&gt;&lt;P&gt;%global cport_N;&lt;/P&gt;&lt;P&gt;%let cport_N = %eval(&amp;amp;cport_N+1);&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 20:52:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203545#M37935</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2015-07-15T20:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203546#M37936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for answers. They have been helpful to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 13:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203546#M37936</guid>
      <dc:creator>googa22</dc:creator>
      <dc:date>2015-07-16T13:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203547#M37937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark them as such then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 23:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/macro/m-p/203547#M37937</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-07-16T23:14:32Z</dc:date>
    </item>
  </channel>
</rss>

