File name by weekGood morning,
Is it possible to save a JMP file whose name is the current week of the script execution.
Using a script, I build a JMP data table. At the end of the script execution, I would like to be able to save the file under the following name "Week24" and the following week the file would be "Week25"....
Thank you for your answers.
Names Default To Here( 1 );
//script...
a = Week Of Year( Today(),3 );
dt1 = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt1 = current data table();
dt1 << Save As("\file...\a.jmp")Automation and ScriptingRe: File name by weekConvert the week number to string / evaluate it inside a string and use that
Names Default To Here(1);
weekstr = "Week" || Char(Week Of Year(Today(), 3));
dt = Open("$SAMPLE_DATA/Big Class.jmp");
savepath = "$TEMP/" || weekstr ||".jmp";
dt << Save(savepath);