View previous topic :: View next topic
|
Author |
Message |
jeyaseelan347 Warnings : 1 New User
Joined: 05 Sep 2008 Posts: 37 Location: Chennai
|
|
|
|
Hi,
My scenario is, I need to delete the all the files. If anyone of the file is not deleted I need to send a mail with the log information. I can't use IDCAMS because the file names are having symbolic parameters in it.
Also I need the return code of non zero on delete step if the files are not deleted. So i execute the mail step based on return code. Can any please tell me JCL utility to do the same function. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Off the top of my head, I'd use a program to resolve the various datasets with the symbolic parameters into real dataset names (plenty of examples are in these forums) and write those names to a log. Then I'd use that log as input to IDCAMS (yes) with a bunch of DELETE statements or to TSO/E as DELETE commands. Then, the resulting output could be reviewed for any non-successful deletes, and the results routed to the email. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
My scenario is, I need to delete the all the files. |
Please give information of how the files to be deleted are defined
Do you mean ABC.*.XYZ.**
or symbolic ABC.&this1..&that1..LLQ |
|
Back to top |
|
|
|