We use an odd date format. Year Week Day YYWWD.
I have four variables:
CurYear 4 0
WeekOfYear 5 0
DayNum 1 0
YYWWD 5 0
Example Values:
CurYear = 2004
WeekOfYear = 00019
DayNum = 2
I want YYWWD to equal 04192. I can do this using a couple of extra variables, several lines of code and by using MOVE and MOVEL. I'm sure there's a 'better' way of doing this or at least a more modern way.
If anyone can post some code that doesn't use move or movel to accomplish what I want, it would be very much appreciated.
Thanks in advance for any and all help.
I have four variables:
CurYear 4 0
WeekOfYear 5 0
DayNum 1 0
YYWWD 5 0
Example Values:
CurYear = 2004
WeekOfYear = 00019
DayNum = 2
I want YYWWD to equal 04192. I can do this using a couple of extra variables, several lines of code and by using MOVE and MOVEL. I'm sure there's a 'better' way of doing this or at least a more modern way.
If anyone can post some code that doesn't use move or movel to accomplish what I want, it would be very much appreciated.
Thanks in advance for any and all help.