ZTMGRS11 ;SF/RWF SET UP THE MGR ACCOUNT FOR THE SYSTEM ;09/10/2002 17:13 [ 03/17/2005 11:45 AM ]
;;8.0;KERNEL;**1011**;Jul 10, 1995
Q
RELOAD ;Reload any patched routines
N %D,%S,I,OSMAX,U,X,X1,X2,Y,Z1,Z2,ZTOS,ZTMODE,SCR
I ^%ZOSF("OS")["MSM" S ZTOS=1
I ^%ZOSF("OS")["OpenM" S ZTOS=2
I '$G(ZTOS) D Q
.W !,"Operating system not found or not supported.",!
W !!,"Kernel version 8.0 patch #1011",!,"Renaming routines"
S SCR="I $P($T(+2^@X),"";"",5)=ZPCHL"
D @ZTOS
W !,"ALL DONE"
Q
;
1 ;;MSM-PC/PLUS, MSM for NT or UNIX
S %S(1)="ZISTCP^**36,34,59,69,118,225,1011**"
D MOVE
Q
2 ;;OpenM-NT, Cache/NT, Cache/VMS
S %S(1)="ZISTCP^**36,34,59,69,118,225,1011**"
S %S(2)="ZISHONT^**34,65,84,104,1011**"
S %S(3)="ZISFONT^**34,191,271,1010,1011**"
D MOVE
Q
MOVE ;
S I=0
F S I=$O(%S(I)) Q:'I D
.S X=$P(%S(I),"^",1)
.S ZPCHL=$P(%S(I),"^",2)
.S Y=$T(^@X)
.S Y=$P(Y," ",1)
.W !,"Routine: ",X
.Q:'(X]"")
.Q:'(Y]"")
.Q:'($T(^@X)]"")
.X SCR Q:'$T
.W ?20," Loaded, "
.X "ZL @X ZS @Y"
.W ?20,"Saved as ",Y
Q
ZTMGRS11 ;SF/RWF SET UP THE MGR ACCOUNT FOR THE SYSTEM ;09/10/2002 17:13 [ 03/17/2005 11:45 AM ]
+1 ;;8.0;KERNEL;**1011**;Jul 10, 1995
+2 QUIT
RELOAD ;Reload any patched routines
+1 NEW %D,%S,I,OSMAX,U,X,X1,X2,Y,Z1,Z2,ZTOS,ZTMODE,SCR
+2 IF ^%ZOSF("OS")["MSM"
SET ZTOS=1
+3 IF ^%ZOSF("OS")["OpenM"
SET ZTOS=2
+4 IF '$GET(ZTOS)
Begin DoDot:1
+5 WRITE !,"Operating system not found or not supported.",!
End DoDot:1
QUIT
+6 WRITE !!,"Kernel version 8.0 patch #1011",!,"Renaming routines"
+7 SET SCR="I $P($T(+2^@X),"";"",5)=ZPCHL"
+8 DO @ZTOS
+9 WRITE !,"ALL DONE"
+10 QUIT
+11 ;
1 ;;MSM-PC/PLUS, MSM for NT or UNIX
+1 SET %S(1)="ZISTCP^**36,34,59,69,118,225,1011**"
+2 DO MOVE
+3 QUIT
2 ;;OpenM-NT, Cache/NT, Cache/VMS
+1 SET %S(1)="ZISTCP^**36,34,59,69,118,225,1011**"
+2 SET %S(2)="ZISHONT^**34,65,84,104,1011**"
+3 SET %S(3)="ZISFONT^**34,191,271,1010,1011**"
+4 DO MOVE
+5 QUIT
MOVE ;
+1 SET I=0
+2 FOR
SET I=$ORDER(%S(I))
IF 'I
QUIT
Begin DoDot:1
+3 SET X=$PIECE(%S(I),"^",1)
+4 SET ZPCHL=$PIECE(%S(I),"^",2)
+5 SET Y=$TEXT(^@X)
+6 SET Y=$PIECE(Y," ",1)
+7 WRITE !,"Routine: ",X
+8 IF '(X]"")
QUIT
+9 IF '(Y]"")
QUIT
+10 IF '($TEXT(^@X)]"")
QUIT
+11 XECUTE SCR
IF '$TEST
QUIT
+12 WRITE ?20," Loaded, "
+13 XECUTE "ZL @X ZS @Y"
+14 WRITE ?20,"Saved as ",Y
End DoDot:1
+15 QUIT