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

PSUALERT.m

Go to the documentation of this file.
  1. PSUALERT ;OIFIO BAY PINES/TEH - PBM CONTROL POINT - ALERT ;OCT 15,1998
  1. ;;4.0;PHARMACY BENEFITS MANAGEMENT;;MARCH, 2005
  1. MANUAL ;MANUAL ALERT MESSAGE - DISPLAY TO SCREEN INCLUDED.
  1. I '$D(^XTMP("PSU","RUNNING")) Q
  1. L ^XTMP("PSU","RUNNING"):1 I '$T D Q
  1. .W !,"A previously tasked Extract (TASK #: "_$G(^XTMP("PSU","RUNNING"))_") is running....try again later. ",! S PSUALERT=1
  1. .;SEND ALERT JOB RUNNING
  1. .S XQA(DUZ)="",XQA("G.PSU PBM")="",XQAMSG="A PBM Extract is CURRENTLY running in the background...try later."
  1. .S XQAID="PSU",XQAFLG="D",PSUALERT=1 D SETUP^XQALERT
  1. W !,"A Previous job seems to have encountered an error. A new job may encounter the same problem."
  1. K ^XTMP("PSU","RUNNING")
  1. L Q
  1. ;
  1. AUTO ;AUTO ALERT MESSAGE
  1. I '$D(^XTMP("PSU","RUNNING")) Q
  1. L ^XTMP("PSU","RUNNING"):1 I '$T D Q
  1. .S XQA(DUZ)="",XQA("G.PSU PBM")="",XQAMSG="A PBM Extract is CURRENTLY running in the background...try later."
  1. .S XQAID="PSU",XQAFLG="D",PSUALERT=1 D SETUP^XQALERT
  1. K ^XTMP("PSU","RUNNING")
  1. L Q