Hi All, Can someone please give me a JCL which will actually check if the submit time/current time is between 1:00AM - 5:00AM. if the job is submitted in this time it should abend by setting maxcc to 8.
cheers enrico When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser, so that I am sure that the information requested can be reached with a very small effort
The answer is NO because that is not what JCL does. You need a program. Also, setting maxcc to 8 is not going to cause an abend - it will only cause that step to give a return code of 8.
The problem I have is that people can explain things quickly but I can only comprehend slowly. Regards Nic
Depending on the scheduler you use, you could potentially do it with variables.
So, with TWS for example, the &CHH variable resolves to the current time. Using that in conjunction with INCLUDE statements would allow you to either execute your desired job, or some program which would abend, depending on the current time.