<?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 Import 'DATES' as string in TXT file in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/866899#M42837</link>
    <description>&lt;P&gt;I am looking to import a text file containing ID and date1, a "," delimiter file.&amp;nbsp; I want to import the date1 as a string that I can modify it later. This is because an id (10008) has two values for the date1 variable with '&amp;amp;'. I want to have both dates in the variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also have the freedom to modify the txt file. Is there any other way I can modify the txt file so that the import is easy ( if there are two dates available, then date1 should show both dates)? Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Textfile looks like this&lt;/P&gt;
&lt;P&gt;ID,date1&lt;BR /&gt;10001,2023-03-08&lt;BR /&gt;10001,2023-03-13&lt;BR /&gt;10001,2023-03-06&lt;BR /&gt;10001,2023-03-06&lt;BR /&gt;10001,2023-03-06 &lt;BR /&gt;10001,2023-03-06&lt;BR /&gt;10008,2023-03-10 &amp;amp; 2023-03-14&lt;BR /&gt;10001,2023-03-13&lt;BR /&gt;10001,2023-03-15&lt;BR /&gt;10001,2023-02-06&lt;BR /&gt;10001,2023-03-08&lt;BR /&gt;10001,2023-03-08&lt;BR /&gt;100012,2023-03-06&lt;BR /&gt;100012,2023-02-28&lt;BR /&gt;100012,2023-02-23&lt;/P&gt;
&lt;P&gt;This is how I want in data&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1680052561378.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82134i04F2022301B4F0C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1680052561378.png" alt="SASuserlot_0-1680052561378.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Regular Proc import won't work&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC IMPORT OUT= WORK._CUTOFF &lt;BR /&gt;DATAFILE= "Desktop\chk.txt" &lt;BR /&gt;DBMS=dlm REPLACE;&lt;BR /&gt;DELIMITER =',';&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;DATAROW=2; &lt;BR /&gt;RUN;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 01:17:07 GMT</pubDate>
    <dc:creator>SASuserlot</dc:creator>
    <dc:date>2023-03-29T01:17:07Z</dc:date>
    <item>
      <title>Import 'DATES' as string in TXT file</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/866899#M42837</link>
      <description>&lt;P&gt;I am looking to import a text file containing ID and date1, a "," delimiter file.&amp;nbsp; I want to import the date1 as a string that I can modify it later. This is because an id (10008) has two values for the date1 variable with '&amp;amp;'. I want to have both dates in the variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also have the freedom to modify the txt file. Is there any other way I can modify the txt file so that the import is easy ( if there are two dates available, then date1 should show both dates)? Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Textfile looks like this&lt;/P&gt;
&lt;P&gt;ID,date1&lt;BR /&gt;10001,2023-03-08&lt;BR /&gt;10001,2023-03-13&lt;BR /&gt;10001,2023-03-06&lt;BR /&gt;10001,2023-03-06&lt;BR /&gt;10001,2023-03-06 &lt;BR /&gt;10001,2023-03-06&lt;BR /&gt;10008,2023-03-10 &amp;amp; 2023-03-14&lt;BR /&gt;10001,2023-03-13&lt;BR /&gt;10001,2023-03-15&lt;BR /&gt;10001,2023-02-06&lt;BR /&gt;10001,2023-03-08&lt;BR /&gt;10001,2023-03-08&lt;BR /&gt;100012,2023-03-06&lt;BR /&gt;100012,2023-02-28&lt;BR /&gt;100012,2023-02-23&lt;/P&gt;
&lt;P&gt;This is how I want in data&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1680052561378.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82134i04F2022301B4F0C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1680052561378.png" alt="SASuserlot_0-1680052561378.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Regular Proc import won't work&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC IMPORT OUT= WORK._CUTOFF &lt;BR /&gt;DATAFILE= "Desktop\chk.txt" &lt;BR /&gt;DBMS=dlm REPLACE;&lt;BR /&gt;DELIMITER =',';&lt;BR /&gt;GETNAMES=YES;&lt;BR /&gt;DATAROW=2; &lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 01:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/866899#M42837</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2023-03-29T01:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Import 'DATES' as string in TXT file</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/866901#M42838</link>
      <description>&lt;P&gt;I will place a wager of a short stack of quarters that your example data with the two dates in the file is actually more than 20 rows from the top.&lt;/P&gt;
&lt;P&gt;I copied your example data, pasted it into a text file on my computer and ran this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC IMPORT OUT= WORK._CUTOFF
DATAFILE= "&amp;amp;outpath.\example.txt"
DBMS=dlm REPLACE;
DELIMITER =',';
GETNAMES=YES;
DATAROW=2;
RUN;

proc print data=work._cutoff;
run;&lt;/PRE&gt;
&lt;P&gt;The generated data step code in my log shows:&lt;/P&gt;
&lt;PRE&gt;419  PROC IMPORT OUT= WORK._CUTOFF
420  DATAFILE= "&amp;amp;outpath.\example.txt"
421  DBMS=dlm REPLACE;
422  DELIMITER =',';
423  GETNAMES=YES;
424  DATAROW=2;
425  RUN;

