<?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 export and spss value labels in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291219#M60329</link>
    <description>&lt;P&gt;Can you provide more info on the error that you are getting in the log...&lt;/P&gt;</description>
    <pubDate>Fri, 12 Aug 2016 11:34:47 GMT</pubDate>
    <dc:creator>DMoovendhan</dc:creator>
    <dc:date>2016-08-12T11:34:47Z</dc:date>
    <item>
      <title>Proc export and spss value labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291180#M60321</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a way to&amp;nbsp;get&amp;nbsp;usable&amp;nbsp;value/label pairs&amp;nbsp;when using proc export to export datasets to spss dataset files (.sav). The formats are taken from&amp;nbsp;our standard format catalog to using the fmtlib option. This produces good results when looking at the resulting dataset&amp;nbsp;in SPSS - but only for both numeric values and strings with only numbers like "01". When the value is a string with characters, I get extraneous spaces and unwanted symbols added at the end of the value, like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="clip.PNG" alt="clip.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/4535i7A82817550702C92/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;PRE&gt;proc export data=data
outfile="path\file.sav"
dbms=sav replace;
fmtlib=FORMATS.FORMATS;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Grateful for any ideas I can try to make this work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Fredrik&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 08:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291180#M60321</guid>
      <dc:creator>Flun</dc:creator>
      <dc:date>2016-08-12T08:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export and spss value labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291203#M60324</link>
      <description>&lt;P&gt;What about DBMS=SPSS?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 10:03:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291203#M60324</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-12T10:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export and spss value labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291205#M60325</link>
      <description>&lt;P&gt;Thanks for replying Reeza!&lt;/P&gt;&lt;P&gt;I have now&amp;nbsp;tried with DBMS=SPSS and the problem is still there unfortunately&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 10:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291205#M60325</guid>
      <dc:creator>Flun</dc:creator>
      <dc:date>2016-08-12T10:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export and spss value labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291219#M60329</link>
      <description>&lt;P&gt;Can you provide more info on the error that you are getting in the log...&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 11:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291219#M60329</guid>
      <dc:creator>DMoovendhan</dc:creator>
      <dc:date>2016-08-12T11:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export and spss value labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291223#M60330</link>
      <description>&lt;P&gt;There are no errors&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 11:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291223#M60330</guid>
      <dc:creator>Flun</dc:creator>
      <dc:date>2016-08-12T11:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export and spss value labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291310#M60369</link>
      <description>&lt;P&gt;You say that you "&amp;nbsp;get extraneous spaces and unwanted symbols added at the end of the value". Do you mean at the begining of the line? I don't see anything at the end in the displayed picture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am wondering if there might be an encoding issue involved, such as a UTF-8 to UTF-16 between the two programs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2016 16:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291310#M60369</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-12T16:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export and spss value labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291654#M60419</link>
      <description>&lt;P&gt;It does seem like an ecoding problem.&lt;/P&gt;&lt;P&gt;What I've tried so far is to set the encoding for file I want proc export to write to. I tried with&amp;nbsp;using a&amp;nbsp;filename statement and defining a .sav file with utf-8 encoding, before the proc export. SAS does create a .sav-file but then no data seems to be written to that file (no errors though).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ballardw: Look at the picture again. the values look like this:&lt;/P&gt;&lt;P&gt;"Value1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _=¾"&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 08:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291654#M60419</guid>
      <dc:creator>Flun</dc:creator>
      <dc:date>2016-08-15T08:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export and spss value labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291660#M60421</link>
      <description>&lt;P&gt;I think it may be worth it to contact SAS Tech Support.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 10:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291660#M60421</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-15T10:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export and spss value labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291786#M60469</link>
      <description>&lt;P&gt;I think we are using END different context and I haven't looked at SPSS code in so long I don't remember the proper appearance for a Value statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If tech support can't help it may be easier to write some SPSS syntax from the SAS Data and/or format information that can be pasted into SPSS after opening the data set.&lt;/P&gt;
&lt;P&gt;It has been long enough (more than 10 years) since I had to deal with SPSS so I don't think I can make a more specific suggestion.&lt;/P&gt;
&lt;P&gt;If some of the SAS values are from formats then you might start with creating a CNTLOUT data set from the format libray involved.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 22:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-and-spss-value-labels/m-p/291786#M60469</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-15T22:38:01Z</dc:date>
    </item>
  </channel>
</rss>

