羲堁极郤

ctrl + shift + ? for shortcuts
© 2025 羲堁极郤

eqqdelds


 

Hi group members. I learned something new today: where I used to delete datasets (needed to be allocated later in the job) using IEFBR14 or IDCAMS, there is a program called EQQDELDS (part of TWS if I'm not mistaken) that can look at DD statements in following job steps and delete every dataset which already is catalogued, but will be allocated again with disp(new,delete) or disp(new,catlg).
?
Is there a program with equivalent functionality in TK5? Outside of TK5? Or is somebody willing to look into that so I can upgrade some of my JCL and be quicker with new JCL? A quick web search turned up nothing.
?
Please let me know.
?
best regards,
?
賊梗紳谷 Jansen.


 

I think You can build a utility to create a job that delete files,.with cobol,. Utility examine jcl syntaxis. On control-m exist a utility to delete.files.


El jue., 31 de octubre de 2024 4:58 a. m., rvjansen@... via <rvjansen=[email protected]> escribi車:
Hi group members. I learned something new today: where I used to delete datasets (needed to be allocated later in the job) using IEFBR14 or IDCAMS, there is a program called EQQDELDS (part of TWS if I'm not mistaken) that can look at DD statements in following job steps and delete every dataset which already is catalogued, but will be allocated again with disp(new,delete) or disp(new,catlg).
?
Is there a program with equivalent functionality in TK5? Outside of TK5? Or is somebody willing to look into that so I can upgrade some of my JCL and be quicker with new JCL? A quick web search turned up nothing.
?
Please let me know.
?
best regards,
?
賊梗紳谷 Jansen.


 

羲堁极郤

Rene,

Yes, that program is part of a LICENSED PROGRAM (Tivoli Workload Scheduler) 每

I STRONGLY suggest you ignore a program that may or may not be available in the TK5 environment - and code either IEFBR14, ?IDCAMS or IEHPROGM

Using supplied utilities 每 OR 每 as Jose states, you certainly can ROLL your OWN - ?

?

IEFBR14 will of course FAIL if the data set is not there to delete 每 quick and dirty

?

IDCAMS will deal with catalogs 每 and is more robust and you can check and set the MAX return code -

?

Old tricks 每 on ANY job that is going to create new data sets 每 simply add a IDCAMS step prior to the create step to delete 每 this will insure you will not fail for duplicate data sets.? 每 set the MAXRC and check the Return code 每 if required 每 or set MAXRC to zero and go on to the next step.

?

Or 每 there may be reason to rename the existing data set if it exists -? IDCAMS can handle that too -

?

Coding JCL is a learning experience 每 and will become second nature if you do it enough

?

?

-J-

?

Jeff Bassett

Bassettj@...

(301) 424-3362 (office)

(240) 388-7148 Cell

?

Time spent flying? - is NOT deducted from one*s lifespan

?

From: [email protected] <[email protected]> On Behalf Of jose via groups.io
Sent: Thursday, October 31, 2024 3:50 PM
To: [email protected]
Subject: Re: [H390-MVS] eqqdelds

?

I think You can build a utility to create a job that delete files,.with cobol,. Utility examine jcl syntaxis. On control-m exist a utility to delete.files.

?

El jue., 31 de octubre de 2024 4:58 a. m., rvjansen@... via <rvjansen=[email protected]> escribi車:

Hi group members. I learned something new today: where I used to delete datasets (needed to be allocated later in the job) using IEFBR14 or IDCAMS, there is a program called EQQDELDS (part of TWS if I'm not mistaken) that can look at DD statements in following job steps and delete every dataset which already is catalogued, but will be allocated again with disp(new,delete) or disp(new,catlg).

?

Is there a program with equivalent functionality in TK5? Outside of TK5? Or is somebody willing to look into that so I can upgrade some of my JCL and be quicker with new JCL? A quick web search turned up nothing.

?

Please let me know.

?

best regards,

?

賊梗紳谷 Jansen.


 

Hi,

With IEFBR14 and DISP=(MOD,DELETE) it runs every time and take very few cpu time compared to IDCAMS

賊梗紳谷


Le jeudi 31 octobre 2024 角 22:22:23 UTC+1, Jeff Bassett <bassettj@...> a 谷crit :


Rene,

Yes, that program is part of a LICENSED PROGRAM (Tivoli Workload Scheduler) 每

I STRONGLY suggest you ignore a program that may or may not be available in the TK5 environment - and code either IEFBR14, ?IDCAMS or IEHPROGM

Using supplied utilities 每 OR 每 as Jose states, you certainly can ROLL your OWN - ?

?

IEFBR14 will of course FAIL if the data set is not there to delete 每 quick and dirty

?

IDCAMS will deal with catalogs 每 and is more robust and you can check and set the MAX return code -

?

Old tricks 每 on ANY job that is going to create new data sets 每 simply add a IDCAMS step prior to the create step to delete 每 this will insure you will not fail for duplicate data sets.? 每 set the MAXRC and check the Return code 每 if required 每 or set MAXRC to zero and go on to the next step.

?

Or 每 there may be reason to rename the existing data set if it exists -? IDCAMS can handle that too -

?

Coding JCL is a learning experience 每 and will become second nature if you do it enough

?

?

-J-

?

Jeff Bassett

Bassettj@...

(301) 424-3362 (office)

(240) 388-7148 Cell

?

Time spent flying? - isNOT deducted from one*s lifespan

?

From: [email protected] <[email protected]>On Behalf Of jose via groups.io
Sent: Thursday, October 31, 2024 3:50 PM
To: [email protected]
Subject: Re: [H390-MVS] eqqdelds

?

I think You can build a utility to create a job that delete files,.with cobol,. Utility examine jcl syntaxis. On control-m exist a utility to delete.files.

?

El jue., 31 de octubre de 2024 4:58 a. m., rvjansen@... via <rvjansen=[email protected]> escribi車:

Hi group members. I learned something new today: where I used to delete datasets (needed to be allocated later in the job) using IEFBR14 or IDCAMS, there is a program called EQQDELDS (part of TWS if I'm not mistaken) that can look at DD statements in following job steps and delete every dataset which already is catalogued, but will be allocated again with disp(new,delete) or disp(new,catlg).

?

Is there a program with equivalent functionality in TK5? Outside of TK5? Or is somebody willing to look into that so I can upgrade some of my JCL and be quicker with new JCL? A quick web search turned up nothing.

?

Please let me know.

?

best regards,

?

賊梗紳谷 Jansen.


 

If the file doesn't exist you have to give the space parameter
SPACE=(TRK,1) is enough (with SMS)

賊梗紳谷


Le jeudi 31 octobre 2024 角 22:39:19 UTC+1, Rene BRANDT via groups.io <rbr146@...> a 谷crit :


Hi,

With IEFBR14 and DISP=(MOD,DELETE) it runs every time and take very few cpu time compared to IDCAMS

賊梗紳谷


Le jeudi 31 octobre 2024 角 22:22:23 UTC+1, Jeff Bassett <bassettj@...> a 谷crit :


Rene,

Yes, that program is part of a LICENSED PROGRAM (Tivoli Workload Scheduler) 每

I STRONGLY suggest you ignore a program that may or may not be available in the TK5 environment - and code either IEFBR14, ?IDCAMS or IEHPROGM

Using supplied utilities 每 OR 每 as Jose states, you certainly can ROLL your OWN - ?

?

IEFBR14 will of course FAIL if the data set is not there to delete 每 quick and dirty

?

IDCAMS will deal with catalogs 每 and is more robust and you can check and set the MAX return code -

?

Old tricks 每 on ANY job that is going to create new data sets 每 simply add a IDCAMS step prior to the create step to delete 每 this will insure you will not fail for duplicate data sets.? 每 set the MAXRC and check the Return code 每 if required 每 or set MAXRC to zero and go on to the next step.

?

Or 每 there may be reason to rename the existing data set if it exists -? IDCAMS can handle that too -

?

Coding JCL is a learning experience 每 and will become second nature if you do it enough

?

?

-J-

?

Jeff Bassett

Bassettj@...

(301) 424-3362 (office)

(240) 388-7148 Cell

?

Time spent flying? - isNOT deducted from one*s lifespan

?

From: [email protected] <[email protected]>On Behalf Of jose via groups.io
Sent: Thursday, October 31, 2024 3:50 PM
To: [email protected]
Subject: Re: [H390-MVS] eqqdelds

?

I think You can build a utility to create a job that delete files,.with cobol,. Utility examine jcl syntaxis. On control-m exist a utility to delete.files.

?

El jue., 31 de octubre de 2024 4:58 a. m., rvjansen@... via <rvjansen=[email protected]> escribi車:

Hi group members. I learned something new today: where I used to delete datasets (needed to be allocated later in the job) using IEFBR14 or IDCAMS, there is a program called EQQDELDS (part of TWS if I'm not mistaken) that can look at DD statements in following job steps and delete every dataset which already is catalogued, but will be allocated again with disp(new,delete) or disp(new,catlg).

?

Is there a program with equivalent functionality in TK5? Outside of TK5? Or is somebody willing to look into that so I can upgrade some of my JCL and be quicker with new JCL? A quick web search turned up nothing.

?

Please let me know.

?

best regards,

?

賊梗紳谷 Jansen.


 

羲堁极郤

Rene,

I totally agree 每 as with many things 每 there are MANY ways to reach the end goal 每

IEFBR14 of course, really is only a few instructions 每 to clear some registers and return 每 (there are many stories of apars against IEFBR14 over the years)

So, running IEFBR14 is actually only using the Interpreter portion of JCL processing.?? (and of course the step initialization and termination)

?

There are even some places where we attempt to structure jobs to COMBINE steps 每 due to the high overhead of each step 每 (when there are situations that include hundreds or thousands of steps 每 this can be a big deal) 每

?

?

-J-

?

Jeff Bassett

Bassettj@...

(301) 424-3362 (office)

(240) 388-7148 Cell

?

Time spent flying? - is NOT deducted from one*s lifespan

?

From: [email protected] <[email protected]> On Behalf Of Rene BRANDT via groups.io
Sent: Thursday, October 31, 2024 5:53 PM
To: [email protected]
Subject: Re: [H390-MVS] eqqdelds

?

If the file doesn't exist you have to give the space parameter
SPACE=(TRK,1) is enough (with SMS)

賊梗紳谷

Le jeudi 31 octobre 2024 角 22:39:19 UTC+1, Rene BRANDT via groups.io <rbr146@...> a 谷crit :

?

?

Hi,

With IEFBR14 and DISP=(MOD,DELETE) it runs every time and take very few cpu time compared to IDCAMS

賊梗紳谷

Le jeudi 31 octobre 2024 角 22:22:23 UTC+1, Jeff Bassett <bassettj@...> a 谷crit :

?

?

Rene,

Yes, that program is part of a LICENSED PROGRAM (Tivoli Workload Scheduler) 每

I STRONGLY suggest you ignore a program that may or may not be available in the TK5 environment - and code either IEFBR14, ?IDCAMS or IEHPROGM

Using supplied utilities 每 OR 每 as Jose states, you certainly can ROLL your OWN - ?

?

IEFBR14 will of course FAIL if the data set is not there to delete 每 quick and dirty

?

IDCAMS will deal with catalogs 每 and is more robust and you can check and set the MAX return code -

?

Old tricks 每 on ANY job that is going to create new data sets 每 simply add a IDCAMS step prior to the create step to delete 每 this will insure you will not fail for duplicate data sets.? 每 set the MAXRC and check the Return code 每 if required 每 or set MAXRC to zero and go on to the next step.

?

Or 每 there may be reason to rename the existing data set if it exists -? IDCAMS can handle that too -

?

Coding JCL is a learning experience 每 and will become second nature if you do it enough

?

?

-J-

?

Jeff Bassett

Bassettj@...

(301) 424-3362 (office)

(240) 388-7148 Cell

?

Time spent flying? - isNOT deducted from one*s lifespan

?

From: [email protected] <[email protected]>On Behalf Of jose via groups.io
Sent: Thursday, October 31, 2024 3:50 PM
To: [email protected]
Subject: Re: [H390-MVS] eqqdelds

?

I think You can build a utility to create a job that delete files,.with cobol,. Utility examine jcl syntaxis. On control-m exist a utility to delete.files.

?

El jue., 31 de octubre de 2024 4:58 a. m., rvjansen@... via <rvjansen=[email protected]> escribi車:

Hi group members. I learned something new today: where I used to delete datasets (needed to be allocated later in the job) using IEFBR14 or IDCAMS, there is a program called EQQDELDS (part of TWS if I'm not mistaken) that can look at DD statements in following job steps and delete every dataset which already is catalogued, but will be allocated again with disp(new,delete) or disp(new,catlg).

?

Is there a program with equivalent functionality in TK5? Outside of TK5? Or is somebody willing to look into that so I can upgrade some of my JCL and be quicker with new JCL? A quick web search turned up nothing.

?

Please let me know.

?

best regards,

?

賊梗紳谷 Jansen.


 

羲堁极郤

Jeff,

Thank you - I fail to see the relevance of it being part of a licensed program or that fact being uppercased. ?I just wanted to know if someone made equivalent functionality yet and whether that might be in TK5. I mostly use GDG?s or the IDCAMS approach but I see the point of this more modern approach.

Yes. Of course I can roll my own using JFCB and the dynalloc SVC. I am not going to waste time on that if someone put that together already but might do if nobody did.

I cannot parse the logic of your &strong* ?suggestion to &ignore a program that may or not be available in TK5* - I don*t even know what that means.?

Also, I put JCL together for just about 40 years now - so mentioning the learning experience is also a bit irrelevant for the issue at hand.

賊梗紳谷.

On 31 Oct 2024, at 22:22, Jeff Bassett <bassettj@...> wrote:

?

Rene,

Yes, that program is part of a LICENSED PROGRAM (Tivoli Workload Scheduler) 每

I STRONGLY suggest you ignore a program that may or may not be available in the TK5 environment - and code either IEFBR14, ?IDCAMS or IEHPROGM

Using supplied utilities 每 OR 每 as Jose states, you certainly can ROLL your OWN - ?

?

IEFBR14 will of course FAIL if the data set is not there to delete 每 quick and dirty

?

IDCAMS will deal with catalogs 每 and is more robust and you can check and set the MAX return code -

?

Old tricks 每 on ANY job that is going to create new data sets 每 simply add a IDCAMS step prior to the create step to delete 每 this will insure you will not fail for duplicate data sets.? 每 set the MAXRC and check the Return code 每 if required 每 or set MAXRC to zero and go on to the next step.

?

Or 每 there may be reason to rename the existing data set if it exists -? IDCAMS can handle that too -

?

Coding JCL is a learning experience 每 and will become second nature if you do it enough

?

?

-J-

?

Jeff Bassett

Bassettj@...

(301) 424-3362 (office)

(240) 388-7148 Cell

?

Time spent flying? - is NOT deducted from one*s lifespan

?

From: [email protected] <[email protected]> On Behalf Of jose via groups.io
Sent: Thursday, October 31, 2024 3:50 PM
To: [email protected]
Subject: Re: [H390-MVS] eqqdelds

?

I think You can build a utility to create a job that delete files,.with cobol,. Utility examine jcl syntaxis. On control-m exist a utility to delete.files.

?

El jue., 31 de octubre de 2024 4:58 a. m., rvjansen@... via <rvjansen=[email protected]> escribi車:

Hi group members. I learned something new today: where I used to delete datasets (needed to be allocated later in the job) using IEFBR14 or IDCAMS, there is a program called EQQDELDS (part of TWS if I'm not mistaken) that can look at DD statements in following job steps and delete every dataset which already is catalogued, but will be allocated again with disp(new,delete) or disp(new,catlg).

?

Is there a program with equivalent functionality in TK5? Outside of TK5? Or is somebody willing to look into that so I can upgrade some of my JCL and be quicker with new JCL? A quick web search turned up nothing.

?

Please let me know.

?

best regards,

?

賊梗紳谷 Jansen.


 

Is correct exist any form to do this, also think from cobol can call rexx program o clist, but si necesary time to test and know how do this. Is good have code to share as wiki


El jue., 31 de octubre de 2024 5:13 p. m., rvjansen@... via <rvjansen=[email protected]> escribi車:
Jeff,

Thank you - I fail to see the relevance of it being part of a licensed program or that fact being uppercased.? I just wanted to know if someone made equivalent functionality yet and whether that might be in TK5. I mostly use GDG?s or the IDCAMS approach but I see the point of this more modern approach.

Yes. Of course I can roll my own using JFCB and the dynalloc SVC. I am not going to waste time on that if someone put that together already but might do if nobody did.

I cannot parse the logic of your &strong* ?suggestion to &ignore a program that may or not be available in TK5* - I don*t even know what that means.?

Also, I put JCL together for just about 40 years now - so mentioning the learning experience is also a bit irrelevant for the issue at hand.

賊梗紳谷.

On 31 Oct 2024, at 22:22, Jeff Bassett <bassettj@...> wrote:

?

Rene,

Yes, that program is part of a LICENSED PROGRAM (Tivoli Workload Scheduler) 每

I STRONGLY suggest you ignore a program that may or may not be available in the TK5 environment - and code either IEFBR14, ?IDCAMS or IEHPROGM

Using supplied utilities 每 OR 每 as Jose states, you certainly can ROLL your OWN - ?

?

IEFBR14 will of course FAIL if the data set is not there to delete 每 quick and dirty

?

IDCAMS will deal with catalogs 每 and is more robust and you can check and set the MAX return code -

?

Old tricks 每 on ANY job that is going to create new data sets 每 simply add a IDCAMS step prior to the create step to delete 每 this will insure you will not fail for duplicate data sets.? 每 set the MAXRC and check the Return code 每 if required 每 or set MAXRC to zero and go on to the next step.

?

Or 每 there may be reason to rename the existing data set if it exists -? IDCAMS can handle that too -

?

Coding JCL is a learning experience 每 and will become second nature if you do it enough

?

?

-J-

?

Jeff Bassett

Bassettj@...

(301) 424-3362 (office)

(240) 388-7148 Cell

?

Time spent flying? - is NOT deducted from one*s lifespan

?

From: [email protected] <[email protected]> On Behalf Of jose via
Sent: Thursday, October 31, 2024 3:50 PM
To: [email protected]
Subject: Re: [H390-MVS] eqqdelds

?

I think You can build a utility to create a job that delete files,.with cobol,. Utility examine jcl syntaxis. On control-m exist a utility to delete.files.

?

El jue., 31 de octubre de 2024 4:58 a. m., rvjansen@... via <rvjansen=[email protected]> escribi車:

Hi group members. I learned something new today: where I used to delete datasets (needed to be allocated later in the job) using IEFBR14 or IDCAMS, there is a program called EQQDELDS (part of TWS if I'm not mistaken) that can look at DD statements in following job steps and delete every dataset which already is catalogued, but will be allocated again with disp(new,delete) or disp(new,catlg).

?

Is there a program with equivalent functionality in TK5? Outside of TK5? Or is somebody willing to look into that so I can upgrade some of my JCL and be quicker with new JCL? A quick web search turned up nothing.

?

Please let me know.

?

best regards,

?

賊梗紳谷 Jansen.


 

羲堁极郤

Rene,

First, I apologize if I came across in some manner to offend 每 NOT my intention.? I did NOT take into account your experience 每 Again, Please 每 forgive.

?

?

I was suggesting that while there ARE solutions in the world today 每 (in this case the licensed Tivoli module) 每 I feel strongly (of course your view is entirely yours and we can certainly have different views) that for our TK5 environment 每( I.E. hobbyist and learning) 每 trying to use same is again, IN MY OPINION 每 probably not the best choice 每

?

-J-

?

Jeff Bassett

Bassettj@...

(301) 424-3362 (office)

(240) 388-7148 Cell

?

Time spent flying? - is NOT deducted from one*s lifespan

?

From: [email protected] <[email protected]> On Behalf Of rvjansen@... via groups.io
Sent: Thursday, October 31, 2024 6:13 PM
To: [email protected]
Subject: Re: [H390-MVS] eqqdelds

?

Jeff,

?

Thank you - I fail to see the relevance of it being part of a licensed program or that fact being uppercased. ?I just wanted to know if someone made equivalent functionality yet and whether that might be in TK5. I mostly use GDG?s or the IDCAMS approach but I see the point of this more modern approach.

?

Yes. Of course I can roll my own using JFCB and the dynalloc SVC. I am not going to waste time on that if someone put that together already but might do if nobody did.

?

I cannot parse the logic of your &strong* ?suggestion to &ignore a program that may or not be available in TK5* - I don*t even know what that means.?

?

Also, I put JCL together for just about 40 years now - so mentioning the learning experience is also a bit irrelevant for the issue at hand.

?

賊梗紳谷.



On 31 Oct 2024, at 22:22, Jeff Bassett <bassettj@...> wrote:

?

Rene,

Yes, that program is part of a LICENSED PROGRAM (Tivoli Workload Scheduler) 每

I STRONGLY suggest you ignore a program that may or may not be available in the TK5 environment - and code either IEFBR14, ?IDCAMS or IEHPROGM

Using supplied utilities 每 OR 每 as Jose states, you certainly can ROLL your OWN - ?

?

IEFBR14 will of course FAIL if the data set is not there to delete 每 quick and dirty

?

IDCAMS will deal with catalogs 每 and is more robust and you can check and set the MAX return code -

?

Old tricks 每 on ANY job that is going to create new data sets 每 simply add a IDCAMS step prior to the create step to delete 每 this will insure you will not fail for duplicate data sets.? 每 set the MAXRC and check the Return code 每 if required 每 or set MAXRC to zero and go on to the next step.

?

Or 每 there may be reason to rename the existing data set if it exists -? IDCAMS can handle that too -

?

Coding JCL is a learning experience 每 and will become second nature if you do it enough

?

?

-J-

?

Jeff Bassett

Bassettj@...

(301) 424-3362 (office)

(240) 388-7148 Cell

?

Time spent flying? - is NOT deducted from one*s lifespan

?

From: [email protected] <[email protected]> On Behalf Of jose via groups.io
Sent: Thursday, October 31, 2024 3:50 PM
To: [email protected]
Subject: Re: [H390-MVS] eqqdelds

?

I think You can build a utility to create a job that delete files,.with cobol,. Utility examine jcl syntaxis. On control-m exist a utility to delete.files.

?

El jue., 31 de octubre de 2024 4:58 a. m., rvjansen@... via <rvjansen=[email protected]> escribi車:

Hi group members. I learned something new today: where I used to delete datasets (needed to be allocated later in the job) using IEFBR14 or IDCAMS, there is a program called EQQDELDS (part of TWS if I'm not mistaken) that can look at DD statements in following job steps and delete every dataset which already is catalogued, but will be allocated again with disp(new,delete) or disp(new,catlg).

?

Is there a program with equivalent functionality in TK5? Outside of TK5? Or is somebody willing to look into that so I can upgrade some of my JCL and be quicker with new JCL? A quick web search turned up nothing.

?

Please let me know.

?

best regards,

?

賊梗紳谷 Jansen.