<?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: Column() vs As Column() vs datable:column vs dt:As name(&amp;quot;column&amp;quot;) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542581#M76198</link>
    <description>&lt;P&gt;I don't usually like +1 posts, but&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;this is the exact same methodology I do for production scripts.&amp;nbsp; I usually think about it like&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 );
dt = open("$SAMPLE_DATA\Big Class.jmp");
col_name = "age";
show(ismissing(AsColumn(dt, col_name)) &amp;amp; ismissing(dt:age)); // these are both the same as far as I know
cols = dt &amp;lt;&amp;lt; get column references; // these are the actual references
show(cols[2] == Column(dt, col_name)); // these are references&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 20:09:58 GMT</pubDate>
    <dc:creator>vince_faller</dc:creator>
    <dc:date>2022-09-08T20:09:58Z</dc:date>
    <item>
      <title>Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542062#M76172</link>
      <description>&lt;P&gt;JSL has several ways to refer to columns. Let's open a data table first.&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 );
dt = Open( "$SAMPLE_DATA/Bands data.jmp" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now we create a table script that has something like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();

print(dt:timestamp == Column(dt, "timestamp")); 
// 0

print(Column(dt, "timestamp")==As Column(dt, "timestamp")); 
//0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In automated scripts (for example, a graph), when a user changes the name of a column, it seems to adapt the script to the new column name. This failed in custom JSL, with something like Index() appearing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How one would use all of these methods to make a JSL script robust to column name changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 15:58:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542062#M76172</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2023-06-09T15:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542085#M76175</link>
      <description>&lt;P&gt;Either index the column by numer column(dt, 1) or prompt the user to select a column or enter a column name. Look into New Window() in the help files.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 09:51:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542085#M76175</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2022-09-08T09:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542154#M76179</link>
      <description>&lt;P&gt;How would &lt;EM&gt;you&lt;/EM&gt; know which column the script should reference?&amp;nbsp; If you really need to monitor for column name changes you could do that by subscribing to changes in the table and recording those column names somewhere, but I think that would be pretty complex.&amp;nbsp; Could you instead define a column property and search for that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Subscribe example from Scripting Guide:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
f = Function( {dtab, col, oldname},
	Print( dtab &amp;lt;&amp;lt; getname() );
	Print( "new column name", (col &amp;lt;&amp;lt; getname()) );
	Print( "old name", oldname );
);
sub = dt &amp;lt;&amp;lt; Subscribe( "", OnRenameColumn( f ) );
Column( dt, 1 ) &amp;lt;&amp;lt; set name( "test" );
Wait( 1 );
dt &amp;lt;&amp;lt; unsubscribe( sub, on rename column );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Use column property&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:height &amp;lt;&amp;lt; Set Property( "My Script Identifier", X );

XVar = Filter Each({c}, dt &amp;lt;&amp;lt; Get Column References,
	ident = char(c &amp;lt;&amp;lt; Get Property( "My Script Identifier" ));
	if( is empty(ident), 0, ident == "X", 1, 0)
)[1];&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Sep 2022 12:58:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542154#M76179</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2022-09-08T12:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542299#M76189</link>
      <description>&lt;P&gt;you mean something like this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After running the code, the first two entries in the TABLE SCRIPT were automatically changed to the new name *)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Same behavior for any graph etc. : everything gets automatically adjusted to the new column name.&lt;BR /&gt;so cool!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But for As column() and Column() it didn't work.&lt;/P&gt;&lt;P&gt;Neither did it for any&amp;nbsp;column name in a script that is NOT stored as a table script ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6342092067112w1148h540r915" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6342092067112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6342092067112w1148h540r915');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6342092067112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&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" );
