<?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: Issue for input data? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Issue-for-input-data/m-p/503432#M72737</link>
    <description>&lt;P&gt;This is way too small:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;lrecl=47&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It specifies the number of characters that SAS will read from each incoming line.&amp;nbsp; Pick a wide enough value, perhaps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;lrecl=300&lt;/P&gt;</description>
    <pubDate>Thu, 11 Oct 2018 15:11:34 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-10-11T15:11:34Z</dc:date>
    <item>
      <title>Issue for input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-for-input-data/m-p/503424#M72736</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having a problem to input the text file,&amp;nbsp; the sample data is shown below.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id,site,provider,hospital,scr,abi,dein,caseid,date,dob,admitdate,admittime,years,months,days,insurance,sex,race1,race2,race3,race4,race5,race6,hisp,zipcode,county,symptom1,scrsymptom2,scrsymptom3,scrsymptom4,scrsymptom5,scrsymptom6,scrsymptom7,scrsymptom8,scrsymptom9,scrsymptom10,scrsymptom11,exclusion1,exclusion2,exclusion3,exclusion4,exclusion5,exclusion6,exclusion7,exclusion8,exclusion9,exclusion10,elig,consent1,consent2,consent,interview,complete&lt;BR /&gt;1,0,1,8,PMS,HK,SHM,WH3T87601,10/05/16,01/30/05,09/05/07,14:10:30,9,159,4562,1,6,5,,,,,,2,55661,Right,4,,,,,,,,,,,,,,,,,,,,,1,,,2,0,1&lt;BR /&gt;2,0,2,8,OLS,MLB,FCN,QF2B64352,2014-12-03,&lt;SPAN&gt;2014-12-03&lt;/SPAN&gt;,&lt;SPAN&gt;2014-06-03,&amp;nbsp;&lt;/SPAN&gt;09:53:45,3,25,506,1,1,8,,,,,,1,69456,Wrong,1,,,,,,,,,,,,,,,,,,,,,8,,,2,4,6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found out when I created my codes below, it didn't work.&amp;nbsp; Starting with column "admitdate", the date is&amp;nbsp;missing.&amp;nbsp; &amp;nbsp;Please help.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
	infile "Pathway/test.txt" dlm=',' dsd missover lrecl=47 firstobs=2;
     input
             id   $
site   
provider   
hospital   
scr   $
abi   $
dein   $
caseid   $
date   $
dob   $
admitdate   $
admittime   $
years   
months   
days   
insurance   
sex   
race1   
race2   
race3   
race4   
race5   
race6   
hisp   
zipcode   
county   $
symptom1   
scrsymptom2   
scrsymptom3   
scrsymptom4   
scrsymptom5   
scrsymptom6   
scrsymptom7   
scrsymptom8   
scrsymptom9   
scrsymptom10   
scrsymptom11   $
exclusion1   
exclusion2   
exclusion3   
exclusion4   
exclusion5   
exclusion6   
exclusion7   
exclusion8   
exclusion9   
exclusion10   $
elig   
consent1   $
consent2   $
consent   
interview   
complete;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 14:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-for-input-data/m-p/503424#M72736</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-10-11T14:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issue for input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-for-input-data/m-p/503432#M72737</link>
      <description>&lt;P&gt;This is way too small:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;lrecl=47&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It specifies the number of characters that SAS will read from each incoming line.&amp;nbsp; Pick a wide enough value, perhaps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;lrecl=300&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 15:11:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-for-input-data/m-p/503432#M72737</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-10-11T15:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue for input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-for-input-data/m-p/503483#M72741</link>
      <description>&lt;P&gt;Thanks, it works.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 17:24:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-for-input-data/m-p/503483#M72741</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-10-11T17:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue for input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-for-input-data/m-p/503486#M72742</link>
      <description>&lt;P&gt;I strongly suggest reading Date values with a DATE informat and Times with a time informat. You can do a lot more with actual SAS Date and time values than character. Almost anything, including sorting, with character values as you show will require conversion to a date or headaches with multiple additional steps to get the values you want.&lt;/P&gt;
&lt;P&gt;I suggest reading those dates with MMDDYY8. informat and the time with time8.&lt;/P&gt;
&lt;P&gt;Assign an appropriate display format for people to use.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 17:30:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-for-input-data/m-p/503486#M72742</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-11T17:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue for input data?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Issue-for-input-data/m-p/503489#M72743</link>
      <description>&lt;P&gt;Thanks, but date9. won't work on 2014-03-06.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 17:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Issue-for-input-data/m-p/503489#M72743</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-10-11T17:38:54Z</dc:date>
    </item>
  </channel>
</rss>

