cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

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

error in set col value with JSL formula

Open( "$SAMPLE_DATA/Big Class.jmp" ); 
dt=(Data Table( "Big Class" ) << Tabulate(
	Add Table(
		Column Table( Grouping Columns( :sex ) ),
		Row Table( Analysis Columns( :height ), Statistics( Mean ) )
	)
)) << Make Into Data Table;
dt<<New Column ("total", numeric, continious);
:total<<formula(:F+:M);// this line works by itself but causes error in script

:total<<formula(:F+:M);// this line works by itself after the script but causes error in the script?

1 ACCEPTED SOLUTION

Accepted Solutions
ErraticAttack
Level VI

Re: error in set col value with JSL formula

I personally try to avoid any auto-scoping in JSL, especially when it comes to column names.  If you explicitly scope :TOTAL to DT:TOTAL then this works.  The reason for the failure is because dt is not the current data table, and the current data table does not have a :TOTAL column.

 

Open( "$SAMPLE_DATA/Big Class.jmp" ); 
dt=(Data Table( "Big Class" ) << Tabulate(
	Add Table(
		Column Table( Grouping Columns( :sex ) ),
		Row Table( Analysis Columns( :height ), Statistics( Mean ) )
	)
)) << Make Into Data Table;
dt<<New Column ("total", numeric, continious);
dt:total<<formula(:F+:M);// this line works by itself but causes error in script

 

Jordan

View solution in original post

2 REPLIES 2
ErraticAttack
Level VI

Re: error in set col value with JSL formula

I personally try to avoid any auto-scoping in JSL, especially when it comes to column names.  If you explicitly scope :TOTAL to DT:TOTAL then this works.  The reason for the failure is because dt is not the current data table, and the current data table does not have a :TOTAL column.

 

Open( "$SAMPLE_DATA/Big Class.jmp" ); 
dt=(Data Table( "Big Class" ) << Tabulate(
	Add Table(
		Column Table( Grouping Columns( :sex ) ),
		Row Table( Analysis Columns( :height ), Statistics( Mean ) )
	)
)) << Make Into Data Table;
dt<<New Column ("total", numeric, continious);
dt:total<<formula(:F+:M);// this line works by itself but causes error in script

 

Jordan

Re: error in set col value with JSL formula

Thanks, and it also explains why the last line "magically" works, when I switch to the tabulate table :)

Recommended Articles