<?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: variable names in JMP are more flexible compared to SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928038#M41674</link>
    <description>&lt;P&gt;Not really sure what your question is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS, with VALIDVARNAME=ANY you have a lot of flexibility about what variable names you can use. Better, however, if you really want SAS variables to appear with virtually any character, you should use labels in SAS when you output the results.&lt;/P&gt;</description>
    <pubDate>Sun, 12 May 2024 14:32:44 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-05-12T14:32:44Z</dc:date>
    <item>
      <title>variable names in JMP are more flexible compared to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928036#M41673</link>
      <description>&lt;P&gt;Why can I create any names of variables in JMP but I can't do that with SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="thiennguyen19x5_0-1715523547594.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96453iCF9E38B39466CC08/image-size/large?v=v2&amp;amp;px=999" role="button" title="thiennguyen19x5_0-1715523547594.png" alt="thiennguyen19x5_0-1715523547594.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 14:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928036#M41673</guid>
      <dc:creator>thiennguyen19x5</dc:creator>
      <dc:date>2024-05-12T14:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: variable names in JMP are more flexible compared to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928038#M41674</link>
      <description>&lt;P&gt;Not really sure what your question is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS, with VALIDVARNAME=ANY you have a lot of flexibility about what variable names you can use. Better, however, if you really want SAS variables to appear with virtually any character, you should use labels in SAS when you output the results.&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 14:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928038#M41674</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-05-12T14:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: variable names in JMP are more flexible compared to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928040#M41675</link>
      <description>&lt;P&gt;I mean, when I use JMP, I can type anything for a variable name (such as space, non-English language characters, etc.), but I can't do that in SAS. I know JMP also belongs to the SAS Institute. Why don't they change the rules of the SAS variable name for convenience?&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 14:38:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928040#M41675</guid>
      <dc:creator>thiennguyen19x5</dc:creator>
      <dc:date>2024-05-12T14:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: variable names in JMP are more flexible compared to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928042#M41676</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/465840"&gt;@thiennguyen19x5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I mean, when I use JMP, I can type anything for a variable name (such as space, non-English language characters, etc.), but I can't do that in SAS. I know JMP also belongs to the SAS Institute. Why don't they change the rules of the SAS variable name for convenience?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Have you tried &lt;A href="https://documentation.sas.com/doc/en/pgmmvacdc/9.4/nlsref/p124dqdk8zoqu3n1r4nsfqu5vx52.htm" target="_self"&gt;VALIDVARNAME=ANY&lt;/A&gt; in SAS? Apparently you have not despite it being mentioned; but yes, you can have spaces and foreign characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just because SAS owns both products (and owned them during the development stage of the software), there's no reason that the two have to have identical rules.&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 14:47:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928042#M41676</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-05-12T14:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: variable names in JMP are more flexible compared to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928043#M41677</link>
      <description>&lt;P&gt;I am a new SAS user; honestly, I haven't tried your method. Maybe I will soon. I am reading the book "&lt;A href="https://support.sas.com/en/books/authors/kirby-thomas.html" target="_blank"&gt;The Simple Guide to SAS: From Null to Novice&lt;/A&gt;."&lt;BR /&gt;If you aren't busy, I hope you can present your method by taking a screenshot. I am happy with your kindness. Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 14:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928043#M41677</guid>
      <dc:creator>thiennguyen19x5</dc:creator>
      <dc:date>2024-05-12T14:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: variable names in JMP are more flexible compared to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928047#M41678</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=any;
data a;
    'Á var name with-spaces ığñ'n=7;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But honestly, as I said earlier, in SAS do &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/FONT&gt; make variable names with spaces and foreign characters and special characters unless you absolutely have to. Use the standard SAS variable names, do not turn on VALIDVARNAME=ANY unless you absolutely have to. Instead use VALIDVARNAME=V7 and accept the limits on variable names. WHY? Because long variable names with special characters and foreign characters and spaces belong in SAS labels, not in the variable name. SAS has created a mechanism for your special characters and foreign characters and spaces to be displayed to users in output; that's what labels are for.&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 15:29:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928047#M41678</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-05-12T15:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: variable names in JMP are more flexible compared to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928055#M41679</link>
      <description>&lt;P&gt;I understand that code programs are generally different from point-and-click software (JMP, SPSS, Minitab, etc.). Anyway, I only need to love code; I must be adaptable to the inconvenient code program variable name rule.&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 15:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928055#M41679</guid>
      <dc:creator>thiennguyen19x5</dc:creator>
      <dc:date>2024-05-12T15:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: variable names in JMP are more flexible compared to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928058#M41680</link>
      <description>&lt;P&gt;While JMP and SAS were created by the same company, they are very separate products / languages.&amp;nbsp; JMP was released in 1989.&amp;nbsp; SAS was almost 20 years old already.&amp;nbsp; At the time, SAS variable names were limited to 8 characters long.&amp;nbsp; SAS added support for longer variable names over time, but there are probably plenty of features you'll find in JMP that are not in SAS.&amp;nbsp; The two products have different histories, and different roadmaps for the future.&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 17:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928058#M41680</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-05-12T17:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: variable names in JMP are more flexible compared to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928076#M41681</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/465840"&gt;@thiennguyen19x5&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I understand that code programs are generally different from point-and-click software (JMP, SPSS, Minitab, etc.). Anyway, I only need to love code; I must be adaptable to the inconvenient code program variable name rule.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can use variable names in SAS that don't comply with SAS naming conventions. To use them you need to reference them like: '&amp;lt;variable name&amp;gt;'n&lt;/P&gt;
&lt;P&gt;It's cumbersome to work with such non-compliant names. Such names will then also be non-compliant in many other programing languages and though will cause even more complication when exchanging data with other environments (like a database).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's normally best to use short and compliant names with a label added for display (or just as a description stored together with the variable name).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data demo;
  attrib 
    myvar 
      format=percent10.2
      label ='This is my numerical variable that displays values in percent'
    'myvar literal $'n
      length=$1
      label="This is another variable where the name doesn't comply with SAS naming conventions"
      ;          ;
  myvar=0.456;
  'myvar literal $'n='A';

run;
proc print data=demo;
run;
proc print data=demo label;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1715577983290.png" style="width: 779px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96460i21E4CC474D66D680/image-dimensions/779x148?v=v2" width="779" height="148" role="button" title="Patrick_0-1715577983290.png" alt="Patrick_0-1715577983290.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 05:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928076#M41681</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-05-13T05:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: variable names in JMP are more flexible compared to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928142#M41685</link>
      <description>&lt;P&gt;I think I have some pity for whoever inherits your code.&lt;/P&gt;
&lt;P&gt;I can just see someone spending time trying to type the name of a variable that looks like "this v▒ has null characters"n. Can you see which of the two spaces are actually null characters? Much less dealing with other special characters entered with high order ASCII (numbers above 127) where a different makes makes the name look different?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I realize that there are languages that don't do will with ASCII. But if your language doesn't require something like UNICODE and such don't complicate coding anymore than needed.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 14:40:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928142#M41685</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-13T14:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: variable names in JMP are more flexible compared to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928797#M41707</link>
      <description>&lt;P&gt;With validvarname=any i can do this without using the ugly name-literals:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.Class;
    set sashelp.class;

    rename
        Sex = Gechlecht
        Age = Alter
        Height = Größe
        Weight = Gewicht
    ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 May 2024 07:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/variable-names-in-JMP-are-more-flexible-compared-to-SAS/m-p/928797#M41707</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2024-05-17T07:39:34Z</dc:date>
    </item>
  </channel>
</rss>

