Re: Kind of COND in a CLIST

2016-07-21 Thread Edward Gould
Indeed there are many ways to skin a cat. With ISPF edit there are many ways to insert clist commands to imbed them into the list almost automatically. IOW there is no best way to do this. Use your imagination and have a got at it. Ed

Re: Kind of COND in a CLIST

2016-07-21 Thread Elardus Engelbrecht
Radoslaw Skorupka wrote: >I'm going to submit huge command list in a batch (IKJEFT01). The commands are >unrelated (no loops, etc.) however I want to stop the script after command >failure, that means RC<>0. >Example: >RDEF class PROFILE1.** ... >RDEF class PROFILE2.** ... >RDEF class

Re: Kind of COND in a CLIST

2016-07-21 Thread Paul Gilmartin
On Thu, 21 Jul 2016 09:00:52 -0700, Lizette Koehler wrote: >I would think putting your commands in a DATASET, then using REXX to execute >them one at a time and check the return code would work. > With Rexx I'd use SIGNAL ON NOVALUE and wrap the few commands for which RC<>0 with call to a

Re: Kind of COND in a CLIST

2016-07-21 Thread Lizette Koehler
n List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On > Behalf Of R.S. > Sent: Thursday, July 21, 2016 5:37 AM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Kind of COND in a CLIST > > I'm going to submit huge command list in a batch (IKJEFT01). The commands are > unrelated (no loops, etc.) howeve

Re: Kind of COND in a CLIST

2016-07-21 Thread Mick Graley
Also if you were to create a CLIST for this as suggested previously, rather than adding lots of IFs or WHENs, you should just be able to specify CONTROL FLUSH once at the beginning of the CLIST. Mick. On 21 July 2016 at 14:24, Norbert Friemel wrote: > On Thu, 21 Jul 2016

Re: Kind of COND in a CLIST

2016-07-21 Thread Norbert Friemel
On Thu, 21 Jul 2016 14:36:30 +0200, R.S. wrote: > I'm going to submit huge command list in a batch (IKJEFT01). The > commands are unrelated (no loops, etc.) however I want to stop the > script after command failure, that means RC<>0. > > Example: > //STEP1 EXEC PGM=IKJEFT01 > //SYSTSPRT DD

Re: Kind of COND in a CLIST

2016-07-21 Thread Walt Farrell
On Thu, 21 Jul 2016 14:36:30 +0200, R.S. wrote: >I'm going to submit huge command list in a batch (IKJEFT01). The >commands are unrelated (no loops, etc.) however I want to stop the >script after command failure, that means RC<>0. > >Example: >//STEP1 EXEC

Re: Kind of COND in a CLIST

2016-07-21 Thread Hardee, Chuck
[mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of R.S. Sent: Thursday, July 21, 2016 8:37 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Kind of COND in a CLIST I'm going to submit huge command list in a batch (IKJEFT01). The commands are unrelated (no loops, etc.) however I want to stop the script

Kind of COND in a CLIST

2016-07-21 Thread R.S.
I'm going to submit huge command list in a batch (IKJEFT01). The commands are unrelated (no loops, etc.) however I want to stop the script after command failure, that means RC<>0. Example: //STEP1 EXEC PGM=IKJEFT01 //SYSTSPRT DD SYSOUT=* //SYSTSIN DD *,DLM=@@ /* command list */ RDEF