|
I seem to remember somewhere (in rpg ile ???) that you could determine what day of the week it was? Can anyone help me out? You can get the current day of week through the CL command, RTVSYSVAL SYSVAL(QDAYOFWEEK) RTNVAR(&WKDAY) . This will return *SUN, *MON etc. Or Using RPGLE to get a Numeric value of 0 to 6 by starting with a KNOWN Sunday put into a *ISO DATE Field Put your work date into another *ISO DATE Field DayDIFF is 5S 0 DayofWeek is 1S 0 WORKDAT SUBDUR SUNDAY DayDIFF:*D DIV 7 DayDIFF MVR DayofWeek The number returned will be 0 = Sunday 1 = Monday ETC. +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.