- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Data Table Name disappears on Save
On saving a data table using Save(directory), the data table gets saved but as ".jmp", i.e. with an empty name. I tried to use "close(dt, save(directory))", but that resulted in an error message (I/O problem) and no save at all.
To understand if this was an issue with the data table I opened up Big Class.jmp, renamed it and then tried to save it the same way. It did not want to save to the initial folder, but it did save to a second folder, although also as ".jmp" so without the file name.
Anyone had this issue and found how to resolve this, or know what is going on?
I'm using JMP Pro 16.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Data Table Name disappears on Save
I think the syntax for saving datatables is Save(filepath), so maybe you are just missing the file name of datatable you wish to save?
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << Save("$temp\deleteme Big Class.jmp");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Data Table Name disappears on Save
Only thing that comes to my mind is that you could use dt << get name to get the name of datatable, then concatenate that with path and .jmp.
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
current_name = dt << get name || ".jmp";
savePath = "$temp/" || current_name;
dt << Save(savePath);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Data Table Name disappears on Save
I think the syntax for saving datatables is Save(filepath), so maybe you are just missing the file name of datatable you wish to save?
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << Save("$temp\deleteme Big Class.jmp");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Data Table Name disappears on Save
That was it, thanks! But isn't there a way that you can save with the current data table name, where you don't have to add the name to the file path?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Data Table Name disappears on Save
Only thing that comes to my mind is that you could use dt << get name to get the name of datatable, then concatenate that with path and .jmp.
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
current_name = dt << get name || ".jmp";
savePath = "$temp/" || current_name;
dt << Save(savePath);