426   /**********************************************************************
427   *   PRODUCT:   SAS
428   *   VERSION:   9.4
429   *   CREATOR:   External File Interface
430   *   DATE:      25MAR23
431   *   DESC:      Generated SAS Datastep Code
432   *   TEMPLATE SOURCE:  (None Specified.)
433   ***********************************************************************/
434      data WORK._CUTOFF    ;
435      %let _EFIERR_ = 0; /* set the ERROR detection macro variable */
436      infile 'D:\Users\Owner\Documents\\example.txt' delimiter = ',' MISSOVER DSD lrecl=32767
436! firstobs=2 ;
437         informat ID best32. ;
438         informat date1 $23. ;
439         format ID best12. ;
440         format date1 $23. ;
441      input
442                  ID
443                  date1 $
444      ;
445      if _ERROR_ then call symputx('_EFIERR_',1);  /* set ERROR detection macro variable */
446      run;

NOTE: The infile 'D:\Users\Owner\Documents\\example.txt' is:
      Filename=D:\Users\Owner\Documents\\example.txt,
      RECFM=V,LRECL=32767,File Size (bytes)=294,
      Last Modified=28Mar2023:19:29:31,
      Create Time=28Mar2023:19:29:04

NOTE: 15 records were read from the infile 'D:\Users\Owner\Documents\\example.txt'.
      The minimum record length was 16.
      The maximum record length was 29.
NOTE: The data set WORK._CUTOFF has 15 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


15 rows created in WORK._CUTOFF from D:\Users\Owner\Documents\\example.txt.


&lt;/PRE&gt;
&lt;P&gt;Which shows that the data was read as 23 character value.&lt;/P&gt;
&lt;P&gt;HOWEVER, if I copy lines with single date and paste them until that row with two dates is below line 25 my log looks like&lt;/P&gt;
&lt;PRE&gt;467      data WORK._CUTOFF2    ;
468      %let _EFIERR_ = 0; /* set the ERROR detection macro variable */
469      infile 'D:\Users\Owner\Documents\\example2.txt' delimiter = ',' MISSOVER DSD lrecl=32767
469! firstobs=2 ;
470         informat ID best32. ;
471         informat date1 yymmdd10. ;
472         format ID best12. ;
473         format date1 yymmdd10. ;
474      input
475                  ID
476                  date1
477      ;
478      if _ERROR_ then call symputx('_EFIERR_',1);  /* set ERROR detection macro variable */
479      run;

NOTE: The infile 'D:\Users\Owner\Documents\\example2.txt' is:
      Filename=D:\Users\Owner\Documents\\example2.txt,
      RECFM=V,LRECL=32767,File Size (bytes)=735,
      Last Modified=28Mar2023:19:35:26,
&lt;/PRE&gt;
&lt;P&gt;duplicating your claim.&lt;/P&gt;
&lt;P&gt;From the online documentation for Proc Import in the&amp;nbsp; Overview section:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV class="xis-procOverview"&gt;
&lt;DIV id="n06ej2v6juhnlun11vml3inb6sju" class="xis-topicContent"&gt;
&lt;DIV id="p1wx777amceeeqn1whsk10rf68lr" class="xis-paragraph"&gt;When you run the &lt;FONT style="background-color: #fcdec0;"&gt;IMPORT&lt;/FONT&gt; procedure, it reads the input file and writes the data to the specified SAS data set. By default, &lt;FONT style="background-color: #fcdec0;"&gt;IMPORT&lt;/FONT&gt; procedure expects the variable names to appear in the first row. The &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;procedure scans the first 20&lt;/STRONG&gt; &lt;/FONT&gt;rows to count the variables, and it attempts to determine the correct informat and format for each variable.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;(emphasis added).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the Proc Import statement Guessingrows=MAX; to force the procedure to look at more data before guessing.&lt;/P&gt;
&lt;P&gt;Or for simple files like this write your own data step code OR even copy the code generated by proc import, paste into the editor, clean it up and set the properties of the variables you want such a changing the Informat to a longer value and character such as was generated in my first run.&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 01:43:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/866901#M42838</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-29T01:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Import 'DATES' as string in TXT file</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/866923#M42839</link>
      <description>&lt;P&gt;This is a nice showcase to illustrate that&amp;nbsp;&lt;STRONG&gt;one does not use PROC IMPORT for text files&lt;/STRONG&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cutoff;
infile "Desktop\chk.txt" dlm=',' dsd truncover firstobs=2;
input id $ _date1 :$100.;
format date1 yymmdd10.;
do i = 1 to countw(_date1,'&amp;amp;');
  date1 = input(strip(scan(_date1,i,'&amp;amp;')),yymmdd10.);
  output;
