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
toggle quoted message
Show quoted text
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.
?
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.