dt &amp;lt;&amp;lt; New Script(
	"script",
	:name;
	:"name"n; // TS-00076655&lt;BR /&gt;	As Column( "name" );
	Column("name");
);
dt:name &amp;lt;&amp;lt; Set Name( "name_2" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 19:46:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542299#M76189</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-30T19:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542343#M76192</link>
      <description>&lt;P&gt;This is a bit long post and jumping here and there, sorry about that..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As Column(), Column(), :colname, ...&amp;nbsp; isn't simple in JSL and which to use depends on the case. My preferred method is to &lt;STRONG&gt;always &lt;/STRONG&gt;use (except when I cannot or if I want a bit cleaner look in script) Column(datatable_reference, "string of the name of the column"). :colname does have it's benefits which can be sometimes used for scripters benefit (some are mentioned here &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/rules-for-resolving-names.shtml" target="_blank" rel="noopener"&gt; Scripting Guide &amp;gt; JSL Building Blocks &amp;gt; Rules for Name Resolution &amp;gt; Rules for Resolving Names&lt;/A&gt; in Exceptions section).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also like to use strings of column names instead of :colname syntax to avoid some issues that might happen here and there. For example &amp;lt;&amp;lt; Get Column Names("String") instead of just&amp;nbsp;&amp;lt;&amp;lt; Get Column Names() and then I get the reference with Column(string) if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/row-functions-2.shtml?os=win&amp;amp;source=application#ww4974567" target="_blank" rel="noopener"&gt;Column(&amp;lt;dt&amp;gt;, "name", "formatted")&lt;/A&gt;&amp;nbsp; and &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/programming-functions.shtml?os=win&amp;amp;source=application#ww5006506" target="_blank" rel="noopener"&gt;As Column(name)&lt;/A&gt; are not same. Column() returns you a reference to column and As Column "accesses" a column (what this means depends on the case...). When you first run this script dt:timestamp will return missing value, as the Row() hasn't been properly defined for JMP's indexing (it is initialized as 0).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
//Row() = 0;
Show(Row(), dt:name, Column(dt, "name"), As Column(dt, "name"));
Row() = 1;
Show(Row(), dt:name, Column(dt, "name"), As Column(dt, "name"), Column(dt, "name")[], Column(dt, "name")[Row()]);

Print(dt:name == Column(dt, "name")); 
// 0

Print(Column(dt, "name") == As Column(dt, "name")); 
//0

Print(dt:name == As Column(dt, "name"));
//1

stop();

// 
Show(Column("name") &amp;lt;&amp;lt; get values);
Show(As Column("name") &amp;lt;&amp;lt; get values);
Show(:name &amp;lt;&amp;lt; get values);

stop();

col1 = "name";
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(529, 466),
	Show Control Panel(0),
	Variables(X(col1), Y(:height)),
	Elements(Points(X, Y, Legend(6)))
);

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(529, 466),
	Show Control Panel(0),
	Variables(X(Eval(col1)), Y(:height)),
	Elements(Points(X, Y, Legend(6)))
);

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(529, 466),
	Show Control Panel(0),
	Variables(X(As Column(col1)), Y(:height)),
	Elements(Points(X, Y, Legend(6)))
);

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(529, 466),
	Show Control Panel(0),
	Variables(X(Column(col1)), Y(:height)),
	Elements(Points(X, Y, Legend(6)))
);

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(529, 466),
	Show Control Panel(0),
	Variables(X(Column(dt, col1)), Y(:height)),
	Elements(Points(X, Y, Legend(6)))
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6657"&gt;@ih&lt;/a&gt; has some good suggestions on how to manage name changes in columns. Also when inserting columns to for example Graph Builder, you can use &lt;LI-MESSAGE title="Insert one expression into another using Eval Insert, Eval Expr, Parse, and Substitute" uid="48998" url="https://community.jmp.com/t5/JSL-Cookbook/Insert-one-expression-into-another-using-Eval-Insert-Eval-Expr/m-p/48998#U48998" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt; and sometimes Eval().&amp;nbsp; &amp;lt;&amp;lt; Get Name can also be helpful from time to time or building user interface with Filter Col Selector / Col List Box for example (like &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/92"&gt;@pauldeen&lt;/a&gt; suggested).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 17:20:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542343#M76192</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-08T17:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542581#M76198</link>
      <description>&lt;P&gt;I don't usually like +1 posts, but&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;this is the exact same methodology I do for production scripts.&amp;nbsp; I usually think about it like&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 );
