<?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: Importing several files into SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/241847#M268413</link>
    <description>You may want to consider using Call Execute and some macro parameters in your macro instead. This way you can create all the parameters in a data set and then use that data set to drive your macro. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 05 Jan 2016 16:04:05 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-01-05T16:04:05Z</dc:date>
    <item>
      <title>Importing several files into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/241827#M268410</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a folder containing several CSV files. I wish to write a small SAS program (based on macro) that reads all the files into SAS datasets. My input is a folder with CSV files, my output should be the same set of SAS datasets, stored in a library called, let's say c, or any other name (not in WORK as I want them permanent).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried something but stuck in the middle. First I read all the names of the files in the folder into a datset, which is the list of all file names. Then I create macro variables giving each file an index and another macro variable counting the total number of files. Now I need to write a small macro that will use proc import to import each file into SAS and store it in a dataset. I have a bit of trouble defining the different names (as it is fairly easy to run in a loop and just import a file).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code so far is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%let path=C:\My_SAS_PROJECTS;
filename folder "&amp;amp;path\Data.";
 
/* Making a list of all files in the folder */
data FilesInFolder;
   length Line 8 File $300;
   List = dopen('FilesInFolder');
   do Line = 1 to dnum(List);
        File = trim(dread(List,Line));
        output;
   end;
   drop list line;
run;
 
/* Creating local macro variables */
data _NULL_;
     set FilesInFolder end=final;
     call symput(compress('File'||_N_),trim(File));
     if final then call symput(trim('Total'),_N_);
run;
  
/* This macro should import all files specified in the list and save them as datasets */
%macro loop;
 
%do i = 1 %to &amp;amp;Total;
 
proc import datafile="&amp;amp;path\Data\&amp;amp;&amp;amp;File&amp;amp;i"
     out=&amp;amp;name&amp;amp;i.
     dbms=csv
     replace;
     getnames=no;
run;
.
.
.
. 
 
%end;
 %mend loop;
 
%loop
 &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you assist me completing the macro function ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 14:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/241827#M268410</guid>
      <dc:creator>BlueNose</dc:creator>
      <dc:date>2016-01-05T14:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Importing several files into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/241834#M268411</link>
      <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger﻿&lt;/a&gt; has written a great blog entry on this subject, how to loop over a list of values and run some SAS code, see&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/03/20/sas-program-by-processing/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2012/03/20/sas-program-by-processing/&lt;/A&gt; and &lt;A href="http://blogs.sas.com/content/sasdummy/2012/03/23/improving-on-a-sas-programming-pattern/" target="_blank"&gt;http://blogs.sas.com/content/sasdummy/2012/03/23/improving-on-a-sas-programming-pattern/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It has great explanation on how everything works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 14:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/241834#M268411</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-01-05T14:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Importing several files into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/241842#M268412</link>
      <description>&lt;P&gt;I've made a few modifications to your code. If the names of your CSV files are valid SAS dataset names, you can omit the VALIDMEMNAME option and the NLITERAL function. I have tested the code with the following "ugly" file names:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 20px;"&gt;3abc.csv&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 20px;"&gt;de$fg.txt.csv&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="line-height: 20px;"&gt;This is a very long file name with more than 32 characters.csv&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let path=C:\My_SAS_PROJECTS;
filename folder "&amp;amp;path\Data.";
libname c 'C:\Temp';         /* just an example destination folder */
options validmemname=extend; /* to allow non-standard dataset names */
 
/* Making a list of all files in the folder */
data FilesInFolder;
   length Line 8 File $300;
   List = dopen('folder');  /* corrected the function argument */
   do Line = 1 to dnum(List);
        File = trim(dread(List,Line));
        output;
   end;
   drop list line;
run;
 
/* Creating global macro variables */  /* not "local" */
data _NULL_;
     set FilesInFolder end=final;
     call symput(cats('File', _N_), trim(File));     /* used CATS instead of COMPRESS (...||...) */
     call symput(cats('Name', _N_), trim(nliteral(substr(File,1,min(32, length(File)-4))))); /* inserted */
     if final then call symputx(trim('Total'), _N_); /* replaced symput by symputx */
run;


/* This macro should import all files specified in the list and save them as datasets */
%macro loop;
%do i = 1 %to &amp;amp;Total;
  proc import datafile="&amp;amp;path\Data\&amp;amp;&amp;amp;File&amp;amp;i"
       out=c.&amp;amp;&amp;amp;name&amp;amp;i  /* adapted */
       dbms=csv
       replace;
       getnames=no;
  run;
%end;
%mend loop;
 
