For the latest version of JMP Help, visit JMP.com/help.


Scripting Guide > Programming Methods > Encrypt and Decrypt Scripts > Encryption and Global Variables
Publication date: 04/21/2023

Encryption and Global Variables

Encryption alone does not hide global variables and their values. A Show Globals() command displays them normally. If you want to hide global variables in an encrypted JSL script, you can give them special names.

Any global variable whose name begins with two underscore characters (__) is hidden, and Show Globals() displays neither its name nor its value. For example:

myvar = 2;
__myvar = 5;
Show Symbols();

// Globals

myvar = 2;

// 2 Global (1 Hidden)

This strategy works whether your script is encrypted or not.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).