<?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 How do I read in this text file using an INPUT statement in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500887#M419</link>
    <description>&lt;P class="Default"&gt;&lt;SPAN&gt;The file trial05 contains three variables for each subject: Subject ID, treatment group (0 = placebo, 1 = treatment) and disease duration (see above). There is a space between variables. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 1 2 2 1 1 3 1 2 4 0 3 5 1 3 6 1 2 7 0 3 8 1 3 9 0 1 10 0 2 11 1 1 12 0 2 13 1 2 14 1 1 15 0 1&lt;BR /&gt;16 1 3 17 0 1 18 0 3 19 0 3 20 0 2 21 0 1 22 1 3 23 1 3 24 1 2 25 1 3 26 0 3 27 0 3 28 1 2 29 1 2&lt;BR /&gt;30 0 2 31 0 1 32 1 1 33 0 2 34 0 1 35 1 1 36 1 3 37 1 1 38 1 3 39 0 2 40 0 3 41 1 3 42 0 3 43 0 1&lt;BR /&gt;44 1 2 45 1 1 46 1 2 47 0 3 48 0 2 49 1 3 50 1 3 51 0 1 52 1 2 53 0 1 54 1 3 55 0 3 56 0 3 57 0 2&lt;BR /&gt;58 1 2 59 1 2 60 0 1 61 0 1 62 1 1 63 1 3 64 0 1 65 1 2 66 0 2 67 0 1 68 1 1 69 1 2 70 1 2 71 0 2&lt;BR /&gt;72 0 2 73 0 1 74 0 3 75 0 3 76 1 2 77 1 2 78 0 2 79 1 3 80 1 3 81 1 1 82 0 2 83 0 1 84 1 3 85 0 1&lt;BR /&gt;86 0 3 87 1 3 88 0 2 89 1 1 90 0 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the input statement for this data??&lt;/P&gt;
&lt;P&gt;filename t5 '/folders/myfolders/trial03_f18.txt/';&lt;BR /&gt;run;&lt;BR /&gt;data trial05;&lt;BR /&gt;infile t5;&lt;BR /&gt;input ????????;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Oct 2018 18:58:28 GMT</pubDate>
    <dc:creator>CBELLON</dc:creator>
    <dc:date>2018-10-02T18:58:28Z</dc:date>
    <item>
      <title>How do I read in this text file using an INPUT statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500887#M419</link>
      <description>&lt;P class="Default"&gt;&lt;SPAN&gt;The file trial05 contains three variables for each subject: Subject ID, treatment group (0 = placebo, 1 = treatment) and disease duration (see above). There is a space between variables. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 1 2 2 1 1 3 1 2 4 0 3 5 1 3 6 1 2 7 0 3 8 1 3 9 0 1 10 0 2 11 1 1 12 0 2 13 1 2 14 1 1 15 0 1&lt;BR /&gt;16 1 3 17 0 1 18 0 3 19 0 3 20 0 2 21 0 1 22 1 3 23 1 3 24 1 2 25 1 3 26 0 3 27 0 3 28 1 2 29 1 2&lt;BR /&gt;30 0 2 31 0 1 32 1 1 33 0 2 34 0 1 35 1 1 36 1 3 37 1 1 38 1 3 39 0 2 40 0 3 41 1 3 42 0 3 43 0 1&lt;BR /&gt;44 1 2 45 1 1 46 1 2 47 0 3 48 0 2 49 1 3 50 1 3 51 0 1 52 1 2 53 0 1 54 1 3 55 0 3 56 0 3 57 0 2&lt;BR /&gt;58 1 2 59 1 2 60 0 1 61 0 1 62 1 1 63 1 3 64 0 1 65 1 2 66 0 2 67 0 1 68 1 1 69 1 2 70 1 2 71 0 2&lt;BR /&gt;72 0 2 73 0 1 74 0 3 75 0 3 76 1 2 77 1 2 78 0 2 79 1 3 80 1 3 81 1 1 82 0 2 83 0 1 84 1 3 85 0 1&lt;BR /&gt;86 0 3 87 1 3 88 0 2 89 1 1 90 0 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the input statement for this data??&lt;/P&gt;
