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: 4649
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 How to Use DebugTool CodeCoverage Uti... neo4u IBM Tools 0 Thu Jun 22, 2017 6:38 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm


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