IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Utility to Delete the files


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jeyaseelan347
Warnings : 1

New User


Joined: 05 Sep 2008
Posts: 37
Location: Chennai

PostPosted: Tue Nov 25, 2008 9:18 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Nov 25, 2008 9:32 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Nov 26, 2008 12:07 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top