end;
drop _date1 i;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you have nice SAS date values and can deal with the duplicate entry in an orderly manner.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 07:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/866923#M42839</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-29T07:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Import 'DATES' as string in TXT file</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867007#M42846</link>
      <description>&lt;P&gt;&amp;nbsp;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;. This will help me in the future when I get the scenario. I am never aware of this method. Thanks again. However,&amp;nbsp; My interest, in this case, was I want is read both dates as strings (like in image), which I have to merge with another dataset to make a visual comparison. Is it possible can we to achieve this in another way?&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp; is kind enough to help me to use the 'GUESSINGROWS' option in import.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1680099578893.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82158i0C088EE976642CCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1680099578893.png" alt="SASuserlot_0-1680099578893.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 14:19:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867007#M42846</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2023-03-29T14:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Import 'DATES' as string in TXT file</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867024#M42847</link>
      <description>&lt;P&gt;If you do not want SAS date values (which I&amp;nbsp;&lt;STRONG&gt;STRONGLY&lt;/STRONG&gt; recommend against), simply remove the FORMAT statement, the whole DO loop, and the DROP.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 14:36:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867024#M42847</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-29T14:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Import 'DATES' as string in TXT file</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867033#M42848</link>
      <description>&lt;P&gt;Thank you. 'GUESSINGROWS' option worked for my purpose for now. But I have another question when I try to and another date for 10008 (ID) separated by '&amp;amp;' . Then it only ready one date in the string. Why? is there any way it reads complete string?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Two dates as a string&amp;nbsp; in date1 variable&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1680100615795.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82168iCD476B3D1A2282D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1680100615795.png" alt="SASuserlot_0-1680100615795.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Proc import&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT OUT= WORK.SDTM_CUTOFF 
            DATAFILE= "xx\chk.txt" 
            DBMS=dlm REPLACE;
			DELIMITER =',';
     GETNAMES=YES;
     DATAROW=2; 
	 GUESSINGROWS = MAX;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_1-1680100680939.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82169i3CC44F0348E15299/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_1-1680100680939.png" alt="SASuserlot_1-1680100680939.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;text file with 3 dates in date1 string&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_2-1680100799905.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82170i7CA6F7851E53E876/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_2-1680100799905.png" alt="SASuserlot_2-1680100799905.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_3-1680100835871.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82171i7DC2480DA95A9335/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_3-1680100835871.png" alt="SASuserlot_3-1680100835871.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;LOG:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
NOTE: The infile 'xx\chk.txt' is:
      Filename=xx\chk.txt,
      RECFM=V,LRECL=32767,File Size (bytes)=309,
      Last Modified=29Mar2023:10:38:52,
      Create Time=28Mar2023:21:04:17

NOTE: 15 records were read from the infile 'xx\chk.txt'.
      The minimum record length was 16.
      The maximum record length was 43.
NOTE: The data set WORK.SDTM_CUTOFF has 15 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 14:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867033#M42848</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2023-03-29T14:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Import 'DATES' as string in TXT file</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867036#M42849</link>
      <description>&lt;P&gt;I agree with your opinion. This is just for display purposes, so I was looking for something to display like in the image which later I export to excel to display the dates for that particular ID (10008). 'Guessingrows' during import worked for me when I have the two dates but as I increase the length with more dates, I am having trouble pulling all the dates. Thank you for your suggestions&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1680101192722.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82172i13777BD419BFD2E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1680101192722.png" alt="SASuserlot_0-1680101192722.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 14:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867036#M42849</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2023-03-29T14:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Import 'DATES' as string in TXT file</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867042#M42851</link>
      <description>&lt;P&gt;Did you run my code as suggested? I can only repeat,&amp;nbsp;&lt;STRONG&gt;one does not use PROC IMPORT for text files&lt;/STRONG&gt;. Its guessing will only cause trouble.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 14:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867042#M42851</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-29T14:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Import 'DATES' as string in TXT file</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867050#M42854</link>
      <description>&lt;P&gt;Got it. I did run your code. I am looking for not to split the one record of Id(10008) into three records ( I just added an extra date to the previous text file to check).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1680103339577.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82173iD9BF7C471F1AAFD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_0-1680103339577.png" alt="SASuserlot_0-1680103339577.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 15:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867050#M42854</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2023-03-29T15:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Import 'DATES' as string in TXT file</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867055#M42855</link>
      <description>&lt;P&gt;PROC IMPORT with GUESSINGROWS=MAX will work fine for as many dates as you want in that second column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As long as:&lt;/P&gt;
&lt;P&gt;1) They are all part of that second column.&amp;nbsp; So no commas, unless the whole list of dates is quoted.&amp;nbsp; No extra line breaks. etc.&lt;/P&gt;
&lt;P&gt;2) The length of the longest list of dates is less than 32767 bytes long. (Actually a little less since the first column will use some of the bytes).&amp;nbsp; A SAS variable cannot contain more than 32.767 bytes. And the default line length for a text file is 32,767 bytes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 15:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867055#M42855</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-29T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Import 'DATES' as string in TXT file</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867056#M42856</link>
      <description>&lt;P&gt;My code without the DO loop will not split the string, so where is the issue?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 15:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867056#M42856</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-29T15:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Import 'DATES' as string in TXT file</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867060#M42857</link>
      <description>&lt;P&gt;My sincere apologies. Yes, your code worked, I was reading the wrong file into the code. It worked with out the 'DO LOOP' Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 15:40:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Import-DATES-as-string-in-TXT-file/m-p/867060#M42857</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2023-03-29T15:40:36Z</dc:date>
    </item>
  </channel>
</rss>

