cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

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