<?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 can i read .dat file with the help of SAS code? in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199046#M32</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is text data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 14:57:33 GMT</pubDate>
    <dc:creator>ahuja</dc:creator>
    <dc:date>2015-06-03T14:57:33Z</dc:date>
    <item>
      <title>How do I read .dat file with SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199041#M27</link>
      <description>&lt;P&gt;I tried to extract or read .dat file in SAS Studio using SAS code but data is not coming in proper format,&lt;/P&gt;
&lt;P&gt;Below is the code i have used to read .dat files.&lt;/P&gt;
&lt;P&gt;* Create a SAS data set named toads;&lt;/P&gt;
&lt;P&gt;* Read the data file ToadJump.dat using list input;&lt;/P&gt;
&lt;P&gt;DATA toads;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; INFILE 'c:\MyRawData\ToadJump.dat';&lt;/P&gt;
&lt;P&gt;&amp;nbsp; INPUT ToadName $ Weight Jump1 Jump2 Jump3;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;* Print the data to make sure the file was read correctly;&lt;/P&gt;
&lt;P&gt;PROC PRINT DATA = toads;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; TITLE 'SAS Data Set Toads';&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this doesn't seems to be perfect, can anyone help me with the solution?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 14:54:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199041#M27</guid>
      <dc:creator>ahuja</dc:creator>
      <dc:date>2018-05-07T14:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can i read .dat file with the help of SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199042#M28</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer is in ToadJump.dat but we cannot see ToadJump.dat from way over here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199042#M28</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-06-03T14:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can i read .dat file with the help of SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199043#M29</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ToadJump.dat is a data set, and i want to read the data available in ToadJump.dat data set through SAS, so the result should display on SAS.&lt;/P&gt;&lt;P&gt;But it's not displaying proper result, may be i am missing something in SAS code. Can you help me with the proper SAS code ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199043#M29</guid>
      <dc:creator>ahuja</dc:creator>
      <dc:date>2015-06-03T14:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can i read .dat file with the help of SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199044#M30</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say ToadJump is a dataset, what application created that dataset.&amp;nbsp; The file extension .dat doesn't actually mean anything, it just stands for data.&amp;nbsp; This would be text data, delimited data e.g. csv, Oracle dump file, XML etc.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, what happens if you right click -&amp;gt; open with -&amp;gt; Notepad&lt;/P&gt;&lt;P&gt;on the file?&amp;nbsp;&amp;nbsp; Does it show nice text data, if so then write a datastep import program.&lt;/P&gt;&lt;P&gt;If it shows weird characters and such like, then it is a binary file, these are generally proprietary for instance old Excel files were proprietary format and then you need the application which created it, or some in between software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So where does the data come from?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199044#M30</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-06-03T14:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can i read .dat file with the help of SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199045#M31</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is it not perfect?&lt;/P&gt;&lt;P&gt;What does your data look like? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without knowing what the 'imperfections' are we can't help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:34:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199045#M31</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-06-03T14:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can i read .dat file with the help of SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199046#M32</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is text data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199046#M32</guid>
      <dc:creator>ahuja</dc:creator>
      <dc:date>2015-06-03T14:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can i read .dat file with the help of SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199047#M33</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After executing i get this data, i have attached image of data please find.&lt;IMG alt="Data Image.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/10716_Data Image.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 15:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199047#M33</guid>
      <dc:creator>ahuja</dc:creator>
      <dc:date>2015-06-03T15:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can i read .dat file with the help of SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199048#M34</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i got the answer to it but still thanks to all of you to reply on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 15:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199048#M34</guid>
      <dc:creator>ahuja</dc:creator>
      <dc:date>2015-06-03T15:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can i read .dat file with the help of SAS code?</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199049#M35</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you could read the data, but perhaps it is not the types of numbers you expected?&lt;/P&gt;&lt;P&gt;You can just have the data step dump a few records of the source file to the log to see what it looks like.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;DATA toads;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; INFILE 'c:\MyRawData\ToadJump.dat';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; INPUT ToadName $ Weight Jump1 Jump2 Jump3;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp; if _n_ &amp;lt;= 10 then list ;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 16:15:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/How-do-I-read-dat-file-with-SAS-code/m-p/199049#M35</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-06-03T16:15:14Z</dc:date>
    </item>
  </channel>
</rss>

