cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

Modular scripts with functions yielding data tables not working

Hi,

 

I have multiple include modules with functions, which are supposed to each yield a data table reference. In the main script these data tables are joined (see below). Joining, however, fails. I suppose, the error is about namespacing, but could not find a solution on my own.

 

Thanks in advance.

 

 

main.jsl:

 

include("module1.jsl");

include("module2.jsl");

 

dt1 = Function1(); // in module1.jsl

dt2 = Function2(); // in module2.jsl

 

dt3 = dt1 << Join(With(dt2), ...);

 

 

module1/2.jsl:

 
Function1/2 = Function({}, {},
dt = ...;
Return(dt);
);
1 REPLY 1
txnelson
Super User

Re: Modular scripts with functions yielding data tables not working

Without seeing Monule1 and Module2 it is pretty hard to see where the issue is.

Jim

Recommended Articles