
johndanter
Legendary Poster
Hi List
I have an interesting situation in that we are encountering duplicate LOTNS at server midnight. (which are actually the 0001 LOTN for the previous day!!!)
I think this is because our server is using US CST timing yet we are a global company and users are active in the Poland and Singapore warehouse when the server scrolls through midnight and the BSFN X41LOT gets the LOTN and the F0002 reference resetting to 0001.
The key to F4108 is LOTN ITM MCU so a duplicate LOTN is allowed if the MCU is different.
X41LOT does 2 things when it gives you back the LOTN.
1) go to F0002 SY = 40 N0008 = MDDnnnn format
(M month DD day of month nnnn = increment NN that resets each day if the MDD used in the call is DIFFERENT to the F0002 value
1a) increment N0008
2) Check newly formatted LOTN of YYMMDDNNNN already exists on F4108
If it does try again +1 until happy
Usually steps 1 and 2 and very quick as the MDDnnnn stored in F0002 is the last known LOTN for that day anyway.
BUT......
If something Calls B4100500 > X41LOTN > B4000620 with yesterdays date as midnight has scrolled passed AND F0002 has already been reset to todays actual new date it will cause a reset.
So for today example is 0420 (yesterday) and (today) 0520
This will then cause X41LOTN to loop through ALL the LOTNs YYYYMMDDnnnn +1 all the way through yesterdays lots to find the next available LOTN....
Now then, when it's doing this loop (which may take 12 seconds to complete) can anyone tell me if the LOCK on F0002 is a one lock until it finds the next free LOTN (so 12 seconds long lock)
OR
Is it a load of small millisecond locks that is freed up each time as it finds and checks the LOTN for use. So multiple 0.045 second (for example) locks
Not sure if that makes sense, but it's to put into words
Please help
I have an interesting situation in that we are encountering duplicate LOTNS at server midnight. (which are actually the 0001 LOTN for the previous day!!!)
I think this is because our server is using US CST timing yet we are a global company and users are active in the Poland and Singapore warehouse when the server scrolls through midnight and the BSFN X41LOT gets the LOTN and the F0002 reference resetting to 0001.
The key to F4108 is LOTN ITM MCU so a duplicate LOTN is allowed if the MCU is different.
X41LOT does 2 things when it gives you back the LOTN.
1) go to F0002 SY = 40 N0008 = MDDnnnn format
(M month DD day of month nnnn = increment NN that resets each day if the MDD used in the call is DIFFERENT to the F0002 value
1a) increment N0008
2) Check newly formatted LOTN of YYMMDDNNNN already exists on F4108
If it does try again +1 until happy
Usually steps 1 and 2 and very quick as the MDDnnnn stored in F0002 is the last known LOTN for that day anyway.
BUT......
If something Calls B4100500 > X41LOTN > B4000620 with yesterdays date as midnight has scrolled passed AND F0002 has already been reset to todays actual new date it will cause a reset.
So for today example is 0420 (yesterday) and (today) 0520
This will then cause X41LOTN to loop through ALL the LOTNs YYYYMMDDnnnn +1 all the way through yesterdays lots to find the next available LOTN....
Now then, when it's doing this loop (which may take 12 seconds to complete) can anyone tell me if the LOCK on F0002 is a one lock until it finds the next free LOTN (so 12 seconds long lock)
OR
Is it a load of small millisecond locks that is freed up each time as it finds and checks the LOTN for use. So multiple 0.045 second (for example) locks
Not sure if that makes sense, but it's to put into words
Please help