<?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: How to automatically write code containing /**/ to JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-automatically-write-code-containing-to-JSL/m-p/769413#M95004</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Looks like it has to be this way&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-06-30_18-33-07.png" style="width: 647px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65735iB748946BEDAF6E21/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-06-30_18-33-07.png" alt="2024-06-30_18-33-07.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Jun 2024 10:36:07 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2024-06-30T10:36:07Z</dc:date>
    <item>
      <title>How to automatically write code containing /**/ to JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-automatically-write-code-containing-to-JSL/m-p/769399#M95001</link>
      <description>&lt;P&gt;For example, I use the following JSL to automatically generate a table script file in a data table.&lt;BR /&gt;But how to write the code containing /**/ into the script file of this table?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Open("$SAMPLE_DATA/Big Class.jmp");
Eval(Parse("dt&amp;lt;&amp;lt;new script(\!"test\!",  dt&amp;lt;&amp;lt;Select Where(age==12);d3=dt&amp;lt;&amp;lt;Subset(Output Table(\!"age12\!"),Selected Rows(1),selected columns(0));try(d3&amp;lt;&amp;lt;Delete Table Property(\!"Source\!"));  );"));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-06-30_17-35-05.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65733i121220B0E90FECC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-06-30_17-35-05.png" alt="2024-06-30_17-35-05.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;For example, insert code like /**/&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
Eval(
	Parse(
		"dt&amp;lt;&amp;lt;new script(\!"test\!",  dt&amp;lt;&amp;lt;Select Where(age==12);d3=dt&amp;lt;&amp;lt;Subset(Output Table(\!"age12\!"),Selected Rows(1),selected columns(0));try(d3&amp;lt;&amp;lt;Delete Table Property(\!"Source\!")); /*d3&amp;lt;&amp;lt;Sort(By( height ),Order(Descending),replace table);*/ );"	
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 30 Jun 2024 09:47:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-automatically-write-code-containing-to-JSL/m-p/769399#M95001</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-06-30T09:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically write code containing /**/ to JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-automatically-write-code-containing-to-JSL/m-p/769410#M95002</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Achieve the effect&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-06-30_17-48-47.png" style="width: 882px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65734i57C63CC51678AC53/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-06-30_17-48-47.png" alt="2024-06-30_17-48-47.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 09:49:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-automatically-write-code-containing-to-JSL/m-p/769410#M95002</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-06-30T09:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically write code containing /**/ to JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-automatically-write-code-containing-to-JSL/m-p/769411#M95003</link>
      <description>&lt;P&gt;I'm not sure if this is directly possible, but you can use workaround combining Eval(Parse(JSL Quote)))&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

dt &amp;lt;&amp;lt; New Script("Test",
	Eval(Parse(JSL Quote(
		/*
			Current Data Table() &amp;lt;&amp;lt; Sort By(:height);
		*/
		show(1);
	)));
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;LI-MESSAGE title="How to keep formatting and comments with New Script () ?" uid="243328" url="https://community.jmp.com/t5/Discussions/How-to-keep-formatting-and-comments-with-New-Script/m-p/243328#U243328" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Preserve comments and whitespace in JSL code attached to data table" uid="109885" url="https://community.jmp.com/t5/JMP-Wish-List/Preserve-comments-and-whitespace-in-JSL-code-attached-to-data/m-p/109885#U109885" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 09:58:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-automatically-write-code-containing-to-JSL/m-p/769411#M95003</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-30T09:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to automatically write code containing /**/ to JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-automatically-write-code-containing-to-JSL/m-p/769413#M95004</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Looks like it has to be this way&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-06-30_18-33-07.png" style="width: 647px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65735iB748946BEDAF6E21/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-06-30_18-33-07.png" alt="2024-06-30_18-33-07.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2024 10:36:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-automatically-write-code-containing-to-JSL/m-p/769413#M95004</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-06-30T10:36:07Z</dc:date>
    </item>
  </channel>
</rss>

