cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
rvs
rvs
Level II

How to output to a specific table name

Hello,

I am a novice in JSL and need some help.  From the sample script below, basically need add'l script for the output table name to be  "Big Class Row%.jmp" after making into data table. Thank you in advance. 

(Data Table( "Big Class" ) <<

Contingency(

  Y( :sex ),

  X( :age ),

  Contingency Table(

  Count( 0 ),

  Total %( 0 ),

  Col %( 0 ),

  Row %( 1 ),

  Expected( 0 ),

  Deviation( 0 ),

  Cell Chi Square( 0 ),

  Col Cum( 0 ),

  Col Cum %( 0 ),

  Row Cum( 0 ),

  Row Cum %( 0 )

  ),

  Mosaic Plot( 0 ),

  Tests( 0 ),

  Horizontal Mosaic( 1 )

)) << Make Into Data Table

1 ACCEPTED SOLUTION

Accepted Solutions
pmroz
Super User

Re: How to output to a specific table name

dt = open("$sample_data/Big Class.jmp");

pdt = (dt << Contingency(

     Y( :sex ),

     X( :age ),

     Contingency Table(

           Count( 0 ),

           Total %( 0 ),

           Col %( 0 ),

           Row %( 1 ),

           Expected( 0 ),

           Deviation( 0 ),

           Cell Chi Square( 0 ),

           Col Cum( 0 ),

           Col Cum %( 0 ),

           Row Cum( 0 ),

           Row Cum %( 0 )

     ),

     Mosaic Plot( 0 ),

     Tests( 0 ),

     Horizontal Mosaic( 1 ), invisible

)) << Make Into Data Table;

pdt << set name("Big Class Row%");

View solution in original post

2 REPLIES 2
pmroz
Super User

Re: How to output to a specific table name

dt = open("$sample_data/Big Class.jmp");

pdt = (dt << Contingency(

     Y( :sex ),

     X( :age ),

     Contingency Table(

           Count( 0 ),

           Total %( 0 ),

           Col %( 0 ),

           Row %( 1 ),

           Expected( 0 ),

           Deviation( 0 ),

           Cell Chi Square( 0 ),

           Col Cum( 0 ),

           Col Cum %( 0 ),

           Row Cum( 0 ),

           Row Cum %( 0 )

     ),

     Mosaic Plot( 0 ),

     Tests( 0 ),

     Horizontal Mosaic( 1 ), invisible

)) << Make Into Data Table;

pdt << set name("Big Class Row%");

robust1972
Level IV

Re: How to output to a specific table name

adding one more line:

Data Table( "Big Class Row%" )<<save((JMP_DataPath||"name_you_like.jmp"));wait(1);

Recommended Articles