<?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 to get the content of the SAS7bdat file with variable name of more than 8 Characters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-content-of-the-SAS7bdat-file-with-variable-name/m-p/28116#M5167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Mathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide a copy of your sas log when you have this issue?&amp;nbsp; Also can you provide a copy of one of the problem data sets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of those would be very helpful for tracking your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx:-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2012 14:01:00 GMT</pubDate>
    <dc:creator>LarryWorley</dc:creator>
    <dc:date>2012-01-11T14:01:00Z</dc:date>
    <item>
      <title>How to get the content of the SAS7bdat file with variable name of more than 8 Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-content-of-the-SAS7bdat-file-with-variable-name/m-p/28114#M5165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I need to get the property (content/Variables View) of *.SAS7BDAT files which consist of variable names of more than 8 characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i tried the below code i'm able to get the xml from all the other sas7bdat files (where their variable names in that sas7bdat file is of maximum 8 characters only).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;CODE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ods xml file="C:\Users\sas\Desktop\text2.xml"; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; proc contents data='C:\\Users\\sas\\Desktop\\SAS\\cal_sample.sas7bdat' out=contents DETAILS;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; run; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ods _all_ close;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this 'cal_sample.sas7bdat' file its variable name length is of max 8 characters only, so i got the expected test2.XML as output and i proceessed it to get my output.And i can not get that expected XML for other files with more than 8 characters as its variable name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to SAS and i knew few thing only about it. I'm in Need of help!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 12:45:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-content-of-the-SAS7bdat-file-with-variable-name/m-p/28114#M5165</guid>
      <dc:creator>Mathan</dc:creator>
      <dc:date>2012-01-11T12:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the content of the SAS7bdat file with variable name of more than 8 Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-content-of-the-SAS7bdat-file-with-variable-name/m-p/28115#M5166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works fine for simple test that I did.&lt;/P&gt;&lt;P&gt;Not sure why you would want the print-out from PROC CONTENTS as XML.&lt;/P&gt;&lt;P&gt;Why don't you export the dataset output by the proc as an XML file?&amp;nbsp; That would not have the confused format needed to convert it to listing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname out xml '~/test/contents.xml';&lt;/P&gt;&lt;P&gt;proc contents data=sashelp.class out=out.contents noprint ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;libname out clear;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 13:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-content-of-the-SAS7bdat-file-with-variable-name/m-p/28115#M5166</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-01-11T13:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the content of the SAS7bdat file with variable name of more than 8 Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-content-of-the-SAS7bdat-file-with-variable-name/m-p/28116#M5167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Mathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide a copy of your sas log when you have this issue?&amp;nbsp; Also can you provide a copy of one of the problem data sets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of those would be very helpful for tracking your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx:-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 14:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-content-of-the-SAS7bdat-file-with-variable-name/m-p/28116#M5167</guid>
      <dc:creator>LarryWorley</dc:creator>
      <dc:date>2012-01-11T14:01:00Z</dc:date>
    </item>
    <item>
      <title>How to get the content of the SAS7bdat file with variable name of more than 8 Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-content-of-the-SAS7bdat-file-with-variable-name/m-p/28117#M5168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Have a look at the sashelp dictonary tables should contain information that you need to process this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Barry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 20:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-content-of-the-SAS7bdat-file-with-variable-name/m-p/28117#M5168</guid>
      <dc:creator>twocanbazza</dc:creator>
      <dc:date>2012-01-11T20:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the content of the SAS7bdat file with variable name of more than 8 Characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-content-of-the-SAS7bdat-file-with-variable-name/m-p/28118#M5169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm totally new to SAS and after long R&amp;amp;D i tried with that code. And my hearty thanks to you. Where this is the one what exactly i'm looking for it....&lt;/P&gt;&lt;P&gt;Happy thanks Tom!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 07:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-content-of-the-SAS7bdat-file-with-variable-name/m-p/28118#M5169</guid>
      <dc:creator>Mathan</dc:creator>
      <dc:date>2012-01-12T07:09:14Z</dc:date>
    </item>
  </channel>
</rss>

