Step and job end status are very accessible. Look at SYS1.SAMPLIB(SMFEXITS). Factors like step and maximum condition codes; step and job CPU totals; and I/O counts can be extracted from control blocks and displayed in WTOs. The code versions we use have been tailored over the years so that our messages don't look exactly like SAMPLIB examples, but it's all very doable.
All you need is a POP, a yellow card, and lots of patience. Or you could try your hand at writing some exit code in other than ASM. Like Metal C. A LOT of folks would like to get their mitts on that. . . J.O.Skip Robinson Southern California Edison Company Electric Dragon Team Paddler SHARE MVS Program Co-Manager 323-715-0595 Mobile 626-543-6132 Office ⇐=== NEW robin...@sce.com -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Charles Mills Sent: Monday, November 4, 2019 3:56 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: (External):Re: WTO message at the end of JCL It would be nice if there were a way to get the condition codes into the WTO program, something like (don't try this at home): //WTO1 EXEC PGM=WTO,COND=EVEN, // PARM='Job FOOBAR terminating. Highest CC was &MAXCC' I seem to recall a discussion here about retrieving the last and maximum job CC's from within a program running as a jobstep and the answer was that there was no good way. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Jesse 1 Robinson Sent: Monday, November 4, 2019 1:01 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: WTO message at the end of JCL MVS has provided such a mechanism forever using 1. a program that issues a WTO 2. conditional execution on the WTO step with COND=EVEN or ONLY (depending on the logic required) Most shops already have a more or less sophisticated (security wise) program to issue a WTO. Conditional JCL is free for the coding. Every shop I've worked in uses the mechanism to manage production, including my current one. There is as Brian says no way to handle a JCL error without an external 'product'. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN