cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Mo
Mo
Level III

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.

2 ACCEPTED SOLUTIONS

Accepted Solutions
jthi
Super User

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");

 

-Jarmo

View solution in original post

jthi
Super User

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); 

 

 

-Jarmo

View solution in original post

3 REPLIES 3
jthi
Super User

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");

 

-Jarmo
Mo
Mo
Level III

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? 

jthi
Super User

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); 

 

 

-Jarmo