<?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: Import files to saswith the possibility of selecting them  before the import in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448635#M29023</link>
    <description>Hi Tom,&lt;BR /&gt;I'm not sure I understood the question ..&lt;BR /&gt;&lt;BR /&gt;Suryakiran, i have another question:&lt;BR /&gt;what should be done to this code if you want to create a macro that can read data from five different folders in a different computers in a loop</description>
    <pubDate>Mon, 26 Mar 2018 13:58:30 GMT</pubDate>
    <dc:creator>Uzi</dc:creator>
    <dc:date>2018-03-26T13:58:30Z</dc:date>
    <item>
      <title>Import files to saswith the possibility of selecting them  before the import</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/447762#M28962</link>
      <description>Dear experts,&lt;BR /&gt;&lt;BR /&gt;First of all, I'm not a great expert on the program. I am an actuary who tries to improve processes through Sas.&lt;BR /&gt;explanation:&lt;BR /&gt;I am working with another program called Moses and for shortening running times I split the run into several computers .&lt;BR /&gt;The result is multiple .csv files in the local&amp;nbsp; of multiple computers.&lt;BR /&gt;I have to group them back into one file (apend) and then continue to work with a unified&amp;nbsp; aggregat file.&lt;BR /&gt;I can determine the names according to my convenience under the constraint of Quarter and Year.&lt;BR /&gt;&lt;BR /&gt;The problem:&lt;BR /&gt;There are several runs in each of the folders and I have to choose each time a specific run.&lt;BR /&gt;This means that each time I have to see the file names before importing and then choose who to import and group according to the conditions I set.&lt;BR /&gt;Before that I used Excel to consolidate the files and I could use a "flag"\"pointer" for the run I wanted to consolidate.&lt;BR /&gt;Hope I've been able to explain myself properly.&lt;BR /&gt;Thank you in advance for your help!&lt;BR /&gt;&lt;BR /&gt;That's what I've collected so far from the forum but I get an error while creating files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%let path1=\\ayl-celerra-new\work\li\Moses\2017\Output\Check\;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data filelist;&lt;BR /&gt;&lt;BR /&gt;keep i dnum filename;&lt;BR /&gt;&lt;BR /&gt;length fref $8 filename $300;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rc = filename(fref,"&amp;amp;path1");&lt;BR /&gt;&lt;BR /&gt;if rc = 0 then&lt;BR /&gt;&lt;BR /&gt;do;&lt;BR /&gt;&lt;BR /&gt;did = dopen(fref);&lt;BR /&gt;&lt;BR /&gt;rc = filename(fref);&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;else&lt;BR /&gt;&lt;BR /&gt;do;&lt;BR /&gt;&lt;BR /&gt;length msg $200.;&lt;BR /&gt;&lt;BR /&gt;msg = sysmsg();&lt;BR /&gt;&lt;BR /&gt;put msg=;&lt;BR /&gt;&lt;BR /&gt;did = .;&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;if did &amp;lt;= 0&lt;BR /&gt;&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;putlog 'ERR' 'OR: Unable to open directory.';&lt;BR /&gt;&lt;BR /&gt;dnum = dnum(did);&lt;BR /&gt;&lt;BR /&gt;do i = 1 to dnum;&lt;BR /&gt;&lt;BR /&gt;filename = dread(did, i);&lt;BR /&gt;&lt;BR /&gt;/* If this entry is a file, then output. */&lt;BR /&gt;&lt;BR /&gt;fid = mopen(did, filename);&lt;BR /&gt;&lt;BR /&gt;if fid &amp;gt; 0&lt;BR /&gt;&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;rc = dclose(did);&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;data one;&lt;BR /&gt;&lt;BR /&gt;set filelist;&lt;BR /&gt;&lt;BR /&gt;infile dummy filevar=fil2read end=done;&lt;BR /&gt;&lt;BR /&gt;do while(not done);&lt;BR /&gt;&lt;BR /&gt;input a b c;&lt;BR /&gt;&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and I get this ERROR:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;60 data one;&lt;BR /&gt;&lt;BR /&gt;61 set filelist;&lt;BR /&gt;&lt;BR /&gt;62 infile dummy filevar=fil2read end=done;&lt;BR /&gt;&lt;BR /&gt;63 do while(not done);&lt;BR /&gt;&lt;BR /&gt;64 input a b c;&lt;BR /&gt;&lt;BR /&gt;65 output;&lt;BR /&gt;&lt;BR /&gt;66 end;&lt;BR /&gt;&lt;BR /&gt;67 run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ERROR: Invalid physical name.&lt;BR /&gt;&lt;BR /&gt;filename=EV0_IF2016Q4_16f_BE16.csv dnum=3 i=1 fil2read= done=0 a=. b=. c=. _ERROR_=1 _N_=1&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;&lt;BR /&gt;NOTE: There were 1 observations read from the data set WORK.FILELIST.&lt;BR /&gt;&lt;BR /&gt;WARNING: The data set WORK.ONE may be incomplete. When this step was stopped there were 0 observations and 6 variables.&lt;BR /&gt;&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;user cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;system cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;memory 1053.46k&lt;BR /&gt;&lt;BR /&gt;OS Memory 23132.00k&lt;BR /&gt;&lt;BR /&gt;Timestamp 03/22/2018 02:31:40 PM&lt;BR /&gt;&lt;BR /&gt;Step Count 3 Switch Count 57&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2018 13:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/447762#M28962</guid>
      <dc:creator>Uzi</dc:creator>
      <dc:date>2018-03-22T13:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Import files to saswith the possibility of selecting them  before the import</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/447765#M28963</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200385"&gt;@Uzi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The log clearly says that "&lt;SPAN&gt;\\ayl-celerra-new\work\li\Moses\2017\Output\Check\" this path is not known to SAS. Looks like this is a network drive and not the path in Server where SAS is installed. Make sure your files are in a location where SAS can access them.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 13:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/447765#M28963</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-22T13:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Import files to saswith the possibility of selecting them  before the import</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/447767#M28964</link>
      <description>Thanks for the quick response. I can see the list of files which means that the first part works but I can not import them.</description>
      <pubDate>Thu, 22 Mar 2018 13:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/447767#M28964</guid>
      <dc:creator>Uzi</dc:creator>
      <dc:date>2018-03-22T13:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Import files to saswith the possibility of selecting them  before the import</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/447780#M28968</link>
      <description>&lt;P&gt;Check if this helps for you. Change the import for the files you have (In my case xlsx files)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Path=&amp;lt;Your path here&amp;gt;;
