BYIMNTEG ;INTEGRITY CHECKER;
Source file <BYIMNTEG.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
LIST | ;
|
|
LINE6 | ;;K XBINTEG,B,C,I,J,R,X,Y
|
|
LINE5 | ;;S B=$P(^(RTN),"^",1),C=$P(^(RTN),"^",2) I B'=BYTE!(C'=COUNT) W " has been modified"
|
|
LINE4 | ;;F J=1:1 S Y=$E(X,J) Q:Y="" S BYTE=BYTE+1,COUNT=COUNT+$A(Y)
|
|
LINE3 | ;;F I=2:1 S X=$T(+I) Q:X="" X XBINTEG(4)
|
|
LINE2 | ;;S RTN="" F S RTN=$O(^UTILITY($J,RTN)) Q:RTN="" W !,RTN ZL @RTN S (BYTE,COUNT)=0 S X=$T(+1),X=$P(X," [ ",1) X XBINTEG(4),XBINTEG(3),XBINTEG(5)
|
|
LINE1 | ;;X XBINTEG(2),XBINTEG(6)
|
|
START | ;
|
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^UTILITY($J | START+2!, START+3* |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
>> B | START+3* |
BYTE | START+1~ |
>> C | START+3* |
COUNT | START+1~ |
>> I | START+3*, START+4* |
>> R | START+3* |
RTN | START+1~ |
>> X | START+3*, START+4* |
>> XBINTEG(1 | START+5 |
Name | Field # of Occurrence |
---|---|
$T(@(3) | START+4 |
$T(LIST+I | START+3 |