GMRGXPRE ;HIRMFO/RM-GMRG PRE-INIT ROUTINE ;9/18/95
;;3.0;Text Generator;;Jan 24, 1996
I $S('$D(DUZ)#2!'$D(DUZ(0)):1,DUZ(0)="@":0,1:1) W !,"The variables DUZ and DUZ(0) must be set initially to continue.",!,"DUZ must be a valid user number, and DUZ(0) must equal @" K DIFQ Q
I $T(VERSION^XPDUTL)']"" W !!,"KERNEL TOOLKIT V. 7.2 OR GREATER IS REQUIRED - CANNOT CONTINUE:" K DIFQ Q
S GMRG=+$$VERSION^XPDUTL("KERNEL") I GMRG<7.1 W !!,"KERNEL V. 7.1 OR GREATER IS REQUIRED - CANNOT CONTINUE:" K GMRG,DIFQ Q
S GMRG=+$$VERSION^XPDUTL("VA FILEMAN") I GMRG<21 W !!,"VA FILEMAN V. 21 OR GREATER IS REQUIRED - CANNOT CONTINUE:" K GMRG,DIFQ Q
S GMRG=+$$VERSION^XPDUTL("REGISTRATION") I GMRG<5.3 W !!,"PIMS (MAS) V. 5.3 OR GREATER IS REQUIRED - CANNOT CONTINUE:" K GMRG,DIFQ Q
D PRE^GMRGXAGC
S GMRGXVER=$$VERSION^XPDUTL("GMRG")
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HGMRGXPRE 836 printed Oct 16, 2024@17:56:31 Page 2
GMRGXPRE ;HIRMFO/RM-GMRG PRE-INIT ROUTINE ;9/18/95
+1 ;;3.0;Text Generator;;Jan 24, 1996
+2 IF $SELECT('$DATA(DUZ)#2!'$DATA(DUZ(0)):1,DUZ(0)="@":0,1:1)
WRITE !,"The variables DUZ and DUZ(0) must be set initially to continue.",!,"DUZ must be a valid user number, and DUZ(0) must equal @"
KILL DIFQ
QUIT
+3 IF $TEXT(VERSION^XPDUTL)']""
WRITE !!,"KERNEL TOOLKIT V. 7.2 OR GREATER IS REQUIRED - CANNOT CONTINUE:"
KILL DIFQ
QUIT
+4 SET GMRG=+$$VERSION^XPDUTL("KERNEL")
IF GMRG<7.1
WRITE !!,"KERNEL V. 7.1 OR GREATER IS REQUIRED - CANNOT CONTINUE:"
KILL GMRG,DIFQ
QUIT
+5 SET GMRG=+$$VERSION^XPDUTL("VA FILEMAN")
IF GMRG<21
WRITE !!,"VA FILEMAN V. 21 OR GREATER IS REQUIRED - CANNOT CONTINUE:"
KILL GMRG,DIFQ
QUIT
+6 SET GMRG=+$$VERSION^XPDUTL("REGISTRATION")
IF GMRG<5.3
WRITE !!,"PIMS (MAS) V. 5.3 OR GREATER IS REQUIRED - CANNOT CONTINUE:"
KILL GMRG,DIFQ
QUIT
+7 DO PRE^GMRGXAGC
+8 SET GMRGXVER=$$VERSION^XPDUTL("GMRG")
+9 QUIT