/* Read all the files that are in a specific folder */
FILENAME _folder_ "%bquote(&amp;amp;path.)";
data filenames(keep=memname);
FORMAT memname $100.;
  handle=dopen( '_folder_' );
  if handle &amp;gt; 0 then do;
    count=dnum(handle);
    do i=1 to count;
      memname=dread(handle,i);
      output filenames;
    end;
  end;
  rc=dclose(handle);
run;
filename _folder_ clear;

/* Count total files in the location and add all the file names into a macro */
PROC SQL noprint;
SELECT COUNT(*),memname INTO: Total_Files, : All_Files separated by "," FROM filenames;
QUIT;

%PUT "Total Files:" &amp;amp;Total_Files "All Files:" &amp;amp;All_Files;


/* Close files if they are opened before importing into SAS. If they are not closed then you may get an error */
/* If you get error then try re-running it aganin */

%MACRO CLOSE_FIELS();
%DO I=1 %TO &amp;amp;Total_Files ;
%LET File=%SCAN("&amp;amp;All_Files",&amp;amp;i,",");
%let filrf=myfile;
%let rc=%sysfunc(filename(filrf,&amp;amp;path./&amp;amp;FILE.));
%let fid=%sysfunc(fopen(&amp;amp;filrf));
%if &amp;amp;fid &amp;gt; 0 %then
   %do;
      %let rc=%sysfunc(fread(&amp;amp;fid));
      %let rc=%sysfunc(fclose(&amp;amp;fid));
   %end;
%else
   %do;
      %put %sysfunc(sysmsg());
%end;
%let rc=%sysfunc(filename(filrf));
%END;
%MEND;
%CLOSE_FIELS;

/* Macro to import all the files from  path to SAS  */
/* If you get an error then re-run this code again. If the excel file is opened then you may get an error */

