I have been stuck in trying to get a data table to save correclty after I transposed the columns. I have a data table with spec limits in the first three rows, and I want to save them in a separate file so I can use that file as a limits file that is applied to the raw data as part of a data distribution plot. Each time I open the saved SPEC LIMITS file, it still has the columns in the non transposed format. Both the table with the non-transposed columns and the table with the transposed columns are open on the screen:
dt = Open( path ); // I select the file to data file to open. Spec limits are in first 3 rows
x = 3; // Number of rows that are not raw data (and have spec limits)
n = N Row( dt ); // Get total number of rows in the table
For( i = n, i > x, i--, // Delete all rows starting at row 4 to the end of the table
dt << Delete Rows( i );
n = dt << Get Column Names();
dt << Transpose(
columns(n),
Output Table( "SPEC LIMITS" )
);
:Label << Set Name( "Parameter" );
:Row 1 << Set Name( "LSL" );
:Row 2 << Set Name( "USL" );
:Row 3 << Set Name( "Units" );
dt << Save("SPEC LIMITS.jmp"); // Does not save data table with table columns transposed.
Have also tried saving the table as part of a close instruction and got the same result:
close( dt, Save("SPEC LIMITS.jmp"));
I sure there is an easy explanation, but what is needed to save the table with the columns transposed? Thank you!