Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: XULMLOG

XULMLOG.m

Go to the documentation of this file.
  1. XULMLOG ;IRMFO-ALB/CJM/SWO/RGG - KERNEL LOCK MANAGER ;08/21/2012
  1. ;;8.0;KERNEL;**608**;JUL 10, 1995;Build 84
  1. ;;Per VA Directive 6402, this routine should not be modified
  1. ;
  1. ; ******************************************************************
  1. ; * *
  1. ; * The Kernel Lock Manager is based on the VistA Lock Manager *
  1. ; * developed by Tommy Martin. *
  1. ; * *
  1. ; ******************************************************************
  1. ;
  1. ;
  1. PURGE ;
  1. ;
  1. N DIR,LAST,TIME,IEN,DIRUT,Y
  1. S DIR(0)="N^0:365:0"
  1. S DIR("B")=30
  1. S DIR("A")="How many days of data should be retained"
  1. D ^DIR
  1. Q:$D(DIRUT)
  1. S LAST=$$FMADD^XLFDT(($$NOW^XLFDT\1),-Y)
  1. S TIME=0
  1. F S TIME=$O(^XLM(8993.2,"B",TIME)) Q:'TIME Q:TIME>LAST D
  1. .S IEN=0
  1. .F S IEN=$O(^XLM(8993.2,"B",TIME,IEN)) Q:'IEN D DELETE^XULMU(8993.2,IEN)
  1. W !,"DONE!" D PAUSE^XULMU
  1. ;
  1. Q
  1. ;
  1. ;