tldm-universe/Ardent/UV/APP.PROGS/TL.VERROR.B
2024-09-09 17:51:08 -04:00

70 lines
1.9 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 - View 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/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
******************
** Windows NT port
**
IF OS.TYPE = "UNIX" THEN
List.Command = OS.EXEC:" '":"cat ":file:" | more":"'"
END ELSE
file = CONVERT("/", "\", file)
List.Command = OS.EXEC:" '":"MORE /E ":file:"'"
END
**
******************
EXECUTE List.Command
PRINT
PRINT
PRINT
PRINT
PRINT
sel.value=1
Lines = SYSTEM( 3 )
CALL *HELP.BOX.B(Lines - 6,5,50,UVREADMSG(001403,""))
STOP @(-1)
END