VistA-WorldVistAEHR/r/GENERIC_CODE_SHEET-GEC/GECSNTEG.m

57 lines
1.5 KiB
Mathematica
Raw Permalink Normal View History

2009-11-29 13:37:14 -05:00
GECSNTEG ;ISC/XTSUMBLD KERNEL - Package checksum checker ;AUG 30, 1994@11:06:24
;;2.0;GCS;;MAR 14, 1995
;;7.2;AUG 30, 1994@11:06:24
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 ;;
GECSA ;;20073
GECSBATC ;;3869401
GECSCALL ;;211561
GECSDG ;;4924658
GECSE ;;17373
GECSE1 ;;62016
GECSE2 ;;18064
GECSEDIT ;;5435360
GECSENTR ;;3103894
GECSETUP ;;5964241
GECSLIST ;;57563
GECSMUT1 ;;9252463
GECSMUT2 ;;4230177
GECSPOS1 ;;1631257
GECSPOST ;;1212100
GECSPPRE ;;1904541
GECSPUR1 ;;6739363
GECSPURG ;;5541863
GECSREP0 ;;4220915
GECSRST1 ;;5407600
GECSRSTA ;;5315105
GECSSCOM ;;1265167
GECSSDCT ;;3057930
GECSSGET ;;976530
GECSSITE ;;3962553
GECSSTAA ;;4711255
GECSSTT1 ;;5092396
GECSSTTM ;;7913025
GECSSTTR ;;7827856
GECSSTTT ;;4885188
GECSTRAN ;;10143245
GECSUFM1 ;;6400538
GECSUFMS ;;8588233
GECSULOC ;;1285089
GECSUNUM ;;1041909
GECSUSEL ;;5305729
GECSUSTA ;;2924817
GECSUTIL ;;5685888
GECSVFY ;;1483583
GECSVFY0 ;;12143795
GECSVFY1 ;;9521615
GECSX5 ;;145227
GECSXBL1 ;;4165390
GECSXBLD ;;11219584
GECSXMAP ;;7927454