<?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: Comparing rows and columns with special characters in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53581#M30291</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6696"&gt;@uday_guntupalli&lt;/a&gt;&amp;nbsp;Even though I cannot provide the table, a part of what I want to achieve is to be able to parse column names. I have made up data tables which look somewhat similar. I want the below code to work for this data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt1 = data table( "Example1" );
dt2 = data table( "Example2" );
dt4 = dt2:Column 1 &amp;lt;&amp;lt; get values();
a = n rows(dt2);
For(i=1,i&amp;lt;=a,i++,
Parse("dt1:" || dt4[i]);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Mar 2018 18:56:12 GMT</pubDate>
    <dc:creator>Aam_jmp</dc:creator>
    <dc:date>2018-03-21T18:56:12Z</dc:date>
    <item>
      <title>Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53522#M30277</link>
      <description>&lt;P&gt;This might be very easy but I am new to JMP and finding it difficult to find a solution to this error.&lt;/P&gt;&lt;P&gt;Unexpected "%". Perhaps there is a missing "," or ")".&lt;/P&gt;&lt;P&gt;Scoped data table access requires a data table column or variable in access or evaluation of&amp;nbsp;dt1: Acidic Variant' , dt1:Acidic Variant /*###*/&lt;/P&gt;&lt;P&gt;I am simply comparing a row in one table with columns of the other table. It does work for row and column names which do not have special characters like % or () but I will have names which will have special characters. Can anyone point out to me how this can be handled? Any help much appreciated. Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 14:24:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53522#M30277</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-03-21T14:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53524#M30279</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11322"&gt;@Aam_jmp&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If the % symbol is part of your column name, like let us say column name is "%x", then try using Name() function to identify the column. If you could provide a sample data set and your script, we can look at it to see whats wrong&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 14:49:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53524#M30279</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-03-21T14:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53531#M30282</link>
      <description>The names are like this: Titer (%) 1, Titer(%) 2 and so forth</description>
      <pubDate>Wed, 21 Mar 2018 16:10:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53531#M30282</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-03-21T16:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53568#M30283</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11322"&gt;@Aam_jmp&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Please kindly re-read my response and try using the following sample. The Name function will be able to handlt the problem you have. I am posting a sample of the same. Unless you share your script and sample data, it is hard to see what is causing the error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" ); // Open Sample Data 

MeanWeight = Col Sum(dt:weight); // Calculate Column Mean 

dt &amp;lt;&amp;lt; New Column("% of Total Weight",Numeric,Format("Percent",10,2),Continuous,Formula(:weight/MeanWeight)); // Define New column with % in name 

dt &amp;lt;&amp;lt; New Column("Test",Numeric,Format("Percent",10,2),Formula(Col Cumulative Sum(:Name("% of Total Weight")))); // Define Test Column that demonstrates the use of Name function that can capture the column name with % in it &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this explains my suggestion a little better, if not kindly offer a little more detail so I can try and help&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 16:19:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53568#M30283</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-03-21T16:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53581#M30291</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6696"&gt;@uday_guntupalli&lt;/a&gt;&amp;nbsp;Even though I cannot provide the table, a part of what I want to achieve is to be able to parse column names. I have made up data tables which look somewhat similar. I want the below code to work for this data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt1 = data table( "Example1" );
dt2 = data table( "Example2" );
dt4 = dt2:Column 1 &amp;lt;&amp;lt; get values();
a = n rows(dt2);
For(i=1,i&amp;lt;=a,i++,
Parse("dt1:" || dt4[i]);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 18:56:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53581#M30291</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-03-21T18:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53589#M30295</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11322"&gt;@Aam_jmp&lt;/a&gt;&lt;/P&gt;&lt;PRE&gt;dt1 = data table( "Example1" );&lt;BR /&gt;&lt;BR /&gt;dt2 = data table( "Example2" );&lt;BR /&gt;&lt;BR /&gt;ColValuesEx2 = dt2:Column 1 &amp;lt;&amp;lt; Get Values; &lt;BR /&gt;&lt;BR /&gt;a = n rows(dt2);&lt;BR /&gt;&lt;BR /&gt;Res= {}; &lt;BR /&gt;&lt;BR /&gt;For(i=1,i&amp;lt;=a,i++,&lt;BR /&gt; temp = Concat("dt1:",ColValuesEx2[i]);&lt;BR /&gt; Insert Into(Res,temp);&lt;BR /&gt; );&lt;BR /&gt; &lt;BR /&gt;Show(Res);&lt;/PRE&gt;&lt;P&gt;Try this. The issue I see with what you were previously doing was, ColName does not refer to an actual column. When you try to scope into data table 2, you should refer to a column that exists in the data table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used concatenate instead of Parse and I get the result you want .&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-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/9999i72CACACE5EC9AA1A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 17:28:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53589#M30295</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-03-21T17:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53604#M30299</link>
      <description>&lt;P&gt;Why doesn't it give the output I want with using Parse even after I give the correct name of the column though? Is there a way I can parse special characters like % and ()?&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6696"&gt;@uday_guntupalli&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 19:54:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53604#M30299</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-03-21T19:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53614#M30306</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11322"&gt;@Aam_jmp&lt;/a&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; If you look at the documentation of Parse() which you may find under Help =&amp;gt; Scripting Index ==&amp;gt; Parse ,&amp;nbsp;&lt;BR /&gt;Parse by its definition is expecting&amp;nbsp; a string, however you are passing 2 arguments in your implementation and expecting them to be concatenated. This is the reason I could see why it does not work even if you provide the correct name of column. Scripting Index is your friend and use it more and more to help yourself with the syntaxes and function definitions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 20:16:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53614#M30306</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-03-21T20:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53654#M30330</link>
      <description>&lt;P&gt;Uday, thanks for the help. I am teaching myself this part. However, I was trying to accomplish putting in spec limits to a data table using another data table. I can do this smoothly if the names of columns do not have special characters. However, I am unable to handle the special chars in my data tables. One approach I tried was to find the (%) in my column names and replace them with a space. Even though it worked out, I do not think that it is the best solution to my problem. I know that I can use an addin to add spec limits but it would be good to know how I can solve this issue with jsl. Thanks for any input you could provide on this. My code is:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 = Data Table( "Example1" );
dt2 = Data Table( "Example2" );
a = N Rows( dt2 );
For( i = 1, i &amp;lt; a, i++,
	Eval(
		Substitute(
				Expr(
					__col__ &amp;lt;&amp;lt; Set Property( "Spec Limits", {LSL( _LSL_ ), USL( _USL_ ), Target( _Target ), Show Limits( 1 )} );

				),
			Expr( __col__ ), Parse( "dt1:" || dt2:ColumnName[i] ),
			Expr( _LSL_ ), dt2:LSL[i],
			Expr( _USL_ ), dt2:USL[i],
			Expr( _Target ), dt2:Target[i], 

		)

	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 15:44:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53654#M30330</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-05-02T15:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53655#M30331</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11322"&gt;@Aam_jmp&lt;/a&gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Maybe this is a helpful post you can learn something from&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Spec-limits-issue/m-p/50166.&amp;nbsp;" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Spec-limits-issue/m-p/50166.&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I am trying to understand reading through the thread what your actual question was ? It will probably help if you defined what your goal is - so the threads are easier to answer and will be beneficial for the community in general.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 14:12:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53655#M30331</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-03-22T14:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53657#M30332</link>
      <description>&lt;P&gt;Here is a modification to your script that will allow it to work.&amp;nbsp; You were heading down the correct path, you just needed to use the :Name() function in the Substitute function&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt1 = Data Table( "Example1" );
dt2 = Data Table( "Example2" );

a = N Rows( dt2 );
colNamesList = dt1 &amp;lt;&amp;lt; get column names( string );

For( i = 1, i &amp;lt; a, i++,
	Eval(
		Substitute(
				Expr(
					If( Try( __col__ &amp;lt;&amp;lt; get name, "" ) != "",
						__col__ &amp;lt;&amp;lt; Set Property(
							"Spec Limits",
							{LSL( _LSL_ ), USL( _USL_ ), Target( _Target ), Show Limits( 1 )}
						)
					)
				),
			Expr( __col__ ), Parse( "dt1:Name(\!"" || Column( dt2, "ColumnName" )[i] || "\!")" ),
			Expr( _LSL_ ), dt2:LSL[i],
			Expr( _USL_ ), dt2:USL[i],
			Expr( _Target ), dt2:Target[i], 

		)

	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also, I added in a check to make sure the column is found in the target data table, so the script does not error out, and stop processing before all records are processed.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 14:44:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53657#M30332</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-22T14:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53659#M30334</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;This really worked like a charm. However, can you help me understand what this part does? I tried using the name function but couldn't make it to work. Again, thanks a lot for your help.&lt;/P&gt;&lt;PRE class=" language-jsl"&gt;&lt;CODE class="  language-jsl"&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"dt1:Name(\!"&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;" || Column( dt2, "&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ColumnName&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;" )[i] || "&lt;/SPAN&gt;\&lt;SPAN class="token operator"&gt;!&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;")"&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 15:05:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53659#M30334</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-03-22T15:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53669#M30337</link>
      <description>&lt;P&gt;The issue is a common one when writing JSL.....you have special characters in your column names.&amp;nbsp; So, for example, your column name could be&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;A+B&lt;/P&gt;
&lt;P&gt;and what you are attempting to do, is to set a column property....in this case, Spec Limits.&amp;nbsp; So if the command is directly written out, it would look like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:A+B &amp;lt;&amp;lt; Set Property( "Spec Limits", { LSL( 22 ), USL( 55 ), show limits( 1 ) } );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;JSL will not like this, because it will interpret this as a column named "A" which you are adding the value from a variable name "B", and then applying the Set Property to it.&amp;nbsp; JSL would just throw an error.&lt;/P&gt;
&lt;P&gt;So, the solution is to use the :Name() function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;:Name("A+B") &amp;lt;&amp;lt; Set Property( "Spec Limits", { LSL( 22 ), USL( 55 ), show limits( 1 ) } );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will force JSL to interpret A+B as a column name.&amp;nbsp; Now, to make this even more precise, if we add a pointer to a data table to the front of this, it will ensure that not only is it pointing to a specific column, it is pointing to a specific column in a specific data table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 = data table("..........");
dt1:Name( "A+B" ) &amp;lt;&amp;lt; Set Property( "Spec Limits", { LSL( 22 ), USL( 55 ), show limits( 1 ) } );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now to your specific question:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;( "dt1:Name(\!"" || Column( dt2, "ColumnName" )[i] || "\!")" )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It really needs to be looked at in a more complete form&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Parse( "dt1:Name(\!"" || Column( dt2, "ColumnName" )[i] || "\!")" ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We need to always examine JSL, from the inside out.&amp;nbsp; Therefore, lets say that&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;i = 2;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and that the value of the second row in data table dt2 for a variable named ColumnName is A+B.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Column( dt2, "ColumnName" )[i] = "A+B"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So now the JSL code is resolved to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Parse( "dt1:Name(\!"" || "A+B" || "\!")" ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The next operation is simply the contatenating of 3 strings into one string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"dt1:Name(\!""&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"A+B"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"\!")"&lt;/P&gt;
&lt;P&gt;It may look like there are too many double quotes in string one and string 3.&amp;nbsp; But in JSL, \! is an escape character, indicating that the character following it is to be treated differently.&amp;nbsp; \!n is treated as a Linefeed character, and in our example, \!" is treated as an embedded double quote.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So once the concatenation is complete, the JSL looks like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Parse( "dt1:Name(\!"A+B\!")" ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The final step is the resulting action of the Parse() function.&amp;nbsp; It will parse the string, and get it ready for execution.&amp;nbsp; In our case it simply means that it will remove the outer double quotes, and resolve the \!" down to a simple double quote, leaving it with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1:Name("A+B")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is the exact form of what is required as the syntax for referencing a column that has special characters in its name&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1:Name( "A+B" ) &amp;lt;&amp;lt; Set Property( "Spec Limits", { LSL( 22 ), USL( 55 ), show limits( 1 ) } );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 16:29:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53669#M30337</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-22T16:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53674#M30338</link>
      <description>&lt;P&gt;Thanks a ton for the explanation.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 17:20:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53674#M30338</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-03-22T17:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53867#M30428</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt; , Is it possible to add spec limits to a data table if the rows are not in the same order as columns? For example,&lt;/P&gt;&lt;P&gt;the table Example1 will be the same as it is, but the table Example2 will be:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example2.PNG" style="width: 554px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/10088iA36D1442A27FE0F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="example2.PNG" alt="example2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this? Thank you for any input.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 19:11:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53867#M30428</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-03-26T19:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53869#M30430</link>
      <description>&lt;P&gt;The script reads through the limits table, row by row.&amp;nbsp; It then gets the column name from whatever row it is currently on, and applies the limits to the data table column by Column Name, not column number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, the order of the coumns in the data table is not important&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 19:40:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53869#M30430</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-26T19:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53873#M30432</link>
      <description>&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;, but when I run the script against the changed table, the spec limits do not get entered into the "Acidic Variants" column.</description>
      <pubDate>Mon, 26 Mar 2018 19:52:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53873#M30432</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-03-26T19:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53874#M30433</link>
      <description>&lt;P&gt;Then I suspect there is a difference in the column name, and the name in the limits data table&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 20:11:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53874#M30433</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-26T20:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53879#M30437</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;thank you for responding so promptly.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 20:49:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53879#M30437</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-03-26T20:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing rows and columns with special characters</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53881#M30439</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;I realized that it only doesn't take the spec limits from the last row of example2. I still do not know why, but I will update if I find out.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 21:00:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-rows-and-columns-with-special-characters/m-p/53881#M30439</guid>
      <dc:creator>Aam_jmp</dc:creator>
      <dc:date>2018-03-26T21:00:26Z</dc:date>
    </item>
  </channel>
</rss>

