<?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: XML LIBNAME Engine: Convert Char 2 DateTime in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/XML-LIBNAME-Engine-Convert-Char-2-DateTime/m-p/223972#M307918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this an article or a question? If this is a question, then it doesn't belong here. Also, if this is a question, you have 2 objects named "a" -- you have the SAS dataset WORK.A and you have the TEST.A XML file that you create with the XML libname engine. In your "article" you say that "X in a is Character, X in b is DateTime". When you refer to just a, I think of WORK.A -- do you mean that X created in WORK.A is character??? Where is the rest of your article???&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS...have you tried a LENGTH statement when you create WORK.B???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data b;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; length x $5;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; set test.a;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2015 12:54:32 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2015-06-29T12:54:32Z</dc:date>
    <item>
      <title>XML LIBNAME Engine: Convert Char 2 DateTime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-LIBNAME-Engine-Convert-Char-2-DateTime/m-p/223971#M307917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,all:&lt;/P&gt;&lt;P&gt;When I use XML Engine to read and wirte a xml file.I found the &lt;SPAN style="text-align: left; color: #434343; text-indent: 0px; background-color: #f2f2f2;"&gt;issue&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;libname test xml "xmltest.xml";&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;DATA a;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; X="2:2:1";&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; output;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; X="3:3:1";&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; output;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DATA test.a;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; set a;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data b;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; set test.a;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;libname test clear;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X in a is Character,X in b is DateTime.&lt;/P&gt;&lt;P&gt;Any options can retain the X as character in b? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 07:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-LIBNAME-Engine-Convert-Char-2-DateTime/m-p/223971#M307917</guid>
      <dc:creator>NewmanChow</dc:creator>
      <dc:date>2015-06-29T07:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: XML LIBNAME Engine: Convert Char 2 DateTime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-LIBNAME-Engine-Convert-Char-2-DateTime/m-p/223972#M307918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this an article or a question? If this is a question, then it doesn't belong here. Also, if this is a question, you have 2 objects named "a" -- you have the SAS dataset WORK.A and you have the TEST.A XML file that you create with the XML libname engine. In your "article" you say that "X in a is Character, X in b is DateTime". When you refer to just a, I think of WORK.A -- do you mean that X created in WORK.A is character??? Where is the rest of your article???&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS...have you tried a LENGTH statement when you create WORK.B???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data b;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; length x $5;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; set test.a;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2015 12:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-LIBNAME-Engine-Convert-Char-2-DateTime/m-p/223972#M307918</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-06-29T12:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: XML LIBNAME Engine: Convert Char 2 DateTime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/XML-LIBNAME-Engine-Convert-Char-2-DateTime/m-p/223973#M307919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，Cynthia：&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is a question. Sorry,I didn't pay attention to make sure It's a Article or Querstion .Can It be modified to &lt;SPAN style="color: #434343; text-indent: 0px; background-color: #f2f2f2;"&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;correct&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;'X in a is Character' which 'a' is WORK.A .&lt;/P&gt;&lt;P&gt;I tried your advice but got a error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ERROR: Variable x has been defined as both character and&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; numeric.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sorry , again.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 01:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/XML-LIBNAME-Engine-Convert-Char-2-DateTime/m-p/223973#M307919</guid>
      <dc:creator>NewmanChow</dc:creator>
      <dc:date>2015-06-30T01:00:05Z</dc:date>
    </item>
  </channel>
</rss>

