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
lehaofeng
Level V

Is there a way to save a jmp-formatted table that doesn't contain .jmp in the filename?

Why is it that when you use the command save() to save a jmp-formatted table, the saved filename has to contain .jmp. Is there a way to save a jmp-formatted table that doesn't contain .jmp in the filename?

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Is there a way to save a jmp-formatted table that doesn't contain .jmp in the filename?

I have not done that, however, you can always rename the file after it has been saved

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Save( "$temp\Big Class.jmp" ); 
rc1 = Rename File( "$TEMP/Big Class.jmp", "namewithoutanextension" );
show(files in directory("$TEMP"));
Close( dt, "NoSave" );
Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Is there a way to save a jmp-formatted table that doesn't contain .jmp in the filename?

I have not done that, however, you can always rename the file after it has been saved

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Save( "$temp\Big Class.jmp" ); 
rc1 = Rename File( "$TEMP/Big Class.jmp", "namewithoutanextension" );
show(files in directory("$TEMP"));
Close( dt, "NoSave" );
Jim
lehaofeng
Level V

Re: Is there a way to save a jmp-formatted table that doesn't contain .jmp in the filename?

That is a good workaround!