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
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
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
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
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
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
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
[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
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