Is there a way of identifying when it's a weekend & Bank Holiday on an AS400?
The reason I ask is that I've got a scheduled job to run a program which copies a file (PST00101B), runs some queries and then outputs the results to an outfile for some performance analysis that I'm doing. The file gets populated during overnight processing, but if it's a weekend i.e. Sat or Sun, or a Bank Holiday Monday for example, I don't want the program to run. Hence why I am wondering if there a means of identifying whether it's a weekend or a Bank Holiday so that we can ensure the program doesn't run??
The reason I ask is that I've got a scheduled job to run a program which copies a file (PST00101B), runs some queries and then outputs the results to an outfile for some performance analysis that I'm doing. The file gets populated during overnight processing, but if it's a weekend i.e. Sat or Sun, or a Bank Holiday Monday for example, I don't want the program to run. Hence why I am wondering if there a means of identifying whether it's a weekend or a Bank Holiday so that we can ensure the program doesn't run??