cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Learn how to build custom Python data connectors and further customize JMP’s Data Connector Framework with the Python Data Connector Demo, available now in the JMP Marketplace!
  • See how to create experiments to support product design and ID useful product features. Register for June 12 webinar, 2pm US Eastern Time.

Discussions

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

Why does Search & Replace not work for JMP19?

JMP19 S&R.jpg

Above is a picture of an attempt to Search for the beginning of the line of the 3 Column Names and Replace that with the prefix "Pre-" in JMP19.  it causes my computer to start calculating who-knows-what for more than 20 minutes, before I finally decided to kill it.  My computer heats up, the fan comes on and it sounds like it's in distress!  I have to do something similar to this almost every day and have never had a problem in previous versions of JMP, where it usually finishes instantly.  Is this a bug in JMP19?  It is unusable to me if this is not fixed.

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
txnelson
Super User

Re: Why does Search & Replace not work for JMP19?

I have replicated your finding.  After clicking on Replace All, it popped up the Replacing Data window.  I waited a short bit of time and then Cancelled the operation, only to have a JMP Alert window pop up stating that over 21 million occurrences had been replaced. 

txnelson_0-1768518790999.png

Since I was only Searching on column names, and it was supposed to be restricted to the 2 selected columns, I think this is truly a bug.

Please report this to

     support@jmp.com

Jim

View solution in original post

hogi
Level XIII

Re: Why does Search & Replace not work for JMP19?

Wonderful trick !
Thanks for "developing it via the community".


new in JMP19: recode selected columns:

hogi_1-1768583906732.png

 

^: prepend
$: append

View solution in original post

8 REPLIES 8
txnelson
Super User

Re: Why does Search & Replace not work for JMP19?

I have replicated your finding.  After clicking on Replace All, it popped up the Replacing Data window.  I waited a short bit of time and then Cancelled the operation, only to have a JMP Alert window pop up stating that over 21 million occurrences had been replaced. 

txnelson_0-1768518790999.png

Since I was only Searching on column names, and it was supposed to be restricted to the 2 selected columns, I think this is truly a bug.

Please report this to

     support@jmp.com

Jim

Re: Why does Search & Replace not work for JMP19?

Have you tried using Column Names -> Recode Column Names? It works just like Recode, so you can Replace String using regular expressions. It is working for me using "^" to insert at the beginning of the column name, in JMP 19.0.3. 

christianz_1-1768577728224.png

 

 

hogi
Level XIII

Re: Why does Search & Replace not work for JMP19?

Wonderful trick !
Thanks for "developing it via the community".


new in JMP19: recode selected columns:

hogi_1-1768583906732.png

 

^: prepend
$: append

hogi
Level XIII

Re: Why does Search & Replace not work for JMP19?

creative approach by the #Learnbot - almost worth a submission to the wish list:

hogi_0-1768584298666.png

maybe oldname as a universal variable for the column name,
allowing actions like Word(1,oldname),  Left(oldname, 5), ...
and the described concatenation.

pcarroll1
Level IV

Re: Why does Search & Replace not work for JMP19?

Thanks for the suggestion.  I showed a grossly simplified table, compared to what I normally work with.  Many of my tables have thousands or 10s of thousands of columns, so renaming manually one by one is not an option.   Certainly, I can write JSL code to do this.  But S&R is a Windows standard forever and should work in JMP19.  I have alerted  support@jmp.com as @txnelson suggested.  In the meantime I'll use JMP18.

pcarroll1
Level IV

Re: Why does Search & Replace not work for JMP19?

Also, I did not find "Formula Column".  I did find "Replace String", which allowed S&R on multiple columns.  This worked.  A bit mor work that a straight S&R but at lease it works.

hogi
Level XIII

Re: Why does Search & Replace not work for JMP19?


@pcarroll1 wrote:

Also, I did not find "Formula Column".


me neither.
Many of  Learnbot's creative approaches collide with what is possible in JMP.

pcarroll1
Level IV

Re: Why does Search & Replace not work for JMP19?

Thank You for the suggestion.  I often want to rename thousands or 10s of thousands of columns.  S&R should work as it has up to JMP18.  It's a bug that needs to be fixed.  I contacted support@jmp.com and will use JMP18 in the meantime.

 

Recommended Articles