<?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 tranpose id numeric variable not working in enterprise guide in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183616#M14129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, options validvarname=v7 worked. Thank you all and specially xia keshan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2015 14:59:37 GMT</pubDate>
    <dc:creator>deepikaj</dc:creator>
    <dc:date>2015-01-15T14:59:37Z</dc:date>
    <item>
      <title>proc tranpose id numeric variable not working in enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183610#M14123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a program that use proc transpose and uses a numeric variable (value 0.12, 1, 2) as the id var. Proc transpose runs without errors, but when the next proc or datadtep use the var name, it gives error e.g. 0_12 does not exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same code runs without issues from SAS 9.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a known issue with enterprise guide?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 21:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183610#M14123</guid>
      <dc:creator>deepikaj</dc:creator>
      <dc:date>2015-01-14T21:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc tranpose id numeric variable not working in enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183611#M14124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post some example data and the code used or generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And 0_12 is not a valid SAS variable name normally so, it isn't surprising that it doesn't exist.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 21:59:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183611#M14124</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-01-14T21:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc tranpose id numeric variable not working in enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183612#M14125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for response. Below is the sample code and warning. Same code works fine in SAS 9.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input id $ x aval;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; datalines;&lt;BR /&gt;1001-101 0.35 1&lt;BR /&gt;1002-103 1 2&lt;BR /&gt;1002-104 3 1&lt;BR /&gt;1003-105 5 2&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;proc transpose data=test out=test1 prefix=x;&lt;BR /&gt;by id;&lt;BR /&gt;var aval;&lt;BR /&gt;id x;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data test2(keep=id x0_35);&lt;BR /&gt; set test1;&lt;BR /&gt; run;&lt;/P&gt;&lt;P&gt;WARNING: The variable x0_35 in the DROP, KEEP, or RENAME list has never been referenced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 13:02:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183612#M14125</guid>
      <dc:creator>deepikaj</dc:creator>
      <dc:date>2015-01-15T13:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc tranpose id numeric variable not working in enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183613#M14126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look like you are using SAS/EG , and EG&amp;nbsp; use&amp;nbsp;&amp;nbsp;&amp;nbsp; options validvarname=any;&amp;nbsp;&amp;nbsp;&amp;nbsp; by default ,&lt;/P&gt;&lt;P&gt;therefore change it as&amp;nbsp; &lt;STRONG&gt;options validvarname=v7;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 14:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183613#M14126</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-01-15T14:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc tranpose id numeric variable not working in enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183614#M14127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you run Proc Contents on dataset test.&amp;nbsp; We need to know what variable name SAS DID assign to that transposed variable.&lt;/P&gt;&lt;P&gt;Is it possible that it did not include the 0?&lt;/P&gt;&lt;P&gt;proc contents data=test1 varnum ; * I like to use the varnum option to preserve the variable order ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you could control the naming convention by creating a character variable as part of your "test" dataset and then use THAT as your id variable? like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input id $ x aval;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length x_char $4 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if x &amp;lt; 1 then x_char = put(x, z4.2) ;&amp;nbsp; /* using zero-filled format */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else x_char = trim(left(x));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; datalines;&lt;BR /&gt;1001-101 0.35 1&lt;BR /&gt;1002-103 1 2&lt;BR /&gt;1002-104 3 1&lt;BR /&gt;1003-105 5 2&lt;BR /&gt;;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;proc print data=test ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;proc transpose data=test out=test1 prefix=x;&lt;BR /&gt;by id;&lt;BR /&gt;var aval;&lt;BR /&gt;id x_char;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc contents data=test1 varnum;&lt;BR /&gt;run ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 14:38:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183614#M14127</guid>
      <dc:creator>cwilson</dc:creator>
      <dc:date>2015-01-15T14:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc tranpose id numeric variable not working in enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183615#M14128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, looks like xia keshan has the correct answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 14:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183615#M14128</guid>
      <dc:creator>cwilson</dc:creator>
      <dc:date>2015-01-15T14:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: proc tranpose id numeric variable not working in enterprise guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183616#M14129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, options validvarname=v7 worked. Thank you all and specially xia keshan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 14:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/proc-tranpose-id-numeric-variable-not-working-in-enterprise/m-p/183616#M14129</guid>
      <dc:creator>deepikaj</dc:creator>
      <dc:date>2015-01-15T14:59:37Z</dc:date>
    </item>
  </channel>
</rss>