%loop
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If non-standard dataset names have been created, you can use them as in this example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=c.'de$fg.txt'n;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 15:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/241842#M268412</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-05T15:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing several files into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/241847#M268413</link>
      <description>You may want to consider using Call Execute and some macro parameters in your macro instead. This way you can create all the parameters in a data set and then use that data set to drive your macro. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jan 2016 16:04:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/241847#M268413</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-05T16:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Importing several files into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/241995#M268414</link>
      <description>&lt;P&gt;Thank you for your tips.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a few of questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Can you kindly explain the line you added with the nliteral command, what is it for ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. If I want that the first row in each file will be the variable names, should I change the getnames to yes ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. If I wanted to change this code, so instead of csv files, it will do the same with XLS files (Excel 97-2003), what needs to be modified ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much, big help.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 08:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/241995#M268414</guid>
      <dc:creator>BlueNose</dc:creator>
      <dc:date>2016-01-06T08:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Importing several files into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/242013#M268415</link>
      <description>&lt;P&gt;You're welcome. Here are the answers to your questions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I inserted that line in order to prepare names for the output datasets. This could be simplified if you were happy with dataset names such as DS1, DS2, etc. In this case one could write the original CSV file names into dataset labels in order to provide the link between the dataset and&amp;nbsp;the corresponding&amp;nbsp;raw data file.&lt;BR /&gt;&lt;BR /&gt; My suggestion aimed at taking the CSV file names as dataset names (i.e. abc.csv --&amp;gt; abc.sas7bdat), as far as possible, so that it is obvious which raw data file belongs to a given dataset. But there is the potential issue that some of the CSV file names do not comply with the rules for valid SAS dataset names. Problematic cases would include names which start with a digit, contain special characters other than the underscore or are longer than 32 characters.&lt;BR /&gt;&lt;BR /&gt; The expression &lt;FONT face="courier new,courier"&gt;substr(File,1,min(32, length(File)-4))&lt;/FONT&gt; results in the CSV file name without the ".CSV" suffix, truncated to 32 characters, if the original name was longer. The NLITERAL function converts this string to a so called SAS name literal. Examples: NLITERAL('abc')='abc' (i.e. valid SAS names are left unchanged), NLITERAL('ab$c')='"ab$c"N' (in general, the dollar sign is not allowed in a dataset name, but in the special syntax "..."N, it is acceptable).&amp;nbsp;If datasets with non-standard names are created, the option setting VALIDMEMNAME=extend is necessary to let SAS accept them. Honestly, I have never used such non-standard dataset names in practice and I would rather recommend to avoid them. So, in your situation I would actually look through the list of CSV file names and see how non-compliant names (if any) could be transformed into valid SAS names. For example, if blanks were the only special characters in the names, I would simply replace them with underscores in the dataset names.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Yes, if the first line in each CSV file contains the variable names, &lt;FONT face="courier new,courier"&gt;GETNAMES=yes&lt;/FONT&gt; would instruct SAS to name the variables correspondingly. SAS would automatically modify the names appropriately if they were not valid variable names (depending on the setting of system option VALIDVARNAME).&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;If you have licensed SAS/ACCESS Interface to PC File Formats, you can specify &lt;FONT face="courier new,courier"&gt;dbms=excel&lt;/FONT&gt; (or &lt;FONT face="courier new,courier"&gt;dbms=xls&lt;/FONT&gt;) in the PROC IMPORT step to import Excel 97-2003 files. In addition, there are SHEET= and RANGE= options to specify the spreadsheet (if there are more than one) and a range of cells (if only part of the spreadsheet is to be imported). Alternatively, you could use a LIBNAME statement of the form &lt;FONT face="courier new,courier"&gt;libname myxls excel path="&amp;amp;path\Data\test.xls"&lt;/FONT&gt; to access an Excel workbook as if it was a SAS library. For more details please see&lt;BR /&gt;the documentation: &lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/67382/PDF/default/acpcref.pdf" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/67382/PDF/default/acpcref.pdf&lt;/A&gt;&lt;BR /&gt;or some of the papers on this subject, e.g. &lt;A href="http://support.sas.com/resources/papers/proceedings10/144-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/144-2010.pdf&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have that SAS/ACCESS license (and I don't have Excel installed on my SAS workstation), so I can't test this. When I imported Excel sheets in the past (primarily with SAS 6 and SAS 8), I mostly used DDE (dynamic data exchange), which is an "old", partly outdated technology, but very flexible. For example, I was able to let SAS detect the text color used in an Excel sheet (which carried some information), but that was &lt;EM&gt;extremely&lt;/EM&gt; complicated.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 06 Jan 2016 12:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/242013#M268415</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-06T12:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing several files into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/242018#M268416</link>
      <description>Thank you, everything makes sense now.&lt;BR /&gt;Your "old" code sounds complicated indeed ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 06 Jan 2016 13:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/242018#M268416</guid>
      <dc:creator>BlueNose</dc:creator>
      <dc:date>2016-01-06T13:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Importing several files into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/242058#M268417</link>
      <description>&lt;P&gt;One of many cautions with using Proc Import and reading variable names from column headers: The discussion that &lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link" style="color: rgb(0, 125, 195);"&gt;&lt;SPAN class="login-bold"&gt;FreelanceReinha&lt;WBR /&gt;rd&lt;/SPAN&gt;&lt;/SPAN&gt; mentions for data set names also appies to variables with the added complication that if you have two or more column headings that start with the same text that proc import may truncate the first occurance and the next could get a very generic varaible name of VARxx where xx refers to the column number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;Column 10: This is a very long column header related to the annual values of Product X&lt;/P&gt;
