<?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: Enhanced Log - n added after &amp;quot;column name&amp;quot; in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/425864#M67540</link>
    <description>&lt;P&gt;JMP does not know how you are going to use the column names.&amp;nbsp; So it is playing it safe, in that when it comes across a column name that "could" be confusing, it converts to the :xxxxxxx"n format.&amp;nbsp; And in turn, it is wise for you to use it when you see that it might be confusing, even if is some cases, you might get away without a problem.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Oct 2021 23:51:55 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-10-12T23:51:55Z</dc:date>
    <item>
      <title>Enhanced Log - n added after "column name"</title>
      <link>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/425783#M67526</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In utilizing the Enhanced log with data tables that have long, descriptive column names, the output is placing a "n" after the variable name as shown in some examples below.&amp;nbsp; Normally, the "n" isn't produced when the column name is short and doesn't include non-alphabetical characters such as &amp;amp; or ,.&amp;nbsp; While the Enhanced Log code will run with these additional characters, I'd like to better understand why the "n" is produced and whether I should keep them as part of my code or remove them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Select where
Data Table( "PESD Stationary, Envidas SQL Data Table, 1-Min" ) &amp;lt;&amp;lt;
Select where( :"Ambient NOx, N500 Status"n == 31 );


// Subset data table
Data Table( "PESD Stationary, Envidas SQL Data Table, 1-Min" ) &amp;lt;&amp;lt; Subset(
	Selected Rows( 1 ),
	columns(
		:"Date &amp;amp; Time"n, :Date, :Day of Year, :"Ambient NO, N500 (ppb)"n,
		:"Ambient NO, N500 Status"n, :"Ambient NO2, N500 (ppb)"n,
		:"Ambient NO2, N500 Status"n, :"Ambient NOx, N500 (ppb)"n,
		:"Ambient NOx, N500 Status"n
	)
);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:02:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/425783#M67526</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2023-06-09T18:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Log - n added after "column name"</title>
      <link>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/425800#M67529</link>
      <description>&lt;P&gt;The "xxxxxxx"n version of the column name is produced when JMP determines that if the actual column name will not parse correctly in open code.&amp;nbsp; The easiest way to demonstrate this, is with the following example.&lt;/P&gt;
&lt;P&gt;If a variable is named "X-Y" and one wants to create a new variable using that column, and with it, add it to the variable Z, the JSL would be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;newVar = X - Y + Z;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;JMP would be looking for a variable named X, a variable named Y and a variable named&amp;nbsp; Z.&amp;nbsp; Basically, JMP would get confused.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;newVar = "X - Y"n + Z;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;clarifies the situation.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 18:35:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/425800#M67529</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-10-12T18:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Log - n added after "column name"</title>
      <link>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/425855#M67539</link>
      <description>&lt;P&gt;Not sure I completely understand given that I'm scoping my column names such as :"Column Name, Column Units".&amp;nbsp; With the column scoping ( : ) I would think JMP wouldn't get confused whether I was working with a variable vs a column name.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 23:08:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/425855#M67539</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2021-10-12T23:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Log - n added after "column name"</title>
      <link>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/425864#M67540</link>
      <description>&lt;P&gt;JMP does not know how you are going to use the column names.&amp;nbsp; So it is playing it safe, in that when it comes across a column name that "could" be confusing, it converts to the :xxxxxxx"n format.&amp;nbsp; And in turn, it is wise for you to use it when you see that it might be confusing, even if is some cases, you might get away without a problem.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 23:51:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/425864#M67540</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-10-12T23:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Log - n added after "column name"</title>
      <link>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/425896#M67544</link>
      <description>&lt;P&gt;In addition to txnelson's explanation, here is one link related to "col name"n syntax as you might see Name() syntax in older scripts&amp;nbsp;&lt;A href="https://community.jmp.com/t5/JMPer-Cable/Deprecating-the-Name-parser-directive-in-JMP-16/ba-p/374401" target="_blank" rel="noopener"&gt;Deprecating the Name() parser directive in JMP 16&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/16.0/?os=win&amp;amp;source=application&amp;amp;utm_source=helpmenu&amp;amp;utm_medium=application#page/jmp/names.shtml" target="_self"&gt;JMP Help - Scripting Guide - Names&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 04:46:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/425896#M67544</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-10-13T04:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Log - n added after "column name"</title>
      <link>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/426093#M67571</link>
      <description>&lt;P&gt;Thanks txnelson and jthi for your input,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ironically, after reading txnelson's latest reply and digging around some more on the Discussion board, I stumbled on the following link in which jthi described the deprecation of the Name() parser (&lt;A href="https://community.jmp.com/t5/Discussions/Using-new-Name-nomenclature-with-variable/m-p/365431" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Using-new-Name-nomenclature-with-variable/m-p/365431&lt;/A&gt;).&amp;nbsp; Sorry to have missed that subtle adjustment in the switch from version 15 to 16. Thanks folks for helping resolve this.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 15:26:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/426093#M67571</guid>
      <dc:creator>terapin</dc:creator>
      <dc:date>2021-10-13T15:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Log - n added after "column name"</title>
      <link>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/627455#M82598</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;could you please help me convert the list below into another list? I cannot replace " with \!" code easily. I was stuck here, thank you so much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="jsl"&gt;factors = {"Kilometer (kg)"n, "Temperature (ºC)"n};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;factors = {\!"Kilometer (kg)\!"n, \!"Temperature (ºC)\!"n};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The reason to convert the list because once I pick the items from factors and tried to combine with other string, the " and n disappeared, which caused trouble for my code. If I can have the second list, it won't have any problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;LI-CODE lang="jsl"&gt;factors = {"Kilometer (kg)"n, "Temperature (ºC)"n};
