Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Utility to Delete the files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Utility to Delete the files
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

Moderator Team Head


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

PostPosted: Tue Nov 25, 2008 9:32 pm    Post subject: Reply to: Delete the files.
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: 8593
Location: Back in jolly old England

PostPosted: Wed Nov 26, 2008 12:07 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us