Subscribe Bookmark RSS Feed

Is possible recall a script like as sub-routine?

marvec

Community Trekker

Joined:

Feb 28, 2013

Hi everybody!

I'm a new user, I'm using jmp as programmer from 3 months.

I need your help!

I'm writing a script that subset, stack ,create graph and save all the measure in a file.

The problem is that the script is becoming too much long, and I would fix the problem creating some sub-script.

I think is useful.... because depending of input variables the script create different graphs, than I would recall each different graph like a sub-script...

Anyone knows how can I get this?

Regards,

Marcello

2 REPLIES
ms

Super User

Joined:

Jun 23, 2011

Within a script functions and expressions, Function(...) and Expr(...), can be defined and then reused and conditionally customized if desired. This can shorten the script considerably.

It is also possible to invoke other scripts by the Include(...) function. For example, lengthy functions and expressions can be stored in subscripts that is run in the beginning of the main scripts.

marvec

Community Trekker

Joined:

Feb 28, 2013

Yes!

Done!!

Thank you!

Marcello