On Tue, 5 May 2015 11:28:32 -0400, Steve Thompson wrote:
>
>..., I use IEFBR14 with COND=ONLY 
> 
A co-worker once complained that a COND=ONLY step executed with
undesirable effect because a prior step (my program) ABENDed.
Use COND=(0,LE) (but not on the first step).

Another trick I use to create a data set conditionally within a single step:

  //HANDLE  DD  DISP=(MOD,CATLG),UNIT=SYSALLDA,SPACE=...,DSN=...
  //SYSUT2  DD  DISP=OLD,DSN=*.HANDLE,VOL=REF=*.HANDLE

No extra step; no DELETE when I'm just going to create it again with
identical attributes.  Don't know about JES3 setup.

(SYSALLDA?  SYSDA?  Whatever.)

I hate JCL!

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to