Subscribe Bookmark RSS Feed

Why did JMP rewrite my scripts??

I had scripts that, for example, had

t = concat(t, a);

And now I see JMP changed it to

::t = ::t || ::a;

It still works, but I don't understand the change, and too much work to find them all and change back :(
7 REPLIES
Anybody have an idea?
Jeff_Perkinson

Community Manager

Joined:

Jun 23, 2011

Where was this script stored, in a JSL file or a script property on a data table or somewhere else?

What did you do that caused JMP to change the script?
-Jeff
Stored on a data table.

I didn't do anything...but did work with JMP for a while and just saved the table...
Jeff_Perkinson

Community Manager

Joined:

Jun 23, 2011

You must be using JMP 7 (or perhaps earlier).

When you store a script attached to a data table, JMP parses the script and stores a parsed version. This has a side affect of sometimes changing the script when it's redisplayed, especially when there are equivalent functions and operators.

JMP 8 does a better job of restoring your script just as entered.
-Jeff
No, it is JMP 8.
Jeff_Perkinson

Community Manager

Joined:

Jun 23, 2011

Hmmm...that's interesting.

I'm able to reproduce the behavior in JMP 7 but not JMP 8.
-Jeff
Did you right click on the script screen the select reformat script? I have seen some strange reformats when I do this, but none that change my variable declaration to using doulbe semi-colon (::) . I use JMP 7 though.