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

BQISYTSK.m

Go to the documentation of this file.
BQISYTSK ;GDIT/HCSD/ALA-Check on tasks ; 06 Aug 2015  4:12 PM
 ;;2.6;ICARE MANAGEMENT SYSTEM;;Jul 07, 2017;Build 72
 ;
 ;
EN ;EP
 NEW BQTSDTM,BQT,BDT1,BDT2,BDT3,BDT4,ZTSK
 S ^XTMP("BQISYTSK",0)=$$FMADD^XLFDT(DT,7)_U_$$DT^XLFDT()_U_"List of running tasks"
 S BQTSDTM=$$NOW^XLFDT()
 S BQT=""
 F  S BQT=$O(^%ZTSCH("TASK",BQT)) Q:BQT=""  D
 . S BDT1=$P(^%ZTSCH("TASK",BQT),"^",5),BDT2=$P(^%ZTSCH("TASK",BQT),"^",8)
 . S BDT3=$P(^%ZTSCH("TASK",BQT),"^",13),BDT4=$G(^%ZTSCH("TASK",BQT,1))
 . K ZTSK
 . S ZTSK=BQT D STAT^%ZTLOAD
 . S ^XTMP("BQISYTSK",BQTSDTM,BQT)=$G(ZTSK(2))_"^"_$P(^%ZTSCH("TASK",BQT),"^",4)_"^"_$$HTFM^XLFDT(BDT1)_"^"_$$HTFM^XLFDT(BDT2)_"^"_$$HTFM^XLFDT(BDT3)_"^"_$$HTFM^XLFDT(BDT4)
 Q