Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us