dt = open("$SAMPLE_DATA\Big Class.jmp");
col_name = "age";
show(ismissing(AsColumn(dt, col_name)) &amp;amp; ismissing(dt:age)); // these are both the same as far as I know
cols = dt &amp;lt;&amp;lt; get column references; // these are the actual references
show(cols[2] == Column(dt, col_name)); // these are references&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 20:09:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542581#M76198</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2022-09-08T20:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542806#M76212</link>
      <description>&lt;P&gt;Could you please include in your answer a reference that explains this bit?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"As Column() "accesses" a column (&lt;STRONG&gt;what this means depends on the case...&lt;/STRONG&gt;)."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 10:53:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542806#M76212</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2022-09-09T10:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542946#M76217</link>
      <description>&lt;P&gt;Best reference (outside of my own experience and lots and lots of trial and error) is from scripting index:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1662735794267.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45345iE7BD95F9FEA4D932/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1662735794267.png" alt="jthi_0-1662735794267.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-1662735806153.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/45346i3D19E9459837CE44/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_1-1662735806153.png" alt="jthi_1-1662735806153.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help pages is other place &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/row-functions-2.shtml?os=win&amp;amp;source=application#ww4974567" target="_blank" rel="noopener noreferrer"&gt;Column(&amp;lt;dt&amp;gt;, "name", "formatted")&lt;/A&gt;&amp;nbsp; and &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/programming-functions.shtml?os=win&amp;amp;source=application#ww5006506" target="_blank" rel="noopener noreferrer"&gt;As Column(name)&lt;/A&gt;. This also has some information&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/frequently-asked-questions-about-name-resolution.shtml#" target="_blank" rel="noopener"&gt; Scripting Guide &amp;gt; JSL Building Blocks &amp;gt; Rules for Name Resolution &amp;gt; Frequently Asked Questions about Name Resolution&lt;/A&gt; and&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/16.2/index.shtml#page/jmp/send-messages-to-data-column-objects.shtml#" target="_blank" rel="noopener"&gt; Scripting Guide &amp;gt; Data Tables &amp;gt; Columns &amp;gt; Send Messages to Data Column Objects&lt;/A&gt; also &lt;A href="https://www.jmp.com/support/help/en/16.2/index.shtml#page/jmp/iterate-on-rows-in-a-table.shtml#" target="_blank" rel="noopener"&gt;Iterate on Rows in a Table&lt;/A&gt; , so basically the documentation (especially Scripting Guide).&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 15:13:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/542946#M76217</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-09T15:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/557964#M77150</link>
      <description>&lt;P&gt;Nice video tutorial about the differences between column() and as column():&lt;BR /&gt;&lt;LI-MESSAGE title="Most Common JSL Mistakes and How to Avoid Them (2020-US-30MP-571)" uid="758506" url="https://community.jmp.com/t5/Abstracts/Most-Common-JSL-Mistakes-and-How-to-Avoid-Them-2020-US-30MP-571/m-p/758506#U758506" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-occasion-thread lia-fa-icon lia-fa-occasion lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(starting @&amp;nbsp;5:18 min)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;with the example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Select Where( Column( colName )[Row()] == 14 );
