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
xenon2090
Level I

open a .txt file by JSL script and save it as a jmp file

I want to open a .txt file by jsl script and save it as a jmp file.
Is there a simple way to do it by scripting?
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: open a .txt file by JSL script and save it as a jmp file

This may be what you are looking for

dt=open("pathtofolder\filename.txt");
close(dt,save("$TEMP\lookup.jmp"));
Jim

View solution in original post

3 REPLIES 3
Craige_Hales
Super User

Re: open a .txt file by JSL script and save it as a jmp file

look in the scripting index for LoadTextFile() and SaveTextFile(); they don't care about the extension the way open() does.

Craige
Craige_Hales
Super User

Re: open a .txt file by JSL script and save it as a jmp file

and I may have misinterpreted... are you saving a script? a datatable? is the source a .csv? 

Craige
txnelson
Super User

Re: open a .txt file by JSL script and save it as a jmp file

This may be what you are looking for

dt=open("pathtofolder\filename.txt");
close(dt,save("$TEMP\lookup.jmp"));
Jim

Recommended Articles