cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-219949%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E3%E6%97%A5%E8%AA%8C%E3%82%921%E6%97%A5%E8%AA%8C%E3%81%AB%E3%81%BE%E3%81%A8%E3%82%81%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219949%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%82%84%E3%81%82%E3%80%81%3C%2FP%3E%3CP%3E3%20%E3%81%A4%E3%81%AE%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB%20%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%92%201%20%E3%81%A4%E3%81%AB%E7%B5%90%E5%90%88%E3%81%97%E3%80%81%E6%9C%80%E7%B5%82%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB%E3%82%92%20PDF%20%E5%BD%A2%E5%BC%8F%E3%81%A7%E4%BF%9D%E5%AD%98%E3%81%97%E3%81%9F%E3%81%84%E3%81%A8%E8%80%83%E3%81%88%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJournal_1%20%3D%20Journal%3AG_Si_Wafer_Table%3C%2FP%3E%3CP%3EJournal_2%20%3D%20%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB%3AG_Si_Wafer_Mapping%3C%2FP%3E%3CP%3EJournal_3%20%3D%20Journal%3AG_Si_Wafer_Reject_Pareto%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E3%20%E3%81%A4%E3%81%AE%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB%E3%82%92%201%20%E3%81%A4%E3%81%AB%E7%B5%90%E5%90%88%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%80%81PDF%20%E3%81%A8%E3%81%97%E3%81%A6%E4%BF%9D%E5%AD%98%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%80%81%E3%81%8A%E3%82%88%E3%81%B3%20PDF%20%E3%82%92%E4%BF%9D%E5%AD%98%E3%81%97%E3%81%9F%E5%BE%8C%E3%81%AB%203%20%E3%81%A4%E3%81%AE%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB%E3%82%92%E3%81%99%E3%81%B9%E3%81%A6%E9%96%89%E3%81%98%E3%82%8B%E6%96%B9%E6%B3%95%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219975%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%203%20%E6%97%A5%E8%AA%8C%E3%82%92%201%20%E6%97%A5%E8%AA%8C%E3%81%AB%E3%81%BE%E3%81%A8%E3%82%81%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219975%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%95%8F%E9%A1%8C%E3%82%92%E7%90%86%E8%A7%A3%E3%81%99%E3%82%8B%E3%81%AE%E3%81%AB%E5%BD%B9%E7%AB%8B%E3%81%A4%E6%B3%A8%E9%87%88%E4%BB%98%E3%81%8D%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92%E6%AC%A1%E3%81%AB%E7%A4%BA%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0A%0A%2F%2F%20Open%20sample%20data%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2Fbig%20class.jmp%22%20)%3B%0A%0A%2F%2F%20Create%202%20journal%20windows%2C%20naming%20them%20what%20appears%20to%20be%20%22Journal_1%22%0A%2F%2F%20and%20%22Journal_2%22%0A%2F%2F%20Also%20assign%20the%20JSL%20variables%20j1%20and%20j2%20to%20the%20journals%0Aj1%20%3D%20New%20Window(%20%22Journal_1%22%2C%20%26lt%3B%3CJOURNAL%3E%3C%2FJOURNAL%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219974%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%203%20%E6%97%A5%E8%AA%8C%E3%82%92%201%20%E6%97%A5%E8%AA%8C%E3%81%AB%E3%81%BE%E3%81%A8%E3%82%81%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219974%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E7%A7%81%E3%81%AF%203%20%E3%81%A4%E3%81%AE%E5%80%8B%E5%88%A5%E3%81%AE%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB%E3%82%92%E6%8C%81%E3%81%A3%E3%81%A6%E3%81%8A%E3%82%8A%E3%80%81%E3%81%9D%E3%82%8C%E3%81%9E%E3%82%8C%20Journal_1%E3%80%81Journal_2%E3%80%81%E3%81%8A%E3%82%88%E3%81%B3%20Journal_3%20%E3%81%A8%E3%81%84%E3%81%86%E5%90%8D%E5%89%8D%E3%82%92%E4%BB%98%E3%81%91%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%20%E5%90%84%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB%E3%81%AB%E3%81%AF%E3%80%81%E6%A3%92%E3%82%B0%E3%83%A9%E3%83%95%E3%80%81%E5%86%86%E3%82%B0%E3%83%A9%E3%83%95%E3%81%AA%E3%81%A9%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219973%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%203%20%E6%97%A5%E8%AA%8C%E3%82%92%201%20%E6%97%A5%E8%AA%8C%E3%81%AB%E3%81%BE%E3%81%A8%E3%82%81%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219973%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%80%8Cjournal_1%E3%80%8D%E3%82%92%E5%BC%95%E7%94%A8%E7%AC%A6%E3%81%A7%E5%9B%B2%E3%82%93%E3%81%A7%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E7%A7%81%E3%81%AE%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%A7%E3%81%AF%E3%80%81Journal_1%20%E3%81%8C%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB%E3%82%92%E6%8C%87%E3%81%99%20JSL%20%E5%A4%89%E6%95%B0%E3%81%A7%E3%81%82%E3%82%8B%E3%81%A8%E6%83%B3%E5%AE%9A%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%E3%81%9D%E3%81%86%E3%81%A7%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%81%8B%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219972%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%203%20%E6%97%A5%E8%AA%8C%E3%82%92%201%20%E6%97%A5%E8%AA%8C%E3%81%AB%E3%81%BE%E3%81%A8%E3%82%81%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219972%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%82%84%E3%81%82%E3%80%81%3C%2FP%3E%3CP%3E3%20%E3%81%A4%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB%E3%81%8C%E3%81%BE%E3%81%A0%E6%9C%80%E5%BE%8C%E3%81%AE%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB%E3%81%AB%E8%BF%BD%E5%8A%A0%E3%81%95%E3%82%8C%E3%81%AA%E3%81%84%E7%90%86%E7%94%B1%E3%81%AF%E3%82%8F%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%20%E3%81%93%E3%82%8C%E3%81%AF%E3%83%AD%E3%82%B0%E3%81%8B%E3%82%89%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E'append'%20%2C%20append(%20%22Journal_1%22%20)%20%2F*%23%23%23%23*%2F%20%E3%81%AE%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%81%BE%E3%81%9F%E3%81%AF%E8%A9%95%E4%BE%A1%E3%81%A7%E3%81%AF%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%3C%2FP%3E%3CP%3E%E6%AC%A1%E3%81%AE%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%81%A7%E3%81%AF%E3%80%81%2F*%23%23%23%23*%2F%20%E3%81%A7%E3%83%9E%E3%83%BC%E3%82%AF%E3%81%95%E3%82%8C%E3%81%9F%E3%82%A8%E3%83%A9%E3%83%BC%3CBR%20%2F%3Enw%20%3D%20New%20Window(%20%22%E6%9C%80%E7%B5%82%22%2C%20%26lt%3B%26lt%3B%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB)%3B%3CBR%20%2F%3E%20nw%20%26lt%3B%26lt%3B%20append(%20%22Journal_1%22%20)%20%2F*%23%23%23*%2F%3B%3CBR%20%2F%3E%20nw%20%26lt%3B%26lt%3B%20append(%20%22Journal_2%22%20)%3B%3CBR%20%2F%3E%20nw%20%26lt%3B%26lt%3B%20append(%20%22Journal_3%22%20)%3B%3CBR%20%2F%3E%20nw%20%26lt%3B%26lt%3B%20Save%20PDF(%20%22%24TEMP%2Fexample.pdf%22%20)%3B%3CBR%20%2F%3E%20Open(%20%22%24TEMP%2Fexample.pdf%22%20)%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219959%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%203%20%E6%97%A5%E8%AA%8C%E3%82%92%201%20%E6%97%A5%E8%AA%8C%E3%81%AB%E3%81%BE%E3%81%A8%E3%82%81%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219959%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%8E%A2%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E3%82%82%E3%81%AE%E3%82%92%E9%81%94%E6%88%90%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%80%81%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB%E3%82%92%E3%81%BE%E3%81%A8%E3%82%81%E3%81%A6%20Append()%20%E3%81%99%E3%82%8B%E3%81%A0%E3%81%91%E3%81%A7%E3%81%99%E3%80%82%E4%BB%A5%E4%B8%8B%E3%81%AE%E4%BE%8B%E3%81%A7%E3%81%AF%E3%80%81%E6%96%B0%E3%81%97%E3%81%84%E6%97%A5%E8%AA%8C%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%82%92%E4%BD%9C%E6%88%90%E3%81%97%E3%80%813%20%E3%81%A4%E3%81%AE%E6%97%A5%E8%AA%8C%E3%82%92%E4%B8%80%E7%B7%92%E3%81%AB%E8%BF%BD%E5%8A%A0%E3%81%97%E3%81%A6%E3%81%8B%E3%82%89%E3%80%81PDF%20%E3%81%A8%E3%81%97%E3%81%A6%E4%BF%9D%E5%AD%98%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3Enw%3Dnew%20window(%22final%22%2C%26lt%3B%3CJOURNAL%3E%3C%2FJOURNAL%3E%3CBR%20%2F%3E%3C%2FFONT%3Enw%26lt%3B%3CAPPEND%3E%3C%2FAPPEND%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%E3%82%B8%E3%83%A3%E3%83%BC%E3%83%8A%E3%83%AB%E3%81%AE%E6%93%8D%E4%BD%9C%E3%81%AB%E9%96%A2%E3%81%99%E3%82%8B%E3%83%89%E3%82%AD%E3%83%A5%E3%83%A1%E3%83%B3%E3%83%88%E3%81%AF%E3%80%81%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%20%E3%82%AC%E3%82%A4%E3%83%89%E3%81%A7%E8%AA%AC%E6%98%8E%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%0A%3CP%3E%E3%83%98%E3%83%AB%E3%83%97%3D%3D%26gt%3B%E6%9B%B8%E7%B1%8D%3D%3D%26gt%3B%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%20%E3%82%AC%E3%82%A4%E3%83%89%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
bsl
bsl
Level II

Combine 3 journals into 1 journal

Hi,

I would like to combine 3 journals file into 1, and save the final journal in PDF format.

 

Journal_1 = Journal:G_Si_Wafer_Table

Journal_2 = Journal:G_Si_Wafer_Mapping

Journal_3 = Journal:G_Si_Wafer_Reject_Pareto

 

How to combine 3 Journals into 1, how to save as PDF, and how to close all 3 journals after save a PDF.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Combine 3 journals into 1 journal

Here is an annotated script that should help you understand the issue

Names Default To Here( 1 );

// Open sample data
dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Create 2 journal windows, naming them what appears to be "Journal_1"
// and "Journal_2"
// Also assign the JSL variables j1 and j2 to the journals
j1 = New Window( "Journal_1", <<journal, dt << bivariate( x( :weight ), y( :height ) ) );

j2 = New Window( "Journal_2", <<journal, dt << oneway( x( :sex ), y( :weight ) ) );

// Create an empty journal window to move the other journals into
jFinal = New Window( "Final", <<journal );

// There are 2 methods below that can be used to append the journals to the 
// final journal
// ^Journal pointer final^ << append( ^Journal pointer Journal_1^);
// jFinal << append( j1 );
// or
// window("final journal window name") << append( window("journal 1 window name"));
// window("Journal: Final") << append( window( "Journal: Journal_1"))

jFinal << append( j1 );

Window( "Journal: Final" ) << append( Window( "Journal: Journal_2" ) );

// The real name of the journal window is the key.  Even though the code gives the name of
// the journal windows as "Journal_1", "Journal_2" and "Final", that is not the actual name.
// "Journal: Journal_1" etc. is the name.  However, if one explictly assigns a name to
// journal, such as
//  j1 << set window title( "Journal_1" );
// the window's name will be "Journal_1"

jFinal2 = New Window( "Final 2" );
jFinal2 << set window title( "Final 2" );
j1 << set window title( "Journal_1" );
j2 << set window title( "Journal_2" );

Window( "Final 2" ) << append( Window( "Journal_1" ) );
Window( "Final 2" ) << append( Window( "Journal_2" ) );
Jim

View solution in original post

5 REPLIES 5
txnelson
Super User

Re: Combine 3 journals into 1 journal

To accomplish what you are looking for, is to simply Append() the journals together.  The example below creates a new journal window, appends the 3 journals together, and then saves it as a PDF.

nw=new window("final",<<journal);

nw<<append(Journal_1); nw<<append(Journal_2); nw<<append(Journal_3); nw << Save PDF( "$TEMP/example.pdf" ); open("$TEMP/example.pdf");

Documentation on working with journals is covered in the Scripting Guide

     Help==>Books==>Scripting Guide

Jim
bsl
bsl
Level II

Re: Combine 3 journals into 1 journal

Hi,

I don't know why the all 3 journals still does not append to the final journal. This is the error from log.

 


Not a display in access or evaluation of 'append' , append( "Journal_1" ) /*###*/

In the following script, error marked by /*###*/
nw = New Window( "final", <<journal );
nw << append( "Journal_1" ) /*###*/;
nw << append( "Journal_2" );
nw << append( "Journal_3" );
nw << Save PDF( "$TEMP/example.pdf" );
Open( "$TEMP/example.pdf" );

txnelson
Super User

Re: Combine 3 journals into 1 journal

You have quotes around "journal_1".  In my script, I am assuming that Journal_1 was a JSL variable pointing to the journal.  Is this not the case?

Jim
bsl
bsl
Level II

Re: Combine 3 journals into 1 journal

I have 3 individual journals and named as Journal_1, Journal_2, & Journal_3 respectively. Each journal has Bar chart, pie char...etc.

txnelson
Super User

Re: Combine 3 journals into 1 journal

Here is an annotated script that should help you understand the issue

Names Default To Here( 1 );

// Open sample data
dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Create 2 journal windows, naming them what appears to be "Journal_1"
// and "Journal_2"
// Also assign the JSL variables j1 and j2 to the journals
j1 = New Window( "Journal_1", <<journal, dt << bivariate( x( :weight ), y( :height ) ) );

j2 = New Window( "Journal_2", <<journal, dt << oneway( x( :sex ), y( :weight ) ) );

// Create an empty journal window to move the other journals into
jFinal = New Window( "Final", <<journal );

// There are 2 methods below that can be used to append the journals to the 
// final journal
// ^Journal pointer final^ << append( ^Journal pointer Journal_1^);
// jFinal << append( j1 );
// or
// window("final journal window name") << append( window("journal 1 window name"));
// window("Journal: Final") << append( window( "Journal: Journal_1"))

jFinal << append( j1 );

Window( "Journal: Final" ) << append( Window( "Journal: Journal_2" ) );

// The real name of the journal window is the key.  Even though the code gives the name of
// the journal windows as "Journal_1", "Journal_2" and "Final", that is not the actual name.
// "Journal: Journal_1" etc. is the name.  However, if one explictly assigns a name to
// journal, such as
//  j1 << set window title( "Journal_1" );
// the window's name will be "Journal_1"

jFinal2 = New Window( "Final 2" );
jFinal2 << set window title( "Final 2" );
j1 << set window title( "Journal_1" );
j2 << set window title( "Journal_2" );

Window( "Final 2" ) << append( Window( "Journal_1" ) );
Window( "Final 2" ) << append( Window( "Journal_2" ) );
Jim

Recommended Articles