<?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 import multiple text file into SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-text-file-into-SAS/m-p/692048#M24875</link>
    <description>&lt;P&gt;Start with normal sas-code without any macros and macro-variables.&lt;/P&gt;
&lt;P&gt;Your problem is an evergreen, so you will find some useful hints using the search-box.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2020 05:38:05 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-10-16T05:38:05Z</dc:date>
    <item>
      <title>How to import multiple text file into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-text-file-into-SAS/m-p/691977#M24873</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to import multiple text file in R and have try to follow what was advise in a similar post but it's not working for me, I do not know what I am doing wrong. Below the link 's post&amp;nbsp; I am referring to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Importing-multiple-delimited-txt-files-and-saving-as-unique-data/td-p/503613" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Importing-multiple-delimited-txt-files-and-saving-as-unique-data/td-p/503613&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the path of my files&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Blandine_0-1602801362609.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50699i70B19CAB909AC702/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Blandine_0-1602801362609.png" alt="Blandine_0-1602801362609.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Importing multiple text files */&lt;BR /&gt;%let path=C:\Users\bmrg2\Box Sync\Mizzou 2019\Research\RBI Project\Task 8_Back-casting\NBI Data from Fhwa site\ID_All years;&lt;/P&gt;&lt;P&gt;%MACRO IMPORT_TXT(FILENAME=ID,OUTFILENAME=ID);&lt;BR /&gt;proc import datafile="C:\Users\bmrg2\Box Sync\Mizzou 2019\Research\RBI Project\Task 8_Back-casting\NBI Data from Fhwa site\ID_All years\ID..txt" dbms=dlm out=IDAHO.&amp;amp;ID replace;&lt;BR /&gt;delimiter='';&lt;BR /&gt;run;&lt;BR /&gt;%MEND;&lt;/P&gt;&lt;P&gt;/* Calling Macro to import First file */&lt;BR /&gt;%IMPORT_TXT(FILENAME=ID00,OUTFILENAME=ID00);&lt;/P&gt;&lt;P&gt;/* Calling Macro to import second file */&lt;BR /&gt;%IMPORT_TXT(FILENAME=ID01,OUTFILENAME=ID01);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the log error&lt;/P&gt;&lt;P&gt;168 %let path=C:\Users\bmrg2\Box Sync\Mizzou 2019\Research\RBI Project\Task 8_Back-casting\NBI&lt;BR /&gt;168! Data from Fhwa site\ID_All years;&lt;BR /&gt;169&lt;BR /&gt;170 %MACRO IMPORT_TXT(FILENAME=ID,OUTFILENAME=ID);&lt;BR /&gt;171 proc import datafile="C:\Users\bmrg2\Box Sync\Mizzou 2019\Research\RBI Project\Task&lt;BR /&gt;171! 8_Back-casting\NBI Data from Fhwa site\ID_All years\ID..txt" dbms=dlm out=IDAHO.&amp;amp;ID replace;&lt;BR /&gt;172 delimiter='';&lt;BR /&gt;173 run;&lt;BR /&gt;174 %MEND;&lt;BR /&gt;175&lt;BR /&gt;176 /* Calling Macro to import First file */&lt;BR /&gt;177 %IMPORT_TXT(FILENAME=ID00,OUTFILENAME=ID00);&lt;BR /&gt;WARNING: Apparent symbolic reference ID not resolved.&lt;BR /&gt;ERROR: "IDAHO." is not a valid name.&lt;BR /&gt;NOTE 137-205: Line generated by the invoked macro "IMPORT_TXT".&lt;BR /&gt;1 proc import datafile="C:\Users\bmrg2\Box Sync\Mizzou 2019\Research\RBI Project\Task&lt;BR /&gt;1 ! 8_Back-casting\NBI Data from Fhwa site\ID_All years\ID..txt" dbms=dlm out=IDAHO.&amp;amp;ID replace;&lt;BR /&gt;-&lt;BR /&gt;22&lt;BR /&gt;1 ! delimiter=''; run;&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (, DATAFILE, DATATABLE, DBMS,&lt;BR /&gt;DEBUG, FILE, OUT, REPLACE, TABLE, _DEBUG_.&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the invoked macro "IMPORT_TXT".&lt;BR /&gt;1 proc import datafile="C:\Users\bmrg2\Box Sync\Mizzou 2019\Research\RBI Project\Task&lt;BR /&gt;1 ! 8_Back-casting\NBI Data from Fhwa site\ID_All years\ID..txt" dbms=dlm out=IDAHO.&amp;amp;ID replace;&lt;BR /&gt;-&lt;BR /&gt;200&lt;BR /&gt;1 ! delimiter=''; run;&lt;BR /&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference ID not resolved.&lt;BR /&gt;ERROR: Invalid data set name IDAHO..&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;178&lt;BR /&gt;179 /* Calling Macro to import second file */&lt;BR /&gt;180 %IMPORT_TXT(FILENAME=ID01,OUTFILENAME=ID01);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;WARNING: Apparent symbolic reference ID not resolved.&lt;BR /&gt;ERROR: "IDAHO." is not a valid name.&lt;BR /&gt;NOTE 137-205: Line generated by the invoked macro "IMPORT_TXT".&lt;BR /&gt;1 proc import datafile="C:\Users\bmrg2\Box Sync\Mizzou 2019\Research\RBI Project\Task&lt;BR /&gt;1 ! 8_Back-casting\NBI Data from Fhwa site\ID_All years\ID..txt" dbms=dlm out=IDAHO.&amp;amp;ID replace;&lt;BR /&gt;-&lt;BR /&gt;22&lt;BR /&gt;1 ! delimiter=''; run;&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (, DATAFILE, DATATABLE, DBMS,&lt;BR /&gt;DEBUG, FILE, OUT, REPLACE, TABLE, _DEBUG_.&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the invoked macro "IMPORT_TXT".&lt;BR /&gt;1 proc import datafile="C:\Users\bmrg2\Box Sync\Mizzou 2019\Research\RBI Project\Task&lt;BR /&gt;1 ! 8_Back-casting\NBI Data from Fhwa site\ID_All years\ID..txt" dbms=dlm out=IDAHO.&amp;amp;ID replace;&lt;BR /&gt;-&lt;BR /&gt;200&lt;BR /&gt;1 ! delimiter=''; run;&lt;BR /&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference ID not resolved.&lt;BR /&gt;ERROR: Invalid data set name IDAHO..&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&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;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 22:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-text-file-into-SAS/m-p/691977#M24873</guid>
      <dc:creator>Blandine</dc:creator>
      <dc:date>2020-10-15T22:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple text file into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-text-file-into-SAS/m-p/691983#M24874</link>
      <description>&lt;P&gt;It looks like you are confusing the macro parameter name with its default name.&lt;/P&gt;
&lt;P&gt;I think you want something like this, although this is difficult to test outside of your environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%MACRO IMPORT_TXT(FILENAME=ID,OUTFILENAME=ID);
proc import datafile="C:\Users\bmrg2\Box Sync\Mizzou 2019\Research\RBI Project\Task 8_Back-casting\NBI Data from Fhwa site\ID_All years\&amp;amp;FILENAME..txt" dbms=dlm out=&amp;amp;OUTFILENAME replace;
delimiter='';
run;
%MEND;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Oct 2020 22:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-text-file-into-SAS/m-p/691983#M24874</guid>
      <dc:creator>CurtisMackWSIPP</dc:creator>
      <dc:date>2020-10-15T22:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to import multiple text file into SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-text-file-into-SAS/m-p/692048#M24875</link>
      <description>&lt;P&gt;Start with normal sas-code without any macros and macro-variables.&lt;/P&gt;
&lt;P&gt;Your problem is an evergreen, so you will find some useful hints using the search-box.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 05:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-import-multiple-text-file-into-SAS/m-p/692048#M24875</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-10-16T05:38:05Z</dc:date>
    </item>
  </channel>
</rss>

