cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
hcarr01
Level VI

File name by week

Bonjour,

 

Est-il possible d'enregistrer un fichier JMP qui a pour nom la semaine en cours de l'exécution du script.

 

A l'aide d'un script, je construis une table de données JMP, j'aimerais à la fin de l'exécution du script, pouvoir enregistrer le fichier sous le nom suivant "Week24" et la semaine d'après le fichier serait "Week25"....

 

Merci pour vos réponses.

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")
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: File name by week

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

View solution in original post

1 REPLY 1
jthi
Super User

Re: File name by week

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