cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. ET on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

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

How to refer to the datatable from which script was done?

This might be a stupid question, but how do I refer to the datatable from which I ran the script if I dont know what the table name it is save as before hand?

 

In most solutions in the forum the script starts with something as:

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

and then you can do things to dt like 

dt << NewColumn( - - - -

But what if I want my script to just run asuming dt is whatever table from which the script was run?

1 REPLY 1
ih
Super User (Alumni) ih
Super User (Alumni)

Re: How to refer to the datatable from which script was done?

If you are sure it will run against the table that was active when the script is started you can use the current data table:

dt = current data table();

Recommended Articles