<?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 know if a table is a linked subset? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41432#M24185</link>
    <description>&lt;P&gt;I'm going with Ian's answer then.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you need the linked table information? Maybe there is another approach.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jul 2017 13:22:10 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2017-07-03T13:22:10Z</dc:date>
    <item>
      <title>How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41417#M24171</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to determine (using JSL) if the current data table is linked to a main table or not.&lt;/P&gt;&lt;P&gt;I tried "&amp;lt;&amp;lt; Get Table Variable Names" but it didn't work.&lt;/P&gt;&lt;P&gt;Do you have any idea of how we can get this information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 08:56:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41417#M24171</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2017-07-03T08:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41422#M24176</link>
      <description>&lt;P&gt;FWIW, assuming your code makes the tables, you can make linked or unlinked subsets as you require:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
// Unlinked subset
dt &amp;lt;&amp;lt; selectRandomly(0.1);
dt2 = dt &amp;lt;&amp;lt; Subset(LinkToOriginalDataTable( 0 ) );
dt2 &amp;lt;&amp;lt; setName("Unlinked");
// Linked subset
dt &amp;lt;&amp;lt; selectRandomly(0.1);
dt3 = dt &amp;lt;&amp;lt; Subset(LinkToOriginalDataTable( 1 ) );
dt3 &amp;lt;&amp;lt; setName("Linked");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Jul 2017 09:50:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41422#M24176</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-07-03T09:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41423#M24177</link>
      <description>&lt;P&gt;Thank you for your answer Ian.&lt;/P&gt;&lt;P&gt;However my objective is not to create a linked subset but to determine if an existing table is linked to another or not.&lt;BR /&gt;Sorry if I was not clear enough!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 09:55:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41423#M24177</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2017-07-03T09:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41424#M24178</link>
      <description>&lt;P&gt;No, I understood, but was implying that you could avoid the 'problem'. But if you want to tell retrospectively, you could do something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
// Unlinked subset
dt &amp;lt;&amp;lt; selectRandomly(0.1);
dt2 = dt &amp;lt;&amp;lt; Subset(LinkToOriginalDataTable( 0 ) );
dt2 &amp;lt;&amp;lt; setName("Unlinked");
// Linked subset
dt &amp;lt;&amp;lt; selectRandomly(0.1);
dt3 = dt &amp;lt;&amp;lt; Subset(LinkToOriginalDataTable( 1 ) );
dt3 &amp;lt;&amp;lt; setName("Linked");


// Function to determine if two tables are linked
rLinked = Function({dt1, dt2}, {Default Local},
	dt1 &amp;lt;&amp;lt; selectAllRows;
	if(NRow(dt2 &amp;lt;&amp;lt; getSelectedRows) &amp;gt; 0,
		linked = 1,
		linked = 0
		);
	dt1 &amp;lt;&amp;lt; clearSelect;
	linked;
);

Print(rLinked(dt, dt2), rLinked(dt, dt3));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Jul 2017 10:05:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41424#M24178</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-07-03T10:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41426#M24180</link>
      <description>&lt;P&gt;Thanks Ian, that is indeed a quite convenient way to solve the problem!&lt;/P&gt;&lt;P&gt;I just need to go one step further. How can we do that if we do not know what is the potential main table (dt in your code)?&lt;/P&gt;&lt;P&gt;Do we have to test all opening tables or is there a faster solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 11:50:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41426#M24180</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2017-07-03T11:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41428#M24181</link>
      <description>&lt;P&gt;you might be able to use the table variable; it will need some testing because I'm not sure if it is always set (update: tried several ways to make a subset and it seems the table variable is always created):&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt&amp;lt;&amp;lt;gettablevariable("Linked Subset")
"This subset is linked to Big Class"

