source: WorldVistAEHR/trunk/r/BENEFICIARY_TRAVEL-DGBT/DGBT1P3.m@ 1661

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

initial load of WorldVistAEHR

File size: 889 bytes
Line 
1DGBT1P3 ;ALB/MRY - Patch #3 Environment Check ; 7/15/03 10:04 AM
2 ;;1.0;Beneficiary Travel;**3**;Septembr 25, 2001
3EN ;
4 S XPDABORT=""
5 I '$G(DUZ)!($G(DUZ(0))'="@")!('$G(DT))!($G(U)'="^") D G ABRT
6 . D BMES^XPDUTL("*****")
7 . D MES^XPDUTL("Your programming variables are not set up properly.")
8 . D MES^XPDUTL("Installation aborted.")
9 ; Verify that Bene Travel v1.0 exists, else Quit.
10 I $$VERSION^XPDUTL("DGBT")'="1.0" D G ABRT
11 . D BMES^XPDUTL("*****")
12 . D MES^XPDUTL("VERSION 1.0 OF BENEFICIARY TRAVEL HAS NOT BEEN LOADED.")
13 . D MES^XPDUTL("Installation aborted.")
14 W !!,">> Environment check complete and okay."
15 Q
16 ;
17POST ;Post-init. kill off bad cross reference, re-index.
18 N DIK
19 D BMES^XPDUTL("*****")
20 D MES^XPDUTL("Re-indexing 'BB' cross-reference.")
21 K ^DGBT(392.31,"BB") S DIK="^DGBT(392.31," D IXALL^DIK
22 Q
23 ;
24ABRT ; Abort transport, but leave in ^XTMP.
25 S ^XPDABORT=2 Q
Note: See TracBrowser for help on using the repository browser.