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

AUTP3PRE.m

Go to the documentation of this file.
  1. AUTP3PRE ; IHS/ASDST/GTH - PREINIT, CHK RQMNTS, ETC. ; [ 09/27/1999 1:13 PM ]
  1. ;;98.1;IHS DICTIONARIES (POINTERS);**3**;MAR 04, 1998;Build 6
  1. ;
  1. I '$G(DUZ) W !,"DUZ UNDEFINED OR 0." D SORRY Q
  1. ;
  1. I '$L($G(DUZ(0))) W !,"DUZ(0) UNDEFINED OR NULL." D SORRY Q
  1. ;
  1. S X=$P(^VA(200,DUZ,0),U)
  1. W !!,$$C("Hello, "_$P(X,",",2)_" "_$P(X,",")),!
  1. F %=4:1 S X=$P($T(AUTP3MSG+%),";",3) Q:X="" W !?5,X
  1. ;
  1. W !!,$$C("Checking Environment for "_$P($T(+2),";",4)_" V "_$P($T(+2),";",3)_" Patch "_$P($T(+2),";",5)_".")
  1. ;
  1. S X=$G(^DIC(9.4,$O(^DIC(9.4,"C","AUT",0)),"VERSION"))
  1. W !!,$$C("Need AUT v 98.1.....AUT v "_X_" Present")
  1. I X<98.1 D SORRY Q
  1. ;
  1. S X=$G(^DD("VERSION"))
  1. W !,$$C("Need at least FileMan 21.....FileMan "_X_" Present")
  1. I X<21 D SORRY Q
  1. ;
  1. S X=$G(^DIC(9.4,$O(^DIC(9.4,"C","XU",0)),"VERSION"))
  1. W !,$$C("Need at least Kernel 8.....Kernel "_X_" Present")
  1. I X<8 D SORRY Q
  1. ;
  1. NEW DA,DIC
  1. S X="AUT",DIC="^DIC(9.4,",DIC(0)="",D="C"
  1. D IX^DIC
  1. I Y<0,$D(^DIC(9.4,"C","AUT")) D Q
  1. . W !!,*7,*7,$$C("You Have More Than One Entry In The"),!,$$C("PACKAGE File with an ""AUT"" prefix.")
  1. . W !,$$C("One entry needs to be deleted.")
  1. . W !,$$C("FIX IT! Before Proceeding."),!!,*7,*7,*7
  1. . D SORRY
  1. . I $$DIR^XBDIR("E")
  1. .Q
  1. W !,$$C("No 'AUT' dups in PACKAGE file")
  1. ;
  1. W !!,$$C("ENVIRONMENT OK.")
  1. I '$$DIR^XBDIR("E","","","","","",1) KILL DIFQ Q
  1. Q
  1. ;
  1. C(X,Y) ; Center X in field length Y/IOM/80.
  1. Q $J("",$S($D(Y):Y,$G(IOM):IOM,1:80)-$L(X)\2)_X
  1. ;
  1. SORRY ;
  1. KILL DIFQ
  1. W *7,!,$$C("Sorry....")
  1. Q
  1. ;
  1. AUTP3MSG ;
  1. ;;AUT v 98.1, Patch 3, Correct BPA I/T in VENDOR file.
  1. ;; --- AUT v 98.1, Patch 3, has been installed into this uci ---
  1. ;;
  1. ;;AUT v 98.1, Patch 3, corrects the Input Transform of the BPA number
  1. ;;in the VENDOR file. The previous I/T restricted the range of the
  1. ;;BPA number from 910000 to 999999. The I/T included in Patch 3
  1. ;;modifies that restriction by allowing entry of BPA numbers from
  1. ;;000000 to 999999. The only affected application is the Contract
  1. ;;Health System (CHS), which uses the first 2 digits of the number
  1. ;;to indicate the year of the agreement.