source: FOIAVistA/trunk/r/PHARMACY_BENEFITS_MANAGEMENT-PSU/PSUALERT.m@ 813

Last change on this file since 813 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 995 bytes
Line 
1PSUALERT ;OIFIO BAY PINES/TEH - PBM CONTROL POINT - ALERT ;OCT 15,1998
2 ;;4.0;PHARMACY BENEFITS MANAGEMENT;;MARCH, 2005
3MANUAL ;MANUAL ALERT MESSAGE - DISPLAY TO SCREEN INCLUDED.
4 I '$D(^XTMP("PSU","RUNNING")) Q
5 L ^XTMP("PSU","RUNNING"):1 I '$T D Q
6 .W !,"A previously tasked Extract (TASK #: "_$G(^XTMP("PSU","RUNNING"))_") is running....try again later. ",! S PSUALERT=1
7 .;SEND ALERT JOB RUNNING
8 .S XQA(DUZ)="",XQA("G.PSU PBM")="",XQAMSG="A PBM Extract is CURRENTLY running in the background...try later."
9 .S XQAID="PSU",XQAFLG="D",PSUALERT=1 D SETUP^XQALERT
10 W !,"A Previous job seems to have encountered an error. A new job may encounter the same problem."
11 K ^XTMP("PSU","RUNNING")
12 L Q
13 ;
14AUTO ;AUTO ALERT MESSAGE
15 I '$D(^XTMP("PSU","RUNNING")) Q
16 L ^XTMP("PSU","RUNNING"):1 I '$T D Q
17 .S XQA(DUZ)="",XQA("G.PSU PBM")="",XQAMSG="A PBM Extract is CURRENTLY running in the background...try later."
18 .S XQAID="PSU",XQAFLG="D",PSUALERT=1 D SETUP^XQALERT
19 K ^XTMP("PSU","RUNNING")
20 L Q
Note: See TracBrowser for help on using the repository browser.