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

RMPRTDEL.m

Go to the documentation of this file.
RMPRTDEL ;DEV/RGB - STOP PATIENT NOTIFICATION NIGHTLY JOB;02/18/16
 ;;3.0;PROSTHETICS;**180**;Feb 09, 1996;Build 12
 ;
 Q
EN ; Entry Point
 ;
 D DELETE
 D BMES^XPDUTL("Task removal completed")
 Q
 ;
 ;
DELETE ;Delete Task
 N RMPRTSK,RMPROPT,DA,DIK
 S RMPRTSK="RMPR DVN NIGHTLY JOB"
 S RMPROPT=$O(^DIC(19,"B",RMPRTSK,"")) Q:'RMPROPT
 S DA="" S:'$G(DT) DT=$$DT^XLFDT
 F  S DA=$O(^DIC(19.2,"B",RMPROPT,DA)) Q:'+DA  D
 . S ^XTMP("RMPRTSK",$J,0)=$$FMADD^XLFDT(DT,90)_"^"_DT_"^copy of RMPR DVN NIGHTLY Task^"_DA
 . M ^XTMP("RMPRTSK",$J,"DIC",19.2,DA)=^DIC(19.2,DA)
 . S DIK="^DIC(19.2," D ^DIK
 . D BMES^XPDUTL("Legacy task "_RMPRTSK_" Deleted.")
 Q
 ;