こんにちは、みんな、
私はJMPスクリプト初心者で、このフォーラムのほとんどの人にとっては簡単に答えられるであろう質問が1つあります。私が実行しているスクリプトは次のとおりです。
----------------------------------------------------------------------
// Open the raw base data table
raw_data_tbl=open("..\Tables\WA_VS_EXPORT_BASE_VIEW_MKT_1_SAMPLED.jmp");
// Make raw data table the current data table
Current Data Table(raw_data_tbl);
Current Data Table() << Select Where(:Total_interactions >= 1 & :Total_interactions <=40);
raw_data_tbl_sub = Current Data Table() << Subset(columns(
:B_ts,
:B_month,
:B_year,
:C_cd,
:Total_interactions,
:Product,
:T_id,
:Num_interactions,
));
Current Data Table() << Clear Select;
Current Data Table(raw_data_tbl_sub);
// Join the subset table with summary table
chnnl_in_summary = Current Data Table() <<
Join(
With(
Current Data Table() << Summary( Group( :T_id, :C_cd ), N( :Trip_id ) )
),
Select( :B_ts, :B_month, :B_year ),
SelectWith( :T_id, :C_cd ),
Select(
:Total_interactions,
:Product,
:Num_interactions
),
SelectWith( :N Rows ),
By Matching Columns( :T_id = :T_id, :Channel_cd = :Channel_cd ),
Drop multiples( 0, 0 ),
Name( "Include non-matches" )(0, 0)
);
Current Data Table(chnnl_in_summary);
chnnl_in_summary_transp = Current Data Table() << Transpose(
columns( :N Rows ),
By(
:T_id,
:B_ts,
:B_month,
:B_year,
:Total_interactions,
:Product
),
Label( :C_cd )
);
close(raw_data_tbl);
close(raw_data_tbl_sub);
close(chnnl_in_summary);
chnnl_in_summary_transp << save("..\Tables\WA_PATTR.jmp");
close(chnnl_in_summary_transp);
---------------------------------------------------------------------------------------------
スクリプトは、私が望むようにデータを処理するという点では問題なく動作しますが、処理中に作成する中間テーブルのために、多数の(実際には合計3つの)テーブルウィンドウが開いてしまい、煩わしいです。さらに、「Untitled」で始まる名前のテーブルを保存するかどうかを尋ねるファイルダイアログが1つ表示されます。以下は、スクリプトログウィンドウの下部です。
データテーブル「WA_VS_EXPORT_BASE_VIEW_MKT_1_SAMPLED のサブセット」には、他のウィンドウが開いています。このデータテーブルのすべてのウィンドウを閉じるか、非表示にすることができます。
JMPデータテーブル「Untitled 42」への変更を保存しますか?
私の質問は、スクリプトの実行を妨げずに(つまり、必要なときにテーブル全体を閉じないように)、スクリプトが終了するまでにテーブルウィンドウを含むすべてが閉じられるように、スクリプトからこれらのウィンドウを適切に制御するにはどうすればよいかということです。どうやら、テーブルにクローズメッセージを送信するだけでは不十分なようです。ご回答いただけると大変助かります。
ミロラド