75 lines
2.0 KiB
Plaintext
75 lines
2.0 KiB
Plaintext
|
$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.
|
||
|
* 03/29/96 18212 LAG Windows NT port
|
||
|
* 05/15/94 13286 DTM Initial programming
|
||
|
*
|
||
|
*******************************************************************************
|
||
|
id = "%W%"
|
||
|
*******************************************************************************
|
||
|
TPRINT @(-1)
|
||
|
temp = NULL
|
||
|
CALL *ISUSER.B(0, temp)
|
||
|
IF temp = 0 THEN
|
||
|
TPRINT UVREADMSG(071000,"")
|
||
|
SLEEP 3
|
||
|
STOP
|
||
|
END
|
||
|
*******************************************************************************
|
||
|
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
|
||
|
|
||
|
msg = "Are you sure you want to delete the ":LOG:" error file?"
|
||
|
retry = 1
|
||
|
CALL *YES.NO.BOX.B(11, msg, retry )
|
||
|
IF retry = 0 THEN
|
||
|
STOP @(-1)
|
||
|
END
|
||
|
******************
|
||
|
** Windows NT port
|
||
|
**
|
||
|
IF OS.TYPE = "UNIX" THEN
|
||
|
command = OS.EXEC:" '":"rm -f ":file:"'"
|
||
|
END ELSE
|
||
|
file = CONVERT("/", "\", file)
|
||
|
command = OS.EXEC:" '":UV.BIN:"/rm -f ":file:"'"
|
||
|
END
|
||
|
**
|
||
|
******************
|
||
|
EXECUTE command
|
||
|
CALL *HELP.BOX.B(17,5,50,UVREADMSG(001403,""))
|
||
|
STOP @(-1)
|
||
|
|
||
|
END
|