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

XQA366PO.m

Go to the documentation of this file.
  1. XQA366PO ;ISC-SF.SEA/JLI - POST INSTALL FOR SURROGATES FOR ALERTS ;9/6/05 14:35
  1. ;;8.0;KERNEL;**366**;Jul 10, 1995
  1. ;;
  1. ; go through alert file and convert any current surrogates to active entries in surrogate multiple
  1. N XQAI,XQANOW,X0
  1. S XQANOW=$$NOW^XLFDT()
  1. F XQAI=0:0 S XQAI=$O(^XTV(8992,XQAI)) Q:XQAI'>0 S X0=$G(^(XQAI,0)) S:X0="" ^XTV(8992,XQAI,0)=XQAI D
  1. . N XQALSURO,XQALSTRT,XQALEND
  1. . S XQALSURO=$P(X0,U,2),XQALSTRT=$P(X0,U,3),XQALEND=$P(X0,U,4)
  1. . I XQALSURO="" Q
  1. . I $D(^XTV(8992,XQAI,2)) Q
  1. . N XQAIENS,XQAFDA
  1. . I XQALSTRT="" S XQALSTRT=XQANOW,XQAFDA(8992,XQAI_",",.03)=XQANOW D FILE^DIE("","XQAFDA") K XQAFDA
  1. . S XQAIENS="+1,"_XQAI_",",XQAFDA(8992.02,XQAIENS,.01)=XQALSTRT
  1. . S XQAFDA(8992.02,XQAIENS,.02)=XQALSURO
  1. . I XQALEND'="" S XQAFDA(8992.02,XQAIENS,.03)=XQALEND
  1. . I XQALSTRT'>XQANOW S XQAFDA(8992.02,XQAIENS,.04)=1
  1. . D UPDATE^DIE("","XQAFDA")
  1. . Q
  1. Q