It is currently 17 Aug 2018 6:58


Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Clean daily/ ctmudly
PostPosted: 01 Feb 2012 2:28 
Offline
Nouveau
Nouveau
User avatar

Joined: 02 Nov 2007 12:00
Posts: 32
Location: Holland
It is not possible to run a daily twice, because when the daily runs the tabel CMR_UDLAST is update with dailyname en date information. In some case you want to run the daily twice or more.

How to clean a user daily:

To check the daily: (start sql)
select * from CMR_UDLAST
go
----------------------------------------

To delete the daily
delete from CMR_UDLAST
where DAILYNAME = 'name'
go
---------------------------------------
To use in a script
eg scriptname is CleanDaily.sh
usage: ./CleanDaily.sh TEST
(daily TEST is an example)

#!/bin/ksh

# Gemaakt door janctm
# opruimen daily

echo ---- Daily verwijderen uit de database ----

daily=$1

SQL << eof
delete from CMR_UDLAST
where DAILYNAME = '$daily'
go
eof


Top
   
 Post subject:
PostPosted: 02 Feb 2012 1:40 
Offline
Nouveau
Nouveau
User avatar

Joined: 15 Nov 2011 12:00
Posts: 11
Or you can just use the ctmudlst command and select the appropriate option from the resultant menu. Or on the command line, ctmudlst LIST/UPDATE/DELETE <daily>


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved