<?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: Retrieve column position in flat file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Retrieve-column-position-in-flat-file/m-p/61429#M17438</link>
    <description>Hi:&lt;BR /&gt;
  Generally, if you are reading packed and/or signed data, it is possible (sometimes) to get the program that created the file...or get the program that reads the file. For example, if you have a COBOL copybook or COBOL file description, there is a program called COB2SAS that will "translate" a COBOL file description to a SAS INPUT statement.&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts620.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts620.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts536.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts536.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  Otherwise, it -is- possible to figure out the position -- not easy, but possible. It requires counting bytes and looking at a hexadecimal version of the input file. This section in the documentation has some useful information:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a001239773.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a001239773.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts642.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts642.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/16/565.html" target="_blank"&gt;http://support.sas.com/kb/16/565.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts654.pdf" target="_blank"&gt;http://support.sas.com/techsup/technote/ts654.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
  If you have ongoing issues reading your data, you may wish to contact Tech Support for more in-depth help. They would really need to look at your data to advise you on how to read it.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Tue, 23 Feb 2010 20:07:31 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-02-23T20:07:31Z</dc:date>
    <item>
      <title>Retrieve column position in flat file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Retrieve-column-position-in-flat-file/m-p/61428#M17437</link>
      <description>When reading in a flat file, with non-standard informats for packed and signed variables, it is not "straightforward" to retrieve the actual position in the flat file from which a certain variable is read. Is it possible to retrieve those positions, or save them, after reading in the data in SAS?</description>
      <pubDate>Tue, 23 Feb 2010 19:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Retrieve-column-position-in-flat-file/m-p/61428#M17437</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-02-23T19:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve column position in flat file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Retrieve-column-position-in-flat-file/m-p/61429#M17438</link>
      <description>Hi:&lt;BR /&gt;
  Generally, if you are reading packed and/or signed data, it is possible (sometimes) to get the program that created the file...or get the program that reads the file. For example, if you have a COBOL copybook or COBOL file description, there is a program called COB2SAS that will "translate" a COBOL file description to a SAS INPUT statement.&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts620.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts620.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts536.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts536.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  Otherwise, it -is- possible to figure out the position -- not easy, but possible. It requires counting bytes and looking at a hexadecimal version of the input file. This section in the documentation has some useful information:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a001239773.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/62618/HTML/default/a001239773.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts642.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts642.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/16/565.html" target="_blank"&gt;http://support.sas.com/kb/16/565.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts654.pdf" target="_blank"&gt;http://support.sas.com/techsup/technote/ts654.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
  If you have ongoing issues reading your data, you may wish to contact Tech Support for more in-depth help. They would really need to look at your data to advise you on how to read it.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 23 Feb 2010 20:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Retrieve-column-position-in-flat-file/m-p/61429#M17438</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-02-23T20:07:31Z</dc:date>
    </item>
  </channel>
</rss>

