I know I can determine from a CL what day of the week it is, for instance *SAT by using RTVSYSVAL QDAYOFWEEK. Is there any way in RPG (or CL for that matter), to determine if a given Saturday is the 1st, 2nd, 3rd, etc. Saturday of the current month? I have a job that I currently run for an application on the 2nd Saturday of the month from Robot. I would like to modify my process so that I can run it for other apps on every Saturday of the month and handle the run/don't run option with my code, rather than having Robot do that. I am trying to make the process non-application specific.

Reply With Quote