There is, and has been since OS/360, although the details have changed. Use SWAREQ to run the SCT chain.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Charles Mills <[email protected]> Sent: Monday, November 4, 2019 6:56 PM To: [email protected] Subject: 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:[email protected]] On Behalf Of Jesse 1 Robinson Sent: Monday, November 4, 2019 1:01 PM To: [email protected] 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 [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
