<?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: Using JSL to Save results from an Expression to a Journal in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Save-results-from-an-Expression-to-a-Journal/m-p/400046#M65122</link>
    <description>&lt;P&gt;If you add the following code to your original script, and you create the cont_cond list, the below code should add the distributions to the bottom of your journal.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Make Distribution of all Controlled Conditions in its own window
n = N Items( cont_cond );
If( N Items( cont_cond ),
	yExpr = Expr( Y() );
	For( iItem = 1, iItem &amp;lt;= n, iItem++,
		Insert Into( yExpr, Column( cont_cond[iItem] ) )
	);
	
	Eval(
		Substitute(
				Expr(
					dis = dt &amp;lt;&amp;lt; Distribution(invisible,
						yyy,
						quantiles( 0 ),
						show percents( 1 ),
						show counts( 1 ),
						outlier box plot( 0 ),
						customize summary statistics( 
							//Skewness(1),
							//Kurtosis(1),
							set alpha level( 0.2 )
						)
					)
				),
			Expr( yyy ), Name Expr( yExpr )
		)
	);
	
	nwjrn &amp;lt;&amp;lt; append(report(dis));
);	
	&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 11 Jul 2021 06:38:26 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-07-11T06:38:26Z</dc:date>
    <item>
      <title>Using JSL to Save results from an Expression to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Save-results-from-an-Expression-to-a-Journal/m-p/400033#M65119</link>
      <description>&lt;P&gt;I have the following code that I got A LOT of help on from my JMP JSL SAS professors when I took the course (so I don't totally understand how it works). It allows me to put a bunch of (variable, to be selected by the user) distributions in one window. How do I script the resultant window to the Journal that is created earlier in my code? All my other graphs are straightforward - created an outline box in the Journal and then appended the outline box with the line up box that had my created graphs in it. However, this is so different than those that I don't understand how I "save" the resultant single window with multiple (variable) distributions in it to the Journal under a differently titled outline box. Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Make Distribution of all Controlled Conditions in its own window
n = N Items( cont_cond );
If( N Items( cont_cond ),
	yExpr = Expr( Y() );
	For( iItem = 1, iItem &amp;lt;= n, iItem++,
		Insert Into( yExpr, Column( cont_cond[iItem] ) )
	);
	Eval(
		Substitute(
				Expr(
					dt &amp;lt;&amp;lt; Distribution(
						yyy,
						quantiles( 0 ),
						show percents( 1 ),
						show counts( 1 ),
						outlier box plot( 0 ),
						customize summary statistics( 
							//Skewness(1),
							//Kurtosis(1),
							set alpha level( 0.2 )
						)
					)
				),
			Expr( yyy ), Name Expr( yExpr )
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:16:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-JSL-to-Save-results-from-an-Expression-to-a-Journal/m-p/400033#M65119</guid>
      <dc:creator>lisa2442</dc:creator>
      <dc:date>2023-06-11T11:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using JSL to Save results from an Expression to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Save-results-from-an-Expression-to-a-Journal/m-p/400046#M65122</link>
      <description>&lt;P&gt;If you add the following code to your original script, and you create the cont_cond list, the below code should add the distributions to the bottom of your journal.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Make Distribution of all Controlled Conditions in its own window
n = N Items( cont_cond );
If( N Items( cont_cond ),
	yExpr = Expr( Y() );
	For( iItem = 1, iItem &amp;lt;= n, iItem++,
		Insert Into( yExpr, Column( cont_cond[iItem] ) )
	);
	
	Eval(
		Substitute(
				Expr(
					dis = dt &amp;lt;&amp;lt; Distribution(invisible,
						yyy,
						quantiles( 0 ),
						show percents( 1 ),
						show counts( 1 ),
						outlier box plot( 0 ),
						customize summary statistics( 
							//Skewness(1),
							//Kurtosis(1),
							set alpha level( 0.2 )
						)
					)
				),
			Expr( yyy ), Name Expr( yExpr )
		)
	);
	
	nwjrn &amp;lt;&amp;lt; append(report(dis));
);	
	&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Jul 2021 06:38:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-JSL-to-Save-results-from-an-Expression-to-a-Journal/m-p/400046#M65122</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-11T06:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using JSL to Save results from an Expression to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Save-results-from-an-Expression-to-a-Journal/m-p/400461#M65155</link>
      <description>Thank you!!</description>
      <pubDate>Tue, 13 Jul 2021 02:24:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-JSL-to-Save-results-from-an-Expression-to-a-Journal/m-p/400461#M65155</guid>
      <dc:creator>lisa2442</dc:creator>
      <dc:date>2021-07-13T02:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using JSL to Save results from an Expression to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Save-results-from-an-Expression-to-a-Journal/m-p/401563#M65248</link>
      <description>&lt;P&gt;One follow on question; I am trying to set the title of the resultant Report Window as:&lt;/P&gt;&lt;P&gt;Set Report Title( "Distribution of Controlled Conditions" );&lt;/P&gt;&lt;P&gt;For code later on down the line I need the window of distributions to have a common name that I can call on regardless of the data table name or columns selected for the distribution. Where in this expression code would I do that?? Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 00:25:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-JSL-to-Save-results-from-an-Expression-to-a-Journal/m-p/401563#M65248</guid>
      <dc:creator>lisa2442</dc:creator>
      <dc:date>2021-07-16T00:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using JSL to Save results from an Expression to a Journal</title>
      <link>https://community.jmp.com/t5/Discussions/Using-JSL-to-Save-results-from-an-Expression-to-a-Journal/m-p/401564#M65249</link>
      <description>Run the distribution platform interactively.  Then go to the Report Window title you want changed and click on it and change it.  Then go to the red triangle and save the script.   The script will have the jsl required to change the report title.</description>
      <pubDate>Fri, 16 Jul 2021 00:28:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Using-JSL-to-Save-results-from-an-Expression-to-a-Journal/m-p/401564#M65249</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-16T00:28:59Z</dc:date>
    </item>
  </channel>
</rss>

