<?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: Sequential read of binary file using IML in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Sequential-read-of-binary-file-using-IML/m-p/596868#M4861</link>
    <description>&lt;P&gt;I remembered&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&amp;nbsp; wrote a paper about reading binary file(a picture) , you need special informat .&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 13:17:44 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-10-16T13:17:44Z</dc:date>
    <item>
      <title>Sequential read of binary file using IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Sequential-read-of-binary-file-using-IML/m-p/596861#M4860</link>
      <description>&lt;P&gt;Following on from my question yesterday, I am now successfully reading data from a binary file, but I can only do this with the random access style syntax along the lines of "input &amp;gt;n" to read something at byte position n.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I try syntax like " input &amp;lt;8 x IEEE8.; "&amp;nbsp; to read the next 8 bytes as an IEEE double, it does not advance the file pointer, so any similar input statements that follow keep re-reading the same 8 bytes.&amp;nbsp;&amp;nbsp; I have tried using a trailing @ but this makes no difference.&amp;nbsp; Is there perhaps a hold control for binary files that I am not aware of?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, is there a way of reading a block of data into a matrix, instead of reading numbers one at a time?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 13:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Sequential-read-of-binary-file-using-IML/m-p/596861#M4860</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2019-10-16T13:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read of binary file using IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Sequential-read-of-binary-file-using-IML/m-p/596868#M4861</link>
      <description>&lt;P&gt;I remembered&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&amp;nbsp; wrote a paper about reading binary file(a picture) , you need special informat .&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 13:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Sequential-read-of-binary-file-using-IML/m-p/596868#M4861</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-10-16T13:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read of binary file using IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Sequential-read-of-binary-file-using-IML/m-p/596873#M4862</link>
      <description>&lt;P&gt;I don't know. I have never read binary data into IML variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my experience, it is easier to use the DATA step for operations such as this. If this is something that is one step of a larger IML program, you can use the&amp;nbsp;SUBMIT-ENDSUBMIT block to call the DATA step from within PROC IML. You can even &lt;A href="https://blogs.sas.com/content/iml/2013/06/03/passing-values-into-procedures.html" target="_self"&gt;pass parameters from IML variables into the DATA step.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 13:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Sequential-read-of-binary-file-using-IML/m-p/596873#M4862</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-10-16T13:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read of binary file using IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Sequential-read-of-binary-file-using-IML/m-p/596905#M4863</link>
      <description>&lt;P&gt;I think I am probably sticking with a pure IML solution as I have something that works, it's is just not quite as fast as I hoped.&amp;nbsp; The binary files are large, around 350MB to 1GB.&amp;nbsp; Each contains 5 matrices and 5 vectors (not all of which will be required), and it just seemed more efficient to read what I want directly into IML for further processing.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 14:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Sequential-read-of-binary-file-using-IML/m-p/596905#M4863</guid>
      <dc:creator>IanWakeling</dc:creator>
      <dc:date>2019-10-16T14:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read of binary file using IML</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Sequential-read-of-binary-file-using-IML/m-p/597395#M4867</link>
      <description>&lt;P&gt;OK. One possible idea regarding the speed: If you need to run several programs on the same data, you can read the binary data into matrices once, then save them as a SAS data set (preferred) or use the STORE statement to save the matrices. If you do that, subsequent access of the data will be faster.&amp;nbsp; Of course, if you are trying to read data that are generated every morning by some non-SAS process and only analyzed by one IML program, this idea won't save you any time.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 15:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Sequential-read-of-binary-file-using-IML/m-p/597395#M4867</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-10-17T15:35:52Z</dc:date>
    </item>
  </channel>
</rss>