%MACRO IMPORT_FILES();
%DO I=1 %TO &amp;amp;Total_Files ;
%LET File=%SCAN("&amp;amp;All_Files",&amp;amp;i,",");
proc import 
  datafile="&amp;amp;path./&amp;amp;File."
  dbms=xlsx 
  out=GRIDWORK.TASK&amp;amp;i. 
  replace;
RUN;
%END;
%MEND IMPORT_FILES;
%IMPORT_FILES();

/* Append imported data into a single dataset */ 
%MACRO APPEND();
%DO I=2 %TO &amp;amp;Total_Files;
PROC APPEND BASE=GRIDWORK.Task1 DATA=GRIDWORK.Task&amp;amp;i. FORCE;
RUN;
%END;
%MEND APPEND;
%APPEND();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Mar 2018 14:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/447780#M28968</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-22T14:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Import files to saswith the possibility of selecting them  before the import</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448096#M28982</link>
      <description>Thank you very much for your help.&lt;BR /&gt;When I run the code I receive an error message when the files are imported.&lt;BR /&gt;The list of files i can see-the program has been able to&lt;BR /&gt;fetch.&lt;BR /&gt;77 /* Macro to import all the files from path to SAS */&lt;BR /&gt;&lt;BR /&gt;78 /* If you get an error then re-run this code again. If the excel file is opened then you may get an error */&lt;BR /&gt;&lt;BR /&gt;79&lt;BR /&gt;&lt;BR /&gt;80 %MACRO IMPORT_FILES();&lt;BR /&gt;&lt;BR /&gt;81 %DO I=1 %TO &amp;amp;Total_Files ;&lt;BR /&gt;&lt;BR /&gt;82 %LET File=%SCAN("&amp;amp;All_Files",&amp;amp;i,",");&lt;BR /&gt;&lt;BR /&gt;83 proc import&lt;BR /&gt;&lt;BR /&gt;84 datafile="&amp;amp;path./&amp;amp;File."&lt;BR /&gt;&lt;BR /&gt;85 dbms=csv&lt;BR /&gt;&lt;BR /&gt;86 out=GRIDWORK.TASK&amp;amp;i.&lt;BR /&gt;&lt;BR /&gt;3 The SAS System 14:01 Friday, March 23, 2018&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;87 replace;&lt;BR /&gt;&lt;BR /&gt;88 RUN;&lt;BR /&gt;&lt;BR /&gt;89 %END;&lt;BR /&gt;&lt;BR /&gt;90 %MEND IMPORT_FILES;&lt;BR /&gt;&lt;BR /&gt;91 %IMPORT_FILES();&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ERROR: Library name is not assigned.&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;memory 146.75k&lt;BR /&gt;&lt;BR /&gt;OS Memory 24156.00k&lt;BR /&gt;&lt;BR /&gt;Timestamp 03/23/2018 02:01:29 PM&lt;BR /&gt;&lt;BR /&gt;Step Count 18 Switch Count 20&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ERROR: Library name is not assigned.&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;user cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;system cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;memory 146.75k&lt;BR /&gt;&lt;BR /&gt;OS Memory 24156.00k&lt;BR /&gt;&lt;BR /&gt;Timestamp 03/23/2018 02:01:29 PM&lt;BR /&gt;&lt;BR /&gt;Step Count 19 Switch Count 20&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Mar 2018 11:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448096#M28982</guid>
      <dc:creator>Uzi</dc:creator>
      <dc:date>2018-03-23T11:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Import files to saswith the possibility of selecting them  before the import</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448128#M28986</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200385"&gt;@Uzi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have "GRIDWORK" library in my code as my temporary work library. You may need to change that to "WORK". The log says "GRIDWORK" library is not assigned.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 12:53:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448128#M28986</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-23T12:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Import files to saswith the possibility of selecting them  before the import</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448149#M28988</link>
      <description>You're right!&lt;BR /&gt;Thank you very much.&lt;BR /&gt;You really helped me and I really appreciate it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 23 Mar 2018 13:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448149#M28988</guid>
      <dc:creator>Uzi</dc:creator>
      <dc:date>2018-03-23T13:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Import files to saswith the possibility of selecting them  before the import</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448150#M28989</link>
      <description>&lt;P&gt;Make sure to use the {i} or Running man ICON to paste your log and/or code.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 91px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19410i76D533033EDA2E64/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is the problem that you searched for files in a directory and then tried to open the file without prefixing the directory name?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 13:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448150#M28989</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-03-23T13:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Import files to saswith the possibility of selecting them  before the import</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448635#M29023</link>
      <description>Hi Tom,&lt;BR /&gt;I'm not sure I understood the question ..&lt;BR /&gt;&lt;BR /&gt;Suryakiran, i have another question:&lt;BR /&gt;what should be done to this code if you want to create a macro that can read data from five different folders in a different computers in a loop</description>
      <pubDate>Mon, 26 Mar 2018 13:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448635#M29023</guid>
      <dc:creator>Uzi</dc:creator>
      <dc:date>2018-03-26T13:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Import files to saswith the possibility of selecting them  before the import</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448655#M29030</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200385"&gt;@Uzi&lt;/a&gt; wrote:&lt;BR /&gt;Hi Tom,&lt;BR /&gt;I'm not sure I understood the question ..&lt;BR /&gt;&lt;BR /&gt;Suryakiran, i have another question:&lt;BR /&gt;what should be done to this code if you want to create a macro that can read data from five different folders in a different computers in a loop&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your error message is listing a filename that is not a fully qualified filename. It does not tell SAS what directory to look in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename=EV0_IF2016Q4_16f_BE16.csv&lt;/PRE&gt;
