<?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: saving script to datatable results in very long scripts in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/saving-script-to-datatable-results-in-very-long-scripts/m-p/569064#M77962</link>
    <description>&lt;P&gt;What you are seeing is just how the language works, luckily you usually do not have to look at your code after you've made it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you should investigate code folding&amp;nbsp;&lt;A title="Code folding help" href="https://www.jmp.com/support/help/en/16.2/index.shtml#page/jmp/add-code-folding-markers.shtml" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/16.2/index.shtml#page/jmp/add-code-folding-markers.shtml&lt;/A&gt;&amp;nbsp;which should allow you to define SendToReport as a foldable block so that you can collapse it and then you don't have to look at it when editing your scripts.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2022 14:56:25 GMT</pubDate>
    <dc:creator>pauldeen</dc:creator>
    <dc:date>2022-11-14T14:56:25Z</dc:date>
    <item>
      <title>saving script to datatable results in very long scripts</title>
      <link>https://community.jmp.com/t5/Discussions/saving-script-to-datatable-results-in-very-long-scripts/m-p/568969#M77957</link>
      <description>&lt;P&gt;Hi, maybe this belong in the "Wish-list" section, but I often find that scripts that I save to a data table become very long and hard to read very quickly. Below an example where I changed a single table to a different number format (&lt;CODE class=" language-jsl"&gt;{Set Format( "Best", 2 )}&lt;/CODE&gt;). This creates about 16 subsequent individual &lt;CODE class=" language-jsl"&gt;Dispatch(..)&lt;/CODE&gt; sections, instead of it just being something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For col in table.columns:
    Dispatch({"Life Distribution - Compare Groups", "Statistics", "Summary"},
	col,
	NumberColBox,
	{Set Format( "Best", 2 )})&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It would be nice if JMP would create a more compact version of the same code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&lt;BR /&gt;dt=Open("$SAMPLE_DATA\big class.jmp");&lt;BR /&gt;Life Distribution(
	Perspective( Compare Groups ),
	Y( :height ),
	Grouping( :sex ),
	Confidence Interval Method( Wald ),
	Select Distribution( Distribution, Weibull ),
	Select Scale( Weibull ),
	Tabbed Report( 0 ),
	SendToReport(
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics", "Summary"},
			"Number failed",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics", "Summary"},
			"Left Censor",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics", "Summary"},
			"Interval Censored Failure",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics", "Summary"},
			"Right Censored",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics", "Summary"},
			"Mean",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics", "Summary"},
			"Std Error",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics",
			"Group Homogeneity Tests"},
			"ChiSquare",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics",
			"Group Homogeneity Tests"},
			"DF",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics",
			"Group Homogeneity Tests"},
			"Prob&amp;gt;ChiSq",
			NumberColBox,
			{Set Format( "Best", 2 ), Set Conditional Format( "" )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics", "Model Comparisons"
			},
			"AICc",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics", "Model Comparisons"
			},
			"-2Loglikelihood",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics", "Model Comparisons"
			},
			"BIC",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics",
			"Parameter Estimates", "Parametric Estimate - Weibull"},
			"Weibull α",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics",
			"Parameter Estimates", "Parametric Estimate - Weibull"},
			"Weibull α CI Lower",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics",
			"Parameter Estimates", "Parametric Estimate - Weibull"},
			"Weibull α CI Upper",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics",
			"Parameter Estimates", "Parametric Estimate - Weibull"},
			"Weibull β",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics",
			"Parameter Estimates", "Parametric Estimate - Weibull"},
			"Weibull β CI Lower",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Statistics",
			"Parameter Estimates", "Parametric Estimate - Weibull"},
			"Weibull β CI Upper",
			NumberColBox,
			{Set Format( "Best", 2 )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Individual Group"},
			"",
			List Box( 2 ),
			{Set Summary Behavior( "Collapse" )}
		),
		Dispatch(
			{"Life Distribution - Compare Groups", "Individual Group"},
			"",
			List Box( 75 ),
			{Set Summary Behavior( "Collapse" )}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:02:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/saving-script-to-datatable-results-in-very-long-scripts/m-p/568969#M77957</guid>
      <dc:creator>mvanderaa1</dc:creator>
      <dc:date>2023-06-09T16:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: saving script to datatable results in very long scripts</title>
      <link>https://community.jmp.com/t5/Discussions/saving-script-to-datatable-results-in-very-long-scripts/m-p/569064#M77962</link>
      <description>&lt;P&gt;What you are seeing is just how the language works, luckily you usually do not have to look at your code after you've made it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you should investigate code folding&amp;nbsp;&lt;A title="Code folding help" href="https://www.jmp.com/support/help/en/16.2/index.shtml#page/jmp/add-code-folding-markers.shtml" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/16.2/index.shtml#page/jmp/add-code-folding-markers.shtml&lt;/A&gt;&amp;nbsp;which should allow you to define SendToReport as a foldable block so that you can collapse it and then you don't have to look at it when editing your scripts.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 14:56:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/saving-script-to-datatable-results-in-very-long-scripts/m-p/569064#M77962</guid>
      <dc:creator>pauldeen</dc:creator>
      <dc:date>2022-11-14T14:56:25Z</dc:date>
    </item>
  </channel>
</rss>

