cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, December 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, January 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
AdamChoen
Level IV

get current work week in string

Hi 

I need to pull the date from a constant changing folder name, the name is the year+curent WW e.g. 201817

I have the following JSL 

 

if ((day of week(today()))==1,
WW = "^year(today())^^week of year(today())-1^",
WW = "^year(today())^^week of year(today())^"
);

Eval Insert Into( WW );

dt = Open("\\.......\Reports\"||WW||"\.......xlsx");

it works when I run it on my PC but when I schedule it on a server the script not running - anyone has idea way?

 

 

Thanks, Adam
2 REPLIES 2
vince_faller
Super User (Alumni)

Re: get current work week in string

Have you tried pulling from the server?

 

path = "\\.......\Reports\"||WW||"\.......xlsx";
show(path);
dt = open(path);
Vince Faller - Predictum
AdamChoen
Level IV

Re: get current work week in string

it was a server access issue at the end, thanks for helping 

Thanks, Adam

Recommended Articles