SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
JAL Macro Parameters Usage (Error?)

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
JAL Macro Parameters Usage (Error?)
Author Message
mpadilla



Joined: 02 Jul 2008
Posts: 33

Post JAL Macro Parameters Usage (Error?) Reply with quote
Hello,
I am trying to use the macro parameters to gather the last business date to use in a script (JAL).
In the past, using @DL I would get directly the last business date.
Now, when I am using @DL, I am getting the last calendar date.

I was expecting on a Monday, using @DL to get Friday's date. Instead I am getting Sunday's date.

Any suggestions?
Mon Sep 29, 2014 9:27 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6502

Post Reply with quote
What does JAL IsHoliday function return on that system for last Sunday? Or does it return an error?

Dim ret, boolean
IsHoliday "2014-09-28", ret
MessageBox ret
Wed Oct 01, 2014 12:17 am View user's profile Send private message
mpadilla



Joined: 02 Jul 2008
Posts: 33

Post Reply with quote
SysOp wrote:
What does JAL IsHoliday function return on that system for last Sunday? Or does it return an error?

Dim ret, boolean
IsHoliday "2014-09-28", ret
MessageBox ret



Responds with "FALSE"
Wed Oct 01, 2014 11:35 am View user's profile Send private message
mpadilla



Joined: 02 Jul 2008
Posts: 33

Post Reply with quote
Any updates on this?
This item is not isolated to one server. We have two different instances installed in two different servers and both of them present the same behavior.
Fri Oct 03, 2014 8:24 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6502

Post Reply with quote
No updates yet. We were able to reproduce the issue but the root cause is yet unknown. Some kind of weird anomaly.

As a workaround, please use for now

Code:
Dim d, date, "@T"yyyy-mm-dd""
Dim b, boolean
IsWeekEnd d, b
LoopWhile b, EndLoop
   DateAdd d, -1, d
   IsWeekEnd d, b
EndLoop:

MessageBox d

Fri Oct 03, 2014 12:54 pm View user's profile Send private message
mpadilla



Joined: 02 Jul 2008
Posts: 33

Post Reply with quote
Thanks for the work around.
What is the ETA for a permanent solution?
We have about 50 jobs that use the @DL keyword, so implementing the workaround on each one of them would be time consumming.
Mon Oct 06, 2014 11:38 am View user's profile Send private message
mpadilla



Joined: 02 Jul 2008
Posts: 33

Post Reply with quote
The "IsHoliday" statement does not work.
It returns false for all holidays that exists in the calendar. (I added the same date to all calendars, not only to the one that was assigned to the job).
Any workaround to verify the holiday???
Thu Nov 06, 2014 5:11 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6502

Post Reply with quote
Hi. We expect a fix for this issue release by the end of the week.
Mon Nov 10, 2014 11:57 am View user's profile Send private message
mpadilla



Joined: 02 Jul 2008
Posts: 33

Post Reply with quote
Any news on the patch for this issue?
Fri Nov 21, 2014 4:50 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6502

Post Reply with quote
Hello. Yes a fix is available. Please email to support and request download link for version 5.2.420
Tue Nov 25, 2014 1:54 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.