&lt;P&gt;Column&amp;nbsp;11: This is a very long column header related to the annual values of Product Y&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With maximum variable name length of 32 characters these tow column headers "look the same" to the Proc Import processor.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 15:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/242058#M268417</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-01-06T15:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Importing several files into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/242168#M268418</link>
      <description>&lt;P&gt;Could you please tell me why we need two ampersand before file and name macro in following proc import?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  proc import datafile="&amp;amp;path\Data\&amp;amp;&amp;amp;File&amp;amp;i"
       out=c.&amp;amp;&amp;amp;name&amp;amp;i  /* adapted */
       dbms=csv
       replace;
       getnames=no;
  run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jan 2016 07:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/242168#M268418</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2016-01-07T07:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Importing several files into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/242170#M268419</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo﻿&lt;/a&gt;: The macro processor resolves expressions like &lt;FONT face="courier new,courier"&gt;&amp;amp;&amp;amp;name&amp;amp;i&lt;/FONT&gt; in two passes:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&amp;amp;&amp;amp;&lt;/FONT&gt; resolves to &lt;FONT face="courier new,courier"&gt;&amp;amp;&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;&amp;amp;i&lt;/FONT&gt; is resolved to the content of macro variable &lt;FONT face="courier new,courier"&gt;i&lt;/FONT&gt;, e.g., to 1 in the first iteration of the "&lt;FONT face="courier new,courier"&gt;%do i=1 %to ...&lt;/FONT&gt;" loop. Result (in the first iteration of the %DO loop): &lt;FONT face="courier new,courier"&gt;&amp;amp;name1&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;&amp;amp;name1&lt;/FONT&gt; is resolved to the content of macro variable &lt;FONT face="courier new,courier"&gt;name1&lt;FONT face="arial,helvetica,sans-serif"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;So, whenever you loop through a list of numbered macro variables with a %DO loop you will probably use this pattern.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;If the expression was written as &lt;FONT face="courier new,courier"&gt;&amp;amp;name&amp;amp;i&lt;/FONT&gt;, the macro processor would try to resolve &lt;FONT face="courier new,courier"&gt;&amp;amp;name&lt;/FONT&gt; to the content of a macro variable&amp;nbsp;&lt;FONT face="courier new,courier"&gt;name&lt;/FONT&gt;&amp;nbsp;in the first pass, but this is not what we want in the above situation. There is no macro variable &lt;FONT face="courier new,courier"&gt;name&lt;/FONT&gt;, hence we would get a warning "WARNING: Apparent symbolic reference NAME not resolved."&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 09:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/242170#M268419</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-07T09:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Importing several files into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/430762#M268420</link>
      <description>&lt;P&gt;Hi, I have been trying to use this loop, however, I get the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WARNING: Apparent symbolic reference TOTAL not resolved. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: &amp;amp;Total&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: The %TO value of the %DO I loop is invalid. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: The macro LOOP will stop executing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you kindly help with this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 03:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/430762#M268420</guid>
      <dc:creator>abubakrayesh</dc:creator>
      <dc:date>2018-01-25T03:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Importing several files into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/430826#M268421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188982"&gt;@abubakrayesh&lt;/a&gt;,&amp;nbsp;welcome to SAS Support Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your problem must be slightly different, because otherwise the identical solution should work, right? So, please open a new thread (there is a button "Post a question" on the &lt;A href="https://communities.sas.com/" target="_blank"&gt;homepage&lt;/A&gt;) rather than posting into an old one. That way many more people will see your question. When you do so, please describe (ideally by posting your SAS code) how you set macro variable TOTAL. Your log messages indicate that TOTAL simply hasn't been defined before it is referred to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can provide a link to the old thread (e.g. &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Importing-several-files-into-SAS/m-p/241842#M34962" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/Importing-several-files-into-SAS/m-p/241842#M34962&lt;/A&gt;) if necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck! I'm sure your problem will be solved soon.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 09:20:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-several-files-into-SAS/m-p/430826#M268421</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-01-25T09:20:25Z</dc:date>
    </item>
  </channel>
</rss>

