Subscribe Bookmark RSS Feed

how to set table name with a variable

664786828

Community Trekker

Joined:

Jul 2, 2015

//  I want to change the table name 'LOTfile.JMP'  to be  'A1550A1577-T00.jmp'  with a variable 'tbname'!

// the table i want to save

cctable=open("G:\JMP study\JMP0703\"||"LOTfile.JMP");

// the table name i want to change to be

tbname="A1550A1577-T00";


   // how can i write when i save the tabel just the  variable 'tbname'?

   cctable<<Save("G:\JMP study\JMP0703\"||??.jmp);

// I don't want to use this

cctable<<Save("G:\JMP study\JMP0703\"||"A1550A1577-T00.jmp");

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

How about:

cctable << Save( "G:\JMP study\JMP0703\" || tbname || ".jmp" );

?

HTH,

Eric

2 REPLIES
Solution

How about:

cctable << Save( "G:\JMP study\JMP0703\" || tbname || ".jmp" );

?

HTH,

Eric

664786828

Community Trekker

Joined:

Jul 2, 2015

thank you! I do it!