59 lines
1.7 KiB
Plaintext
Executable File
59 lines
1.7 KiB
Plaintext
Executable File
$INCLUDE UNIVERSE.INCLUDE MTF.INCL.H
|
|
$INCLUDE UNIVERSE.INCLUDE FILENAMES.H
|
|
$INCLUDE UNIVERSE.INCLUDE MACHINE.NAME
|
|
$INCLUDE UNIVERSE.INCLUDE TLOG.H
|
|
******************************************************************************
|
|
*
|
|
* System Admin Transaction Logging - Delete Error Logs
|
|
*
|
|
* Module %M% Version %I% Date %H%
|
|
*
|
|
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
|
|
* This is unpublished proprietary source code of Ardent Software Inc.
|
|
* The copyright notice above does not evidence any actual or intended
|
|
* publication of such source code.
|
|
*
|
|
*******************************************************************************
|
|
*
|
|
* Maintenence log - insert most recent change descriptions at top
|
|
*
|
|
* Date.... GTAR# WHO Description........................................
|
|
* 10/14/98 23801 SAP Change copyrights.
|
|
* 05/22/96 18438 JC Fix execute for NT.
|
|
* 03/25/96 18212 LAG Windows NT port
|
|
* 05/15/94 13286 DTM Initial programming
|
|
*
|
|
*******************************************************************************
|
|
id = "%W%"
|
|
*******************************************************************************
|
|
TPRINT @(-1)
|
|
*******************************************************************************
|
|
LOG = FIELD( @SENTENCE, " ", 4 )
|
|
file = ""
|
|
RECIO( file, RECIO$PATH )
|
|
file := "/"
|
|
|
|
BEGIN CASE
|
|
CASE LOG = "ERROR"
|
|
file := "uvlogd.info"
|
|
CASE LOG = "CHECKPOINT"
|
|
file := "uvchkd.info"
|
|
CASE LOG = "ROLLFORWARD"
|
|
file := "uvrolf.info"
|
|
CASE 1
|
|
file := "uvlogd.info"
|
|
END CASE
|
|
|
|
message = "Do you wish to DELETE ":file:"?"
|
|
|
|
reply = 0
|
|
CALL *YES.NO.BOX.B(9, message, reply )
|
|
IF reply THEN
|
|
command = OS.EXEC:" '":RM.CMD:" -f ":file:"'"
|
|
EXECUTE command CAPTURING nothing
|
|
END
|
|
|
|
STOP @(-1)
|
|
|
|
END
|