responses_sim = "";
values = {1.23,2.34};
for (i=1, i&amp;lt;=N Items(factors), i++,
	responses_sim = responses_sim || factors[i] || "&amp;lt;&amp;lt; Add Random Noise(" || char(values[i]) || "),"
);

show(responses_sim);

responses_sim = "Kilometer (kg)&amp;lt;&amp;lt; Add Random Noise(1.23),Temperature (ºC)&amp;lt;&amp;lt; Add Random Noise(2.34),";
I want to get this result below, how to do it?
responses_sim = "Kilometer (kg)"n &amp;lt;&amp;lt; Add Random Noise(1.23), "Temperature (ºC)"n &amp;lt;&amp;lt; Add Random Noise(2.34),"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Apr 2023 22:23:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/627455#M82598</guid>
      <dc:creator>lazzybug</dc:creator>
      <dc:date>2023-04-28T22:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Log - n added after "column name"</title>
      <link>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/627487#M82601</link>
      <description>&lt;P&gt;I would most likely try to build this without using strings (depending what you are doing), but:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

factors = {"Kilometer (kg)"n, "Temperature (ºC)"n};
responses_sim = "";
values = {1.23,2.34};

for (i=1, i&amp;lt;=N Items(factors), i++,
	responses_sim = responses_sim || Eval Insert("\[^factors[i]^ &amp;lt;&amp;lt; Add Random Noise(^values[i]^),]\");
);
responses_sim ||= "\!"";

write(responses_sim);
//show(responses_sim);
//responses_sim = "Kilometer (kg)"n &amp;lt;&amp;lt; Add Random Noise(1.23), "Temperature (ºC)"n &amp;lt;&amp;lt; Add Random Noise(2.34),"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 29 Apr 2023 08:39:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/627487#M82601</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-04-29T08:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Enhanced Log - n added after "column name"</title>
      <link>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/627668#M82614</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Thank you so much for your help. I will use this script to simulate responses automatically&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 16:05:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Enhanced-Log-n-added-after-quot-column-name-quot/m-p/627668#M82614</guid>
      <dc:creator>lazzybug</dc:creator>
      <dc:date>2023-05-01T16:05:47Z</dc:date>
    </item>
  </channel>
</rss>