dt &amp;lt;&amp;lt; Select Where( As Column( colName ) == 14 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Concerning&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;How one would use all of these methods to make a JSL script robust to column name changes?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about an error handling feature which catches missing-column-events after column name changes - with an option to auto-fix the code.&lt;/P&gt;
&lt;P&gt;The idea:&lt;/P&gt;
&lt;P&gt;In case of a missing column, instead of showing an error message, JMP could open a window with a column list to pick the correct one.&lt;/P&gt;
&lt;P&gt;Then the execution of the code could continue to run - and the source code could be fixed automatically.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 20:24:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/557964#M77150</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-23T20:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/582415#M78894</link>
      <description>&lt;P&gt;Here is the wish :)&lt;/img&gt;&lt;BR /&gt;&lt;LI-MESSAGE title="catch &amp;amp;quot;missing column&amp;amp;quot; error and provide a selection menu" uid="556596" url="https://community.jmp.com/t5/JMP-Wish-List/catch-quot-missing-column-quot-error-and-provide-a-selection/m-p/556596#U556596" 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;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should be easy to implement now for JSL Editor - as a similar functionality was just introduced with Jmp 17's new Workflow builder:&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/JMP-Wish-List/catch-quot-missing-column-quot-error-and-provide-a-selection/idc-p/561663/highlight/true#M2949" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/JMP-Wish-List/catch-quot-missing-column-quot-error-and-provide-a-selection/idc-p/561663/highlight/true#M2949&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 20:46:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/582415#M78894</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-27T20:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/629393#M82762</link>
      <description>&lt;P&gt;Amazing that a &lt;STRONG&gt;Dashboard&lt;/STRONG&gt;&amp;nbsp;still works after renaming columns&lt;/P&gt;&lt;P&gt;- if it's stored as a Table Script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit:&amp;nbsp;&lt;BR /&gt;ah, no ... it even works if the Dashboard/Application is NOT stored as a Table Script.&lt;BR /&gt;Interesting&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;edit2 -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;limitation:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the manually created JSL "Scripts" of the application don't get updated automatically, just the code in the background of the application.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1700510893640.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58960iF39017CC26D11D14/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1700510893640.png" alt="hogi_0-1700510893640.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2024 18:48:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/629393#M82762</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-03-30T18:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/701127#M88568</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3552"&gt;@brady_brady&lt;/a&gt;&amp;nbsp; discusses this topic in detail in&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1758659216743.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/83299i0C4FB5002C77DBA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1758659216743.png" alt="hogi_0-1758659216743.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;(&lt;A href="https://community.jmp.com/t5/contentarchivals/contentarchivedpage/message-uid/537424" target="_blank"&gt;https://community.jmp.com/t5/contentarchivals/contentarchivedpage/message-uid/537424&lt;/A&gt;)&amp;nbsp; @10min&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;edit:&lt;BR /&gt;unfortunately, the video got archived : (&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 20:27:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/701127#M88568</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-09-23T20:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/724650#M90764</link>
      <description>&lt;P&gt;因为你的列名称是数字，如果纯英文字母不会出现这样的情况&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 09:25:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/724650#M90764</guid>
      <dc:creator>Conny_Wang</dc:creator>
      <dc:date>2024-02-19T09:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Column() vs As Column() vs datable:column vs dt:As name("column")</title>
      <link>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/741629#M92226</link>
      <description>&lt;P&gt;Here is an example where a table script doesn't get updated correctly:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;:Age is renamed to :AGE. Seems that Jmp doesn't expect a difference - and doesn't replace the column reference in the table script with the new name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, at the end, in the table script the column is still&amp;nbsp;:Age&amp;nbsp; - and in the table there are columns :age and :AGE.&lt;/P&gt;&lt;P&gt;... and Jmp picks :age.&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);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

new column ("Age",set each value(2));

dt &amp;lt;&amp;lt; Add Properties to Table(
	{New Script(
		"summary",
		Data Table( "Big Class" ) &amp;lt;&amp;lt; Summary(
			Group( :Age ),
			Freq( "None" ),
			Weight( "None" ),
			output table name( "Summary of Big Class grouped by age" )
		)
	)}
);

dt &amp;lt;&amp;lt; run script("summary"); // Age = 2
:Age &amp;lt;&amp;lt; set name("AGE");
dt &amp;lt;&amp;lt; run script("summary"); // age = 13 - 17&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2024 18:54:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-vs-As-Column-vs-datable-column-vs-dt-As-name-quot-column/m-p/741629#M92226</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-03-30T18:54:53Z</dc:date>
    </item>
  </channel>
</rss>