&lt;P&gt;If you are on Windows then the filename should look something like C:\somedir1\anotherdir2\EV0_IF2016Q4_16f_BE16.csv.&amp;nbsp; If your SAS session is running on Unix then it should look like /somedir1/anotherdir2/EV0_IF2016Q4_16f_BE16.csv.&amp;nbsp; Also on Unix the filenames are case sensitive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 14:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/448655#M29030</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-03-26T14:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Import files to saswith the possibility of selecting them  before the import</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/456299#M29405</link>
      <description>Hey Experts,&lt;BR /&gt;after a few attempts I realized I had a problem.My data is changing. For example, a policy number can appear once a number and once a number and a letter.&lt;BR /&gt;The proc import step checks for the first few lines(20) and then determines the format of the field. In my case, the program encountered only a number and therefore determined numerical while it could also be a charcter.&lt;BR /&gt;Is it possible to update SuryKirn's program so it will know determine the format of the fields correctly?&lt;BR /&gt;A reminder:&lt;BR /&gt;I need to select only a few files (a specific files) from the folder (not all the files in the folder) and apend them in to one file.&lt;BR /&gt;Thanks in advance for the help and forgiveness for my ignorance in sas.</description>
      <pubDate>Sun, 22 Apr 2018 14:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/456299#M29405</guid>
      <dc:creator>Uzi</dc:creator>
      <dc:date>2018-04-22T14:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Import files to saswith the possibility of selecting them  before the import</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/456302#M29406</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/200385"&gt;@Uzi&lt;/a&gt; wrote:&lt;BR /&gt;Hey Experts,&lt;BR /&gt;after a few attempts I realized I had a problem.My data is changing. For example, a policy number can appear once a number and once a number and a letter.&lt;BR /&gt;The proc import step checks for the first few lines(20) and then determines the format of the field. In my case, the program encountered only a number and therefore determined numerical while it could also be a charcter.&lt;BR /&gt;Is it possible to update SuryKirn's program so it will know determine the format of the fields correctly?&lt;BR /&gt;A reminder:&lt;BR /&gt;I need to select only a few files (a specific files) from the folder (not all the files in the folder) and apend them in to one file.&lt;BR /&gt;Thanks in advance for the help and forgiveness for my ignorance in sas.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For CSV files you can change the GUESSINGROWS option, but that won't solve the problem if the particular subset of data in that CSV file happens to only have ID codes that look like numbers.&amp;nbsp;If you don't want SAS to guess at how to define your variables then do not use PROC IMPORT to read your files.&amp;nbsp;&amp;nbsp;Instead write you own data step to read the files and you will have complete control over how the variables are defined.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 15:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Import-files-to-saswith-the-possibility-of-selecting-them-before/m-p/456302#M29406</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-04-22T15:39:36Z</dc:date>
    </item>
  </channel>
</rss>

