I am not sure this is an IEFBR14 issue, but rather the use of DISP=MOD. The
process, as I understand it, is if the dataset is DISP=MOD (Forget about the
remaining parms for now) then
if the dataset exists, no SPACE= is required
If the dataset does not exist, then the system treats it as NEW and if
there is no SPACE defaults, then you need to include SPACE= parm.
Most vendor JCL I have used code SPACE= on their IEFBR14s when using
DISP=MOD,DELETE,DELETE
Other option is to use IDCAMS with DELETE 'dsn' . I will set the MAXCC
equal to 0 before ending the IDCAMS Step.
Lizette
> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]]
> On Behalf Of Scott Ford
> Sent: Tuesday, May 05, 2015 7:28 AM
> To: [email protected]
> Subject: Re: IEFBR14 question
>
> All,
>
> Since I started this "question", so how is "one" to check for the existence of
> datasets if we can't really trust IEFBR14 ? Yeah, I can write an Assembler
> routine, by why, when BR14 is supposed to work...I have staging datasets we
> use to build our product, my first step is the IEFBR14 , to delete these
> datasets if they exist, if not fine give me a return code I can test for and
> proceed on with the other steps.
>
> Regards,
>
> Scott
>
> On Tuesday, May 5, 2015, Elardus Engelbrecht
> <[email protected]>
> wrote:
>
> > John Eells wrote:
> >
> > >The recurring confusion about what IEFBR14 itself actually does
> > >(clear
> > GPR15 and return) and what people seem to think it does from the odd
> > post here and their (not yours) is one reason I call IEFBR14 the "most
> > misused program in the history of z/OS."
> >
> > ... and also in the history of MVS and OS/390.
> >
> > and Lizette Koehler said really really tongue in cheek this (and
> > confusing a person who replied on her post):
> >
> > "And IEFBR14 is more that return on R14. It does stuff. Just look
> > how big it is."
> >
> > and I said earlier: 'IEFBR14 is just a lazy program setting a RC=00
> > and nothing else.'
> >
> > Hmmm, I *always* ( ;-D ) wanted to sign IEFBR14 with a (program)
> > digital certificate with RACF, but PDS datasets (at least the
> > SYS1.LINKLIB) are not supported for this stunt. <grin>
> >
> > Has a patent been taken out on IEFBR14 (or its queer position in MVS,
> > OS390, z/OS)? If not, I want to register it, but I am too broke. ;-D
> >
> > Groete / Greetings
> > Elardus Engelbrecht
> >
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN