cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!

Discussions

Solve problems, and share tips and tricks with other JMP users.
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

Recommended Articles