<?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 How I can change the data type from &amp;quot;continous&amp;quot; to &amp;quot;characters&amp;quot; from all the columns in current data table in one JSL sentence ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-I-can-change-the-data-type-from-quot-continous-quot-to-quot/m-p/869439#M103220</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
For each column(
	col,
	dt,
	If( col &amp;lt;&amp;lt; Get Modeling Type == "continous" &amp;amp; Contains( col &amp;lt;&amp;lt; Get Name, "Layer Count" ),
		col &amp;lt;&amp;lt; Set Data Type( Character )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I tried to ask AI, then i get some proposals, above is one sample, but it is not work. my version is JMP 18&lt;/P&gt;</description>
    <pubDate>Tue, 22 Apr 2025 09:42:35 GMT</pubDate>
    <dc:creator>Sean_ShCn0</dc:creator>
    <dc:date>2025-04-22T09:42:35Z</dc:date>
    <item>
      <title>How I can change the data type from "continous" to "characters" from all the columns in current data table in one JSL sentence ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-I-can-change-the-data-type-from-quot-continous-quot-to-quot/m-p/869439#M103220</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
For each column(
	col,
	dt,
	If( col &amp;lt;&amp;lt; Get Modeling Type == "continous" &amp;amp; Contains( col &amp;lt;&amp;lt; Get Name, "Layer Count" ),
		col &amp;lt;&amp;lt; Set Data Type( Character )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I tried to ask AI, then i get some proposals, above is one sample, but it is not work. my version is JMP 18&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 09:42:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-I-can-change-the-data-type-from-quot-continous-quot-to-quot/m-p/869439#M103220</guid>
      <dc:creator>Sean_ShCn0</dc:creator>
      <dc:date>2025-04-22T09:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: How I can change the data type from "continous" to "characters" from all the columns in current data table in one JSL sentence ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-I-can-change-the-data-type-from-quot-continous-quot-to-quot/m-p/869451#M103221</link>
      <description>&lt;P&gt;AI is quite bad with JSL, Scripting Index or using JMP to create example script is much better.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is basic example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For Each({colname}, Current Data Table() &amp;lt;&amp;lt; Get Column Names("Continuous", "String"),
	Column(Current Data Table(), colname) &amp;lt;&amp;lt; Set Data Type("Character");
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;JMP created script&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1745315607021.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75063i10F149053E237211/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1745315607021.png" alt="jthi_0-1745315607021.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1745315633594.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75064i0A910509B7C23D7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1745315633594.png" alt="jthi_1-1745315633594.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Standardize column attributes
Local({old dt = Current Data Table()},
	Current Data Table(Data Table("Big Class"));
	For Each({col, index}, {:name, :age, :sex, :height, :weight},
		col &amp;lt;&amp;lt; Set Data Type(Character(7)) &amp;lt;&amp;lt; Set Modeling Type("Nominal") &amp;lt;&amp;lt;
		Compact()
	);
	Current Data Table(old dt);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Apr 2025 09:54:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-I-can-change-the-data-type-from-quot-continous-quot-to-quot/m-p/869451#M103221</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-04-22T09:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: How I can change the data type from "continous" to "characters" from all the columns in current data table in one JSL sentence ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-I-can-change-the-data-type-from-quot-continous-quot-to-quot/m-p/869452#M103222</link>
      <description>&lt;P&gt;It works, I learn a new skill, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;KR&lt;/P&gt;
&lt;P&gt;Sean&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 10:05:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-I-can-change-the-data-type-from-quot-continous-quot-to-quot/m-p/869452#M103222</guid>
      <dc:creator>Sean_ShCn0</dc:creator>
      <dc:date>2025-04-22T10:05:31Z</dc:date>
    </item>
  </channel>
</rss>