&lt;P&gt;filename t5 '/folders/myfolders/trial03_f18.txt/';&lt;BR /&gt;run;&lt;BR /&gt;data trial05;&lt;BR /&gt;infile t5;&lt;BR /&gt;input ????????;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 18:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500887#M419</guid>
      <dc:creator>CBELLON</dc:creator>
      <dc:date>2018-10-02T18:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read in this excel file? INPUT statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500888#M420</link>
      <description>&lt;P&gt;Is it an Excel or .txt file?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 18:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500888#M420</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-10-02T18:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read in this excel file? INPUT statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500890#M421</link>
      <description>&lt;P&gt;it's a .txt&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 18:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500890#M421</guid>
      <dc:creator>CBELLON</dc:creator>
      <dc:date>2018-10-02T18:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read in this excel file? INPUT statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500893#M422</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data trial05;
infile t5 flowover;
input Subject_ID $ treatment_group disease_duration @@;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Oct 2018 18:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500893#M422</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-10-02T18:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read in this text file using an INPUT statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500899#M423</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards flowover dlm=' ';
input ID $ group disease @@;
cards;
1 1 2 2 1 1 3 1 2 4 0 3 5 1 3 6 1 2 7 0 3 8 1 3 9 0 1 10 0 2 11 1 1 12 0 2 13 1 2 14 1 1 15 0 1
16 1 3 17 0 1 18 0 3 19 0 3 20 0 2 21 0 1 22 1 3 23 1 3 24 1 2 25 1 3 26 0 3 27 0 3 28 1 2 29 1 2
30 0 2 31 0 1 32 1 1 33 0 2 34 0 1 35 1 1 36 1 3 37 1 1 38 1 3 39 0 2 40 0 3 41 1 3 42 0 3 43 0 1
44 1 2 45 1 1 46 1 2 47 0 3 48 0 2 49 1 3 50 1 3 51 0 1 52 1 2 53 0 1 54 1 3 55 0 3 56 0 3 57 0 2
58 1 2 59 1 2 60 0 1 61 0 1 62 1 1 63 1 3 64 0 1 65 1 2 66 0 2 67 0 1 68 1 1 69 1 2 70 1 2 71 0 2
72 0 2 73 0 1 74 0 3 75 0 3 76 1 2 77 1 2 78 0 2 79 1 3 80 1 3 81 1 1 82 0 2 83 0 1 84 1 3 85 0 1
86 0 3 87 1 3 88 0 2 89 1 1 90 0 1
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAS System&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Obs ID group disease&lt;BR /&gt;1 1 1 2&lt;BR /&gt;2 2 1 1&lt;BR /&gt;3 3 1 2&lt;BR /&gt;4 4 0 3&lt;BR /&gt;5 5 1 3&lt;BR /&gt;6 6 1 2&lt;BR /&gt;7 7 0 3&lt;BR /&gt;8 8 1 3&lt;BR /&gt;9 9 0 1&lt;BR /&gt;10 10 0 2&lt;BR /&gt;11 11 1 1&lt;BR /&gt;12 12 0 2&lt;BR /&gt;13 13 1 2&lt;BR /&gt;14 14 1 1&lt;BR /&gt;15 15 0 1&lt;BR /&gt;16 16 1 3&lt;BR /&gt;17 17 0 1&lt;BR /&gt;18 18 0 3&lt;BR /&gt;19 19 0 3&lt;BR /&gt;20 20 0 2&lt;BR /&gt;21 21 0 1&lt;BR /&gt;22 22 1 3&lt;BR /&gt;23 23 1 3&lt;BR /&gt;24 24 1 2&lt;BR /&gt;25 25 1 3&lt;BR /&gt;26 26 0 3&lt;BR /&gt;27 27 0 3&lt;BR /&gt;28 28 1 2&lt;BR /&gt;29 29 1 2&lt;BR /&gt;30 30 0 2&lt;BR /&gt;31 31 0 1&lt;BR /&gt;32 32 1 1&lt;BR /&gt;33 33 0 2&lt;BR /&gt;34 34 0 1&lt;BR /&gt;35 35 1 1&lt;BR /&gt;36 36 1 3&lt;BR /&gt;37 37 1 1&lt;BR /&gt;38 38 1 3&lt;BR /&gt;39 39 0 2&lt;BR /&gt;40 40 0 3&lt;BR /&gt;41 41 1 3&lt;BR /&gt;42 42 0 3&lt;BR /&gt;43 43 0 1&lt;BR /&gt;44 44 1 2&lt;BR /&gt;45 45 1 1&lt;BR /&gt;46 46 1 2&lt;BR /&gt;47 47 0 3&lt;BR /&gt;48 48 0 2&lt;BR /&gt;49 49 1 3&lt;BR /&gt;50 50 1 3&lt;BR /&gt;51 51 0 1&lt;BR /&gt;52 52 1 2&lt;BR /&gt;53 53 0 1&lt;BR /&gt;54 54 1 3&lt;BR /&gt;55 55 0 3&lt;BR /&gt;56 56 0 3&lt;BR /&gt;57 57 0 2&lt;BR /&gt;58 58 1 2&lt;BR /&gt;59 59 1 2&lt;BR /&gt;60 60 0 1&lt;BR /&gt;61 61 0 1&lt;BR /&gt;62 62 1 1&lt;BR /&gt;63 63 1 3&lt;BR /&gt;64 64 0 1&lt;BR /&gt;65 65 1 2&lt;BR /&gt;66 66 0 2&lt;BR /&gt;67 67 0 1&lt;BR /&gt;68 68 1 1&lt;BR /&gt;69 69 1 2&lt;BR /&gt;70 70 1 2&lt;BR /&gt;71 71 0 2&lt;BR /&gt;72 72 0 2&lt;BR /&gt;73 73 0 1&lt;BR /&gt;74 74 0 3&lt;BR /&gt;75 75 0 3&lt;BR /&gt;76 76 1 2&lt;BR /&gt;77 77 1 2&lt;BR /&gt;78 78 0 2&lt;BR /&gt;79 79 1 3&lt;BR /&gt;80 80 1 3&lt;BR /&gt;81 81 1 1&lt;BR /&gt;82 82 0 2&lt;BR /&gt;83 83 0 1&lt;BR /&gt;84 84 1 3&lt;BR /&gt;85 85 0 1&lt;BR /&gt;86 86 0 3&lt;BR /&gt;87 87 1 3&lt;BR /&gt;88 88 0 2&lt;BR /&gt;89 89 1 1&lt;BR /&gt;90 90 0 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 19:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500899#M423</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-10-02T19:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read in this excel file? INPUT statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500931#M425</link>
      <description>&lt;P&gt;it's not working. what i would need is to make it look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID &amp;nbsp; &amp;nbsp;treatment_group &amp;nbsp; disease_duration&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=" dgrid-row dgrid-row-even ui-state-default"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=" dgrid-row ui-state-default dgrid-row-odd"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Oct 2018 19:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500931#M425</guid>
      <dc:creator>CBELLON</dc:creator>
      <dc:date>2018-10-02T19:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read in this excel file? INPUT statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500936#M426</link>
      <description>&lt;P&gt;Saying "It's not working" provides very little information to work with &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Post your log please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the code I posted, I get this&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23729i82F532C843B90A49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 19:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500936#M426</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-10-02T19:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I read in this excel file? INPUT statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500940#M427</link>
      <description>&lt;P&gt;this is what I get.. and LOG has no errors&lt;IMG src="blob:https://communities.sas.com/704519e5-0340-4d23-9f28-f883cf42a536" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 20:03:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-read-in-this-text-file-using-an-INPUT-statement/m-p/500940#M427</guid>
      <dc:creator>CBELLON</dc:creator>
      <dc:date>2018-10-02T20:03:45Z</dc:date>
    </item>
  </channel>
</rss>

