The TIME keyword on the JOB statement cannot increase the time for the entire job over the default limit set for that jobclass - it is the TIME keyword on the EXEC statement that you need to concern yourself with.
In my old sysprog days I did this sort of thing at a couple of sites by just removing the "TIME=" specification from the JCL image based on jobclass and then issued some sort of message to indicate "keyword removed by exit xxxxxx". You have at least a couple of choices here on how to do this : (1) JES Exit 4 (and maybe JES Exit 2 for passing of "user" information from the jobcard to exit 4) (2) IEFUJV (a bit of a dark hole - JES exits are easier to debug) There are some gotchas out there - be careful with handling started tasks and also watch out for "TIME=" being matched inside a parameter string passed to a program. Rob Scott Lead Developer Rocket Software 275 Grove Street * Newton, MA 02466-2272 * USA Tel: +1.617.614.2305 Email: rsc...@rs.com Web: www.rocketsoftware.com -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Manfred Lotz Sent: 01 February 2011 10:53 To: IBM-MAIN@bama.ua.edu Subject: Existing jes exit06 and time restriction per job class Hi there, I have an existing JES2 exit06 and like to restrict time based on jobclass. Let us say I have a job class z where the maximum allowed time is 9 minutes. I check for time= in job card and if the time parameter is set, and has anything greater than 9 minutes I would like to limit the job to 9 minutes as this is the policy for that particular job class. What is the correct field to set to get this done? I found JCTETIME in the JCT but I'm actually not quite sure if this is the one to use. Thanks. -- Manfred ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html