<?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 passing variable with doble quoate &amp;quot;&amp;quot; in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/passing-variable-with-doble-quoate-quot-quot/m-p/210695#M42173</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;i have written a&amp;nbsp;script &amp;nbsp;in jsl where i have defined a variable and&amp;nbsp;passing it through&amp;nbsp;my logic. Since my defined variable contains&amp;nbsp; double quote " ", jsl is throwing an error ,it says unexpected "2", perhaps there is missing ";" or ",". I am very new to jsl. can anyone help me in that.&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2019 09:00:08 GMT</pubDate>
    <dc:creator>dilipkumar</dc:creator>
    <dc:date>2019-05-27T09:00:08Z</dc:date>
    <item>
      <title>passing variable with doble quoate ""</title>
      <link>https://community.jmp.com/t5/Discussions/passing-variable-with-doble-quoate-quot-quot/m-p/210695#M42173</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;i have written a&amp;nbsp;script &amp;nbsp;in jsl where i have defined a variable and&amp;nbsp;passing it through&amp;nbsp;my logic. Since my defined variable contains&amp;nbsp; double quote " ", jsl is throwing an error ,it says unexpected "2", perhaps there is missing ";" or ",". I am very new to jsl. can anyone help me in that.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 09:00:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/passing-variable-with-doble-quoate-quot-quot/m-p/210695#M42173</guid>
      <dc:creator>dilipkumar</dc:creator>
      <dc:date>2019-05-27T09:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: passing variable with doble quoate ""</title>
      <link>https://community.jmp.com/t5/Discussions/passing-variable-with-doble-quoate-quot-quot/m-p/210705#M42174</link>
      <description>&lt;P&gt;You need to use the :Name() function to precisely specify columns with special characters in them&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

New Table( "Example",
	Add Rows( 10 ),
	New Column( "test\!" of quote",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [40, 26, 27, 36, 39, 19, 25, 9, 7, 30] )
	)
);

Distribution(
	Continuous Distribution( Column( :Name( "test\!" of quote" ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 May 2019 09:59:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/passing-variable-with-doble-quoate-quot-quot/m-p/210705#M42174</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-05-27T09:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: passing variable with doble quoate ""</title>
      <link>https://community.jmp.com/t5/Discussions/passing-variable-with-doble-quoate-quot-quot/m-p/210709#M42176</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;i think you didnot get my question right.&lt;/P&gt;&lt;P&gt;Actually i have defined a input variable ( say x=abc) which i am trying to pass through a logic where for the same variable i will be getting data extracted from SQL database. Problem i am &amp;nbsp;facing&amp;nbsp; is,&amp;nbsp;if i am changing the input to double quoted value , jsl is throwing this error -jsl is throwing an error ,it says unexpected "2", perhaps there is missing ";" or ","&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the example on the same&lt;/P&gt;&lt;P&gt;//Create Database Connection&lt;BR /&gt;dbc = Create Database Connection(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XXX);&lt;/P&gt;&lt;P&gt;SLNo = " ABC1"2'";&lt;/P&gt;&lt;P&gt;sqlQuery = "execute [dbo].[XXX] @SLNo = '" || SLNo || "'";&lt;/P&gt;&lt;P&gt;Error msg : &lt;STRONG&gt;jsl is throwing an error ,it says unexpected "2", perhaps there is missing ";" or ","&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Question is what shouild i do if&amp;nbsp;SLNo data is in double Quote format. it is working fine without double quoted inputs.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 10:59:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/passing-variable-with-doble-quoate-quot-quot/m-p/210709#M42176</guid>
      <dc:creator>dilipkumar</dc:creator>
      <dc:date>2019-05-27T10:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: passing variable with doble quoate ""</title>
      <link>https://community.jmp.com/t5/Discussions/passing-variable-with-doble-quoate-quot-quot/m-p/210710#M42177</link>
      <description>&lt;P&gt;To embedd a double quote (") in a string you will need to use the JSL escape character string to indicate to JSL how to parse the character.&amp;nbsp; The JSL escape character pattern is \!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;SLNo = " ABC1\!"2'";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 May 2019 11:07:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/passing-variable-with-doble-quoate-quot-quot/m-p/210710#M42177</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-05-27T11:07:19Z</dc:date>
    </item>
  </channel>
</rss>