// but not linked parent table:
Data Table( "Big Class" )
dt&amp;lt;&amp;lt;gettablevariable("Linked Subset")
""&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="This linked subset has a table variable" style="width: 618px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6646iD4CBFBF42D875F20/image-size/large?v=v2&amp;amp;px=999" role="button" title="LinkedSubset.PNG" alt="This linked subset has a table variable" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;This linked subset has a table variable&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 12:27:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41428#M24181</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-07-03T12:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41429#M24182</link>
      <description>&lt;P&gt;Thanks for the suggestion Craige!&lt;/P&gt;&lt;P&gt;I tried "Get Table Variable Names" but not "Get Table Variable"!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did some tests and it seems to work pretty well!&lt;/P&gt;&lt;P&gt;So far, there is just one particular case where it doesn't work. If I create a summary table linked to the original table, there is no table variable created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea for this last point?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 12:45:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41429#M24182</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2017-07-03T12:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41430#M24183</link>
      <description>&lt;P&gt;Yes, the 'summary table' scenario is the one I tried - Hence my replies above. But I'm still left musing over how your JMP session can get into a state where you don't know what's linked to what. But that's OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could easily beuild a 'linking matrix' using 'NTable()' and what I've given above.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 13:07:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41430#M24183</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-07-03T13:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41432#M24185</link>
      <description>&lt;P&gt;I'm going with Ian's answer then.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you need the linked table information? Maybe there is another approach.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 13:22:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41432#M24185</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-07-03T13:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41433#M24186</link>
      <description>&lt;P&gt;Actually I am using a script which runs several analyses. In particular, it saves the residuals and other columns from the Fit Model platform, in the current data table. If this table is linked to another one, columns are saved in the original table and not in the current one and it makes fail my script.&lt;/P&gt;&lt;P&gt;So when a user launches the script, I would like to check first if the current table is not linked to another one. And since I am not aware of what the user did before, that is the reason why I am not able to know what could be linked to what.&lt;/P&gt;&lt;P&gt;Let me know if you need more explanations or if something is not clear!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides to answer Ian's last post, I see how we could build this linking matrix but if we have a summary table, I am not sure that the previous script will work. If I am not wrong when you select rows in the original table, nothing is selected in the summary table.&lt;/P&gt;&lt;P&gt;So unfortunately this case is still problematic.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 13:43:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41433#M24186</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2017-07-03T13:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41434#M24187</link>
      <description>&lt;P&gt;Regarding "&lt;SPAN&gt;In particular, it saves the residuals and other columns from the Fit Model platform, in the current data table&lt;/SPAN&gt;" then perhaps I have mis-understood. But you should always be able to get the 'Fit Model' predictions to go to the correct table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

// Open a table
dt1 = Open("$SAMPLE_DATA/Big Class.jmp");
// Open another table
dt2 = Open("$SAMPLE_DATA/Bands Data.jmp");
// Direct the analysis to the first table
fml = dt1 &amp;lt;&amp;lt; Fit Model(
				Y( :height ),
				Effects( :weight )
				);
fm = fml &amp;lt;&amp;lt; Run;
// Prediction formula goes to the first, not the current table
Print(CurrentDataTable());
fm &amp;lt;&amp;lt; predictionFormula;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 14:07:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41434#M24187</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-07-03T14:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41441#M24191</link>
      <description>&lt;P&gt;In fact, if I work with a subset linked to a table and if I save the Fit Model residuals, they are stored in the first main table. However, I have just remarked that prediction formula are saved in both tables! That is quite strange...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

// Open a table
dt1 = Open("$SAMPLE_DATA/Big Class.jmp");

// Create a subset
dt2=dt1 &amp;lt;&amp;lt; Subset(
	Selected Rows( 0 ),
	Rows( [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] ),
	Selected columns only( 0 ),
	link to original data table(1)
);


// Direct the analysis to the subset table
fml = dt2 &amp;lt;&amp;lt; Fit Model(
				Y( :height ),
				Effects( :weight )
				);
fm = fml &amp;lt;&amp;lt; Run;
// Prediction formula are saved in both dt1 and dt2 and residulas are saved only in dt1
fm &amp;lt;&amp;lt; prediction formula;
fm &amp;lt;&amp;lt; residuals;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In this example I would like to have residuals and prediction formula only in dt2.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2017 15:57:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41441#M24191</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2017-07-03T15:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41489#M24224</link>
      <description>&lt;P&gt;I suppose that the 'correct' behaviour in this case is open to interpretation, but if you see something that you regard as undesirable, please do send an email to support@jmp.com.&lt;/P&gt;
&lt;P&gt;In this case though, if you are are intending to use the linked subset tables to 'isolate' certain rows for analysis, a more conventional approach might&amp;nbsp;be to use the &lt;A href="http://www.jmp.com/support/help/The_Data_Filter.shtml" target="_self"&gt;data filter,&lt;/A&gt; or the local version thereof. If you are saving formulas that were generated using just part of the data, you may need some additional code to curate these.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 08:49:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41489#M24224</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-07-05T08:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41491#M24225</link>
      <description>&lt;P&gt;Thank you for the additional information Ian.&lt;/P&gt;&lt;P&gt;Your are completely right, a "correct" behavior depends on the situation. I was not saying that one is better than another but just trying to explain why sometimes things go wrong with my script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also agree that creating a linked subset may not always be the best way to focus on some specific rows. However since my script can be used by other persons, I can't control what they have done before and what kind of table they are working with. So the idea is just to find a way to detect if a table is a linked one (ie not compatible with my script). In that case I could display a warning and stop the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well if it is not feasible maybe I can find another way to deal with this particular case.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 09:47:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41491#M24225</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2017-07-05T09:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41493#M24226</link>
      <description>&lt;P&gt;You could test this (along the lines I mentioned earlier):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

