BRANTEG ;IHS/BJI/DAY - Package checksum checker ; 13 Sep 2011 11:02 AM
;;5.0;Radiology/Nuclear Medicine;**1003**;Nov 01, 2010;Build 3
;;7.3;3110913.110004
S XT4="I 1",X=$T(+3) W !!,"Checksum routine created on ",$P(X,";",4)," by KERNEL V",$P(X,";",3),!
CONT F XT1=1:1 S XT2=$T(ROU+XT1) Q:XT2="" S X=$P(XT2," ",1),XT3=$P(XT2,";",3) X XT4 I $T W !,X X ^%ZOSF("TEST") S:'$T XT3=0 X:XT3 ^%ZOSF("RSUM") W ?10,$S('XT3:"Routine not in UCI",XT3'=Y:"Calculated "_$C(7)_Y_", off by "_(Y-XT3),1:"ok")
;
K %1,%2,%3,X,Y,XT1,XT2,XT3,XT4 Q
ONE S XT4="I $D(^UTILITY($J,X))",X=$T(+3) W !!,"Checksum routine created on ",$P(X,";",4)," by KERNEL V",$P(X,";",3),!
W !,"Check a subset of routines:" K ^UTILITY($J) X ^%ZOSF("RSEL")
W ! G CONT
ROU ;;
BRAPCC ;;15074095
BRAPOST ;;136672
BRAPRAD ;;2488270
BRAPREG ;;1013196
BRAUTL ;;468112
BRAWH ;;9692274
RABWORD ;;9464378
RABWORD2 ;;8087858
RADEM1 ;;10667170
RADLQ3 ;;6063903
RAEDCN1 ;;8086460
RAHLO ;;17676496
RAHLRPC ;;7628883
RAO7OKS ;;1941324
RAO7UTL ;;7816394
RAORD1 ;;16535748
RAORD6 ;;19225079
RAORDU ;;14094086
RAPCE ;;16108984
RAPSAPI ;;5825532
RAREG2 ;;20566168
RART3 ;;10374953
RARTE4 ;;12611719
RARTE6 ;;18743376
RARTE7 ;;5763078
RARTR0 ;;21882134
RARTR1 ;;21133411
RASTEXT ;;14688641
RAUTL0 ;;12362098
RAUTL1 ;;19783717
RAUTL20 ;;10742197
RAUTL8 ;;15689082
BRANTEG ;IHS/BJI/DAY - Package checksum checker ; 13 Sep 2011 11:02 AM
+1 ;;5.0;Radiology/Nuclear Medicine;**1003**;Nov 01, 2010;Build 3
+2 ;;7.3;3110913.110004
+3 SET XT4="I 1"
SET X=$TEXT(+3)
WRITE !!,"Checksum routine created on ",$PIECE(X,";",4)," by KERNEL V",$PIECE(X,";",3),!
CONT FOR XT1=1:1
SET XT2=$TEXT(ROU+XT1)
IF XT2=""
QUIT
SET X=$PIECE(XT2," ",1)
SET XT3=$PIECE(XT2,";",3)
XECUTE XT4
IF $TEST
WRITE !,X
XECUTE ^%ZOSF("TEST")
IF '$TEST
SET XT3=0
IF XT3
XECUTE ^%ZOSF("RSUM")
WRITE ?10,$SELECT('XT3:"Routine not in UCI",XT3'=Y:"Calculated "_$CHAR(7)_Y_", off by "_(Y-XT3),1:"ok")
+1 ;
+2 KILL %1,%2,%3,X,Y,XT1,XT2,XT3,XT4
QUIT
ONE SET XT4="I $D(^UTILITY($J,X))"
SET X=$TEXT(+3)
WRITE !!,"Checksum routine created on ",$PIECE(X,";",4)," by KERNEL V",$PIECE(X,";",3),!
+1 WRITE !,"Check a subset of routines:"
KILL ^UTILITY($JOB)
XECUTE ^%ZOSF("RSEL")
+2 WRITE !
GOTO CONT
ROU ;;
BRAPCC ;;15074095
BRAPOST ;;136672
BRAPRAD ;;2488270
BRAPREG ;;1013196
BRAUTL ;;468112
BRAWH ;;9692274
RABWORD ;;9464378
RABWORD2 ;;8087858
RADEM1 ;;10667170
RADLQ3 ;;6063903
RAEDCN1 ;;8086460
RAHLO ;;17676496
RAHLRPC ;;7628883
RAO7OKS ;;1941324
RAO7UTL ;;7816394
RAORD1 ;;16535748
RAORD6 ;;19225079
RAORDU ;;14094086
RAPCE ;;16108984
RAPSAPI ;;5825532
RAREG2 ;;20566168
RART3 ;;10374953
RARTE4 ;;12611719
RARTE6 ;;18743376
RARTE7 ;;5763078
RARTR0 ;;21882134
RARTR1 ;;21133411
RASTEXT ;;14688641
RAUTL0 ;;12362098
RAUTL1 ;;19783717
RAUTL20 ;;10742197
RAUTL8 ;;15689082