<?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: Remove {&amp;quot; &amp;quot;} from the outside of a string in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/73264#M35727</link>
    <description>&lt;P&gt;It appears that your column that you have nemed "Column" has list values saved in it.&amp;nbsp; That wouls account for the {} in your variable called ::GlobalVariable.&amp;nbsp; And that inside the list definition, there is a string element, which is where the "" are coming from.&amp;nbsp; I am assuming that you did not intend for the values within :Column to be this.&amp;nbsp; So I would look to see where the values are coming from, rather than trying to delete them after the fact.&amp;nbsp; But if that is not possible, I would use the Word function if the value has {""} imbedded in a string, or if it is actually being returned as a true list, then you can simply specify a subscript to get rid of the list component.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;::GlobalVariable = word(1,:Column[RowNumber],"{}");
// or
::GlobalVariable = :Column[RowNumber][1];
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Sep 2018 15:49:33 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-09-17T15:49:33Z</dc:date>
    <item>
      <title>Remove {" "} from the outside of a string</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/73248#M35723</link>
      <description>&lt;P&gt;I am trying to extract a value out of a table using the following JSL:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;::GlobalVariable= :Column[RowNumber]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, my output for ::GlobalVariable has unwanted {" "} around it. How do I remove this/prevent this from happening? Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:25:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/73248#M35723</guid>
      <dc:creator>twillkickers</dc:creator>
      <dc:date>2023-06-09T23:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove {" "} from the outside of a string</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/73264#M35727</link>
      <description>&lt;P&gt;It appears that your column that you have nemed "Column" has list values saved in it.&amp;nbsp; That wouls account for the {} in your variable called ::GlobalVariable.&amp;nbsp; And that inside the list definition, there is a string element, which is where the "" are coming from.&amp;nbsp; I am assuming that you did not intend for the values within :Column to be this.&amp;nbsp; So I would look to see where the values are coming from, rather than trying to delete them after the fact.&amp;nbsp; But if that is not possible, I would use the Word function if the value has {""} imbedded in a string, or if it is actually being returned as a true list, then you can simply specify a subscript to get rid of the list component.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;::GlobalVariable = word(1,:Column[RowNumber],"{}");
// or
::GlobalVariable = :Column[RowNumber][1];
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 15:49:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/73264#M35727</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-09-17T15:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove {" "} from the outside of a string</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82826#M37317</link>
      <description>&lt;P&gt;I am facing the same problem with slight variation. I combine 2 columns and get the values of resulting column as a list.&lt;BR /&gt;I then assign this list to a cell.When I do so,the output is {"100@boiling","0@melting"}.&lt;BR /&gt;I need to remove {" "}.How can I do this?&lt;BR /&gt;&lt;BR /&gt;Below is my code-&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Combine temperature and process step columns to get test temperature
dtCombined = dtSorted &amp;lt;&amp;lt; Combine Columns(
delimiter( "@" ),
Columns(
:Temperature,
:process
),
//Selected Columns are Indicator Columns( 1 ),
Column Name( "Process_Temperature" )
);



unique_vals = {};
unique_vals = Associative Array(dtSorted:Process_Temperature) &amp;lt;&amp;lt; Get Keys;
Column(dtemplate,"Value")[30] = Char(unique_vals) ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Nov 2018 18:15:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82826#M37317</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2018-11-08T18:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Remove {" "} from the outside of a string</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82827#M37318</link>
      <description>I am able to remove {} using the solution mentioned above.But I need to take the " " (quotes) out as well.&lt;BR /&gt;Any help is appreciated.</description>
      <pubDate>Thu, 08 Nov 2018 01:18:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82827#M37318</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2018-11-08T01:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Remove {" "} from the outside of a string</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82828#M37319</link>
      <description>&lt;P&gt;you can use the parse() funcction to do that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x="zippy"; show(parse(x))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Nov 2018 02:30:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82828#M37319</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-11-08T02:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Remove {" "} from the outside of a string</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82837#M37320</link>
      <description>&lt;P&gt;My list is {"100@boiling","0@melting"}.&lt;/P&gt;&lt;P&gt;I first used word function to remove {} which works fine.&lt;/P&gt;&lt;P&gt;But when I do parse(),I see an error -&lt;/P&gt;&lt;P&gt;Unexpected ",". Perhaps there is a missing ";" or ",".&lt;BR /&gt;Line 1 Column 7:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The remaining text that was ignored was&lt;BR /&gt;-----&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 03:56:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82837#M37320</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2018-11-08T03:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Remove {" "} from the outside of a string</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82843#M37323</link>
      <description>&lt;P&gt;Since the data is in a data table, the following should work:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = New Table( "Untitled 8",
	Add Rows( 1 ),
	New Column( "Column 1",
		Character,
		"Nominal",
		Set Values( {"{\!"100@boiling\!",\!"0@melting\!"}"} )
	)
);

dt &amp;lt;&amp;lt; New Column( "converted", character );

dt:converted[1] = Word( 2, dt:column 1[1], "\!"" ) || "," ||
Word( 4, dt:column 1[1], "\!"" ); &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="convert.PNG" style="width: 564px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/14272iB1875D703F3038D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="convert.PNG" alt="convert.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Nov 2018 04:34:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82843#M37323</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-11-08T04:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove {" "} from the outside of a string</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82868#M37336</link>
      <description>&lt;P&gt;It's a little cleaner with concat items.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Test", Add Rows( 1 ),
	New Column( "Column 1", Character, "Nominal",
		Set Values( {"{\!"100@boiling\!",\!"0@melting\!"}"} )
	),
	New Column( "Column 2", Character, "Nominal",
		Formula(
			one_list = Eval( Parse( :Column 1 ) );
			Concat Items( one_list, "," );
		),
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Nov 2018 16:30:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82868#M37336</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-11-08T16:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Remove {" "} from the outside of a string</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82895#M37349</link>
      <description>&lt;P&gt;You can also use &lt;STRONG&gt;substitute&lt;/STRONG&gt; to remove {} and ".&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Test", Add Rows( 1 ),
	New Column( "Column 1", Character, "Nominal",
		Set Values( {"{\!"100@boiling\!",\!"0@melting\!"}"} )
	),
	New Column( "Column 2", Character, "Nominal",
		Formula( Substitute( :Column 1, "{", "", "}", "", "\!"", "" ) ),
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Nov 2018 20:40:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/82895#M37349</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-11-08T20:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Remove {" "} from the outside of a string</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/83326#M37487</link>
      <description>&lt;P&gt;Thanks.This works!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 18:39:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-quot-quot-from-the-outside-of-a-string/m-p/83326#M37487</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2018-11-14T18:39:45Z</dc:date>
    </item>
  </channel>
</rss>

