The OS/400 system value QDAYOFWEEK will return the day of the week as *SUN, *MON, *TUE... etc. This can be retrieved in a CL program via the RTVSYSVAL command. Bill
Unconfigured Ad Widget
Collapse
Announcement
Collapse
No announcement yet.
determine day of week
Collapse
X
-
determine day of week
An addendum to my previous message... If you are trying to calculate the day of the week for a given date (other than today's date), you can accomplish this once you know the day of the week for a specific date. You can use RPG IV opcodes ADDDUR and SUBDUR to add or subtract from the current date. I have seen examples of how to accomplish this in Bryan Meyers RPG IV Jump Start book - http://www.mc-store.com/rpgivjumstar.html. Hope this helps, Bill
Comment
Comment