source: WorldVistAEHR/trunk/r/IFCAP-PRC-PRX--PRCA--PRCN/PRCFOOR4.m@ 1389

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

initial load of WorldVistAEHR

File size: 2.6 KB
Line 
1PRCFOOR4 ;WISC/CTB,AKS - 850 UTILITIES ;12/15/94 12:00 PM
2V ;;5.1;IFCAP;;Oct 20, 2000
3 ;Per VHA Directive 10-93-142, this routine should not be modified.
4REMOVE(DA) ;REMOVE MESSAGE FROM 423.6
5 D KILL^PRCOSRV3(DA)
6 QUIT
7FCPBULL(PRCDA) ;FIRE BULLETIN THAT CCP MESSAGE HAS BEEN COMPLETED
8 S XMB(1)=PRCDA,XMB="PRCF FMS ADJUSTMENTS",XMDUZ=.5,XMY(DUZ)=""
9 D EN^XMB QUIT
10BULL(PRCDA) ;FIRE BULLETIN THAT OOP MESSAGE HAS BEEN COMPLETED SUCCESSFULLY.
11 S XMB(1)=PRCDA,XMB="PRCF_850_BULLETIN",XMDUZ=.5,XMY(DUZ)=""
12 D EN^XMB
13 Q
14BULL1(PRCDA,X) ;FIRE BULLETIN THAT OOP MESSAGE ENCOUNTERED AN ERROR IN PROCESSING.
15 ;PARAMATERS ARE: PRCDA=MSG NUMBER IN 423.6 WHICH FAILED, X=MESSAGE TEXT
16 S XMB(1)=PRCDA,XMB="PRCF_850_BULLETIN1",XMDUZ=.5,XMY(DUZ)=""
17 S X=" "_X,A(1)=X,XMTEXT="A("
18 D EN^XMB
19 QUIT
20PRINT ;PRINT REPORT OF OUTSTANDING OBLIGATION REPORT - FILE 420.96
21 D ^PRCFSITE Q:'%
22 W ! K IO("Q"),PRCOSTAT S %ZIS("B")="HOME",%ZIS="QM" D ^%ZIS Q:POP
23 I $D(IO("Q")) S ZTDTH="",ZTIO=IO D Q
24 .S ZTDESC="OUTSTANDING OBLIGATION REPORT"
25 .S ZTRTN="RPT^PRCFOOR4",ZTSAVE("PRC*")=""
26 .D ^%ZTLOAD
27RPT ;
28 S (PRCFAT,PRCFAS,PRCFCT,PRCFCS,PRCFOT,PRCFOS)=0
29 S DIC="^PRCU(420.96,",FLDS="[PRCFOOR4]",BY="[PRCFOOR4]" S:$D(ION) IOP=ION
30 S FR=PRC("SITE"),TO=PRC("SITE"),DIOEND="D B^PRCFOOR5",DHD="OUTSTANDING OBLIGATION REPORT"
31 D EN1^DIP
32 QUIT
33PRINT2 ;PRINT REPORT OF ERRORS ON FCP CONVERSION - FILE 420.98
34 QUIT
35RESTART ;OPTION ENTRY POINT TO RESTART FAILED OUTSTANDING OBLIGATION REPORT
36 ;ASK FOR MESSAGE NUMBER IN 423.6
37 ;ASK FOR DEVICE
38 ;SET VARIABLE PRCDA=INTERNAL REFERENCE NUMBER IN 423.6
39 S DIC="^PRCF(423.6,",DIC(0)="AEQ" D ^DIC Q:Y<0
40 S PRCDA=+Y
41 ;W ! K IO("Q") S %ZIS("B")="HOME",%ZIS="QM" D ^%ZIS Q:POP
42 ;I $D(IO("Q")) S ZTDTH="",ZTIO=IO D
43 ;.S ZTDESC="OUTSTANDING OBLIGATION REPORT"
44 ;.S ZTRTN="^PRCFOOR3",ZTSAVE("PRC*")=""
45 ;.S ZTIO="" D ^%ZTLOAD
46 S ZTDESC="OUTSTANDING OBLIGATION REPORT"
47 S ZTRTN="^PRCFOOR3",ZTSAVE("PRC*")=""
48 S ZTIO="" D ^%ZTLOAD
49 QUIT
50 ;D ^PRCFOOR3
51 ;D ^%ZISC
52 QUIT
53RESTART1 ;OPTION ENTRY POINT TO RESTART FAILED FCP CONVERSION
54 ;ASK FOR MESSAGE NUMBER IN 423.6
55 ;SET VARIABLE PRCDA=INTERNAL REFERENCE NUMBER IN 423.6
56 ;ASK FOR DEVICE
57 S DIC="^PRCF(423.6,",DIC(0)="AEQ" D ^DIC Q:Y<0
58 S PRCDA=+Y
59 W ! K IO("Q") S %ZIS("B")="HOME",%ZIS="QM" D ^%ZIS Q:POP
60 I $D(IO("Q")) S ZTDTH="",ZTIO=IO D
61 .S ZTDESC="FUND CONTROL POINT CONVERSION"
62 .S ZTRTN="^PRCFOOR2",ZTSAVE("PRC*")=""
63 .D ^%ZTLOAD
64 D ^PRCFOOR2
65 D ^%ZISC
66 QUIT
67CLEAN(SITE) ;REMOVE ALL RECORDS FROM FILE 420.96 WITH STATION NUMBER (SITE)
68 N N,DA,DIK
69 S DIK="^PRCU(420.96,"
70 S DA=0 F S DA=$O(^PRCU(420.96,DA)) Q:'DA S X=$P(^(DA,0),"^",8) I X=""!(X=SITE) D ^DIK
71 QUIT
Note: See TracBrowser for help on using the repository browser.