<?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: Proc cimport not working properly in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-cimport-not-working-properly/m-p/423807#M68146</link>
    <description>&lt;P&gt;You only got the dataset in transport format, but the .sas7bcat is a normal catalog file, which is OS and version specific.&lt;/P&gt;
&lt;P&gt;You either need&lt;/P&gt;
&lt;P&gt;- the catalog in transport format&lt;/P&gt;
&lt;P&gt;- SAS code to create the format (the proper method anyway)&lt;/P&gt;
&lt;P&gt;- a dataset that can be used as a cntlin for proc format&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2017 23:04:50 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-12-27T23:04:50Z</dc:date>
    <item>
      <title>Proc cimport not working properly</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-cimport-not-working-properly/m-p/423758#M68138</link>
      <description>&lt;P&gt;SAS beginner, I am working with SAS University edition to look at a public dataset from 2007, and when you download the zip file to obtain the data, it contains an import/transport file (.sas), a formats file (.sas7bcat), and the data file (.v8x). It also contains a PDF with some instructions. I was instructed to put everything in one folder, make a library for it, then open the import file and run the following code which runs without errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename FILE1 "PATH ON COMPUTER WHERE DATA FILE IS FOUND\hints2007.d2009_02_12.public.v8x";

proc cimport file=FILE1 data=SUBSTITUTE LIBRARY AND FILE NAME HERE;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The 3 notes that come out of this are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;NOTE: PROC CIMPORT begins to create/update data set WORK.HINTS32&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;NOTE: Data set contains 473 variables and 7674 observations.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;Logical record length is 4608&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote focus-line"&gt;&lt;STRONG&gt;NOTE: PROCEDURE CIMPORT used (Total process time):&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;real time 1.24 seconds&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;STRONG&gt;cpu time 1.03 seconds&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Options fmtsearch=(libraryname);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which also runs fine. My errors arise when I go to do some re-coding of variables using the formats. After "data ______;" and "set ______;" I get this error - 292 times, one for each formatted variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: File HINTS32.FORMATS.CATALOG was created for a different operating system.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Isn't this what the transport file is meant to take care of? Is there something wrong with they way they have instructed me to do this or the way I am executing it? I have tried meddling with it a little based on the SAS help pages, but this public dataset is heavily used so if there was some kind of mistake in their instructions I think someone would have noticed by now and amended. I assume I am doing something wrong, but what?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 17:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-cimport-not-working-properly/m-p/423758#M68138</guid>
      <dc:creator>psyscience</dc:creator>
      <dc:date>2017-12-27T17:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc cimport not working properly</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-cimport-not-working-properly/m-p/423807#M68146</link>
      <description>&lt;P&gt;You only got the dataset in transport format, but the .sas7bcat is a normal catalog file, which is OS and version specific.&lt;/P&gt;
&lt;P&gt;You either need&lt;/P&gt;
&lt;P&gt;- the catalog in transport format&lt;/P&gt;
&lt;P&gt;- SAS code to create the format (the proper method anyway)&lt;/P&gt;
&lt;P&gt;- a dataset that can be used as a cntlin for proc format&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 23:04:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-cimport-not-working-properly/m-p/423807#M68146</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-27T23:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc cimport not working properly</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-cimport-not-working-properly/m-p/423810#M68147</link>
      <description>&lt;P&gt;Thank you, Kurt, I emailed yesterday looking for additional files and hope to hear from them soon.&lt;/P&gt;&lt;P&gt;FWIW, I looked at iterations of the survey from 2005 and 2011 this afternoon, and the format approach is completely different in all three. 2005 uses a macro which works beautifully and 2011 gives two .sas code files to accomplish this.&amp;nbsp;This is probably not an efficient way for me to learn SAS!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 23:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-cimport-not-working-properly/m-p/423810#M68147</guid>
      <dc:creator>psyscience</dc:creator>
      <dc:date>2017-12-27T23:48:43Z</dc:date>
    </item>
  </channel>
</rss>

