This is a just-wondering question, but I may need this before too long.
I like to use special values for parameters in commands and programs. For example, for a date field, I might allow a special value of TODAY, *CURRENT, *CURDATE, etc. to tell the program to retrieve the current date from the system.
To tell the system to use the date of the day before, I might use a value like YESTERDAY or *PRIOR or something.
Let’s say I have an overnight job stream where a program could start running before or after midnight, e.g. at 11:50 PM or 12:02 AM. What would be a good special value to use to mean “if the current time is after noon, use today’s date, otherwise use yesterday’s date”?
I like to use special values for parameters in commands and programs. For example, for a date field, I might allow a special value of TODAY, *CURRENT, *CURDATE, etc. to tell the program to retrieve the current date from the system.
To tell the system to use the date of the day before, I might use a value like YESTERDAY or *PRIOR or something.
Let’s say I have an overnight job stream where a program could start running before or after midnight, e.g. at 11:50 PM or 12:02 AM. What would be a good special value to use to mean “if the current time is after noon, use today’s date, otherwise use yesterday’s date”?
Comment