// Function to determine if two tables are linked
rLinked = Function({dt1, dt2}, {Default Local},
	dt1 &amp;lt;&amp;lt; selectAllRows;
	if(NRow(dt2 &amp;lt;&amp;lt; getSelectedRows) &amp;gt; 0, linked = 1, linked = 0);
	dt1 &amp;lt;&amp;lt; clearSelect;
	dt2 &amp;lt;&amp;lt; clearSelect;
	linked;
);

// Look at the open tables in the session and see which pairs are linked
linkedTables = Function({}, {Default Local},
	nt = NTable();
	linkMat = J(nt, nt, .);
	tblNames = {};
	for(t1=1, t1&amp;lt;=nt, t1++,
		InsertInto(tblNames, DataTable(t1) &amp;lt;&amp;lt; getName);
		for(t2=t1+1, t2&amp;lt;=nt, t2++,
			if(rLinked(DataTable(t1), DataTable(t2)), linkMat[t1, t2] = 1, linkMat[t1, t2] = 0);
			);
		);
	EvalList({linkMat, tblNames});
);

// Make some active tables
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
// Unlinked subset
dt &amp;lt;&amp;lt; selectRandomly(0.1);
dt2 = dt &amp;lt;&amp;lt; Subset(LinkToOriginalDataTable( 0 ) );
dt2 &amp;lt;&amp;lt; setName("Unlinked");
// Linked subset
dt &amp;lt;&amp;lt; selectRandomly(0.1);
dt3 = dt &amp;lt;&amp;lt; Subset(LinkToOriginalDataTable( 1 ) );
dt3 &amp;lt;&amp;lt; setName("Linked");

// Get the 'link matrix'
linkedOrNot = linkedTables();
dt4 = AsTable(linkedOrNot[1], &amp;lt;&amp;lt; setName("Linked Tables"), &amp;lt;&amp;lt; columnNames(linkedOrNot[2]));
dt4 &amp;lt;&amp;lt; NewColumn("Column", Character, Values(linkedOrNot[2]));
dt4 &amp;lt;&amp;lt; moveSelectedColumns({"Column"}, ToFirst);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Jul 2017 10:12:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41493#M24226</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-07-05T10:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41536#M24251</link>
      <description>&lt;P&gt;Hello Ian,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the code! I think I can use something like that to solve my problem. I just need to add an additional control for summary table. Maybe something like that could work: trying to get the "Source" script of a table and check if it contains the word "summary".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to do some tests...&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 11:43:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41536#M24251</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2017-07-06T11:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41539#M24252</link>
      <description>&lt;P&gt;Untested (as usual . . . :(&lt;/img&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);
ClearLog();

// See if a table is a summary of another table
isSummary = 
Function({dt}, {Default Local},
	ts = dt &amp;lt;&amp;lt; Get Table Script Names;
	if (Contains(ts, "Source"),
		ss = dt &amp;lt;&amp;lt; getProperty("Source");
		if (Head(Arg(ss, 2)) == Expr(Summary), 1, 0),
		0
		);
	);

// Make a summary table
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt2 = dt1 &amp;lt;&amp;lt; Summary(Mean( :height ));
Print(isSummary(dt1));
Print(isSummary(dt2));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Jul 2017 13:32:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41539#M24252</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-07-06T13:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41617#M24277</link>
      <description>&lt;P&gt;Thank you one more time for your very fast answer Ian!&lt;/P&gt;&lt;P&gt;I am gonna combine the two parts and do some tests but I trust it should do the job! :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 12:03:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/41617#M24277</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2017-07-07T12:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/595165#M79887</link>
      <description>&lt;P&gt;It's strange that a user has to set up a decision tree to find out if a table is linked or not.&lt;/P&gt;&lt;P&gt;I would assume that Jmp &lt;EM&gt;knows&lt;/EM&gt;&amp;nbsp;which tables are linked.&lt;/P&gt;&lt;P&gt;So, why is such an information not accessible via JSL?&lt;/P&gt;&lt;P&gt;Is it?&lt;BR /&gt;&lt;BR /&gt;edit: thanks for providing the feature with JMP18 : )&lt;BR /&gt;(see below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2024 09:53:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/595165#M79887</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-31T09:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a table is a linked subset?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/619442#M81884</link>
      <description>&lt;P&gt;A JSL query to query a table about whether it is a linked subset did not previously exist. However, this conversation has caught the attention of JMP Development, and now a JSL message has been added in the next major release of JMP (JMP 18).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;dt &amp;lt;&amp;lt; Is Linked Subset; //will return 1 or 0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 12:35:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-know-if-a-table-is-a-linked-subset/m-p/619442#M81884</guid>
      <dc:creator>Audrey_Shull</dc:creator>
      <dc:date>2023-04-03T12:35:06Z</dc:date>
    </item>
  </channel>
</rss>

