FSCXREFR ;SLC/STAFF-NOIS Xrefs Call Refer Status ;1/11/98 15:27
;;1.1;NOIS;;Sep 06, 1998
;
ARM(OP,FIELD,VALUE,CALL) ; from dd 7100
N MOD,STATUS
I OP="SET" D Q
.I FIELD="STATUS" D Q
..I VALUE=3 S MOD=$P(^FSCD("CALL",CALL,0),U,8) I MOD S ^FSCD("CALL","ARM",MOD,CALL)=""
.I FIELD="MOD" D Q
..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=3 S ^FSCD("CALL","ARM",VALUE,CALL)=""
I OP="KILL" D Q
.I FIELD="STATUS" D Q
..S MOD=$P(^FSCD("CALL",CALL,0),U,8) I MOD K ^FSCD("CALL","ARM",MOD,CALL)
.I FIELD="MOD" D Q
..K ^FSCD("CALL","ARM",VALUE,CALL)
Q
;
ARP(OP,FIELD,VALUE,CALL) ; from dd 7100
N PACK,STATUS
I OP="SET" D Q
.I FIELD="STATUS" D Q
..I VALUE=3 S PACK=$P(^FSCD("CALL",CALL,120),U,9) I PACK S ^FSCD("CALL","ARP",PACK,CALL)=""
.I FIELD="PACK" D Q
..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=3 S ^FSCD("CALL","ARP",VALUE,CALL)=""
I OP="KILL" D Q
.I FIELD="STATUS" D Q
..S PACK=$P(^FSCD("CALL",CALL,120),U,9) I PACK K ^FSCD("CALL","ARP",PACK,CALL)
.I FIELD="PACK" D Q
..K ^FSCD("CALL","ARP",VALUE,CALL)
Q
;
ARU(OP,FIELD,VALUE,CALL) ; from dd 7100
N SPEC,STATUS
I OP="SET" D Q
.I FIELD="STATUS" D Q
..I VALUE=3 S SPEC=$P(^FSCD("CALL",CALL,0),U,9) I SPEC S ^FSCD("CALL","ARU",SPEC,CALL)=""
.I FIELD="SPEC" D Q
..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=3 S ^FSCD("CALL","ARU",VALUE,CALL)=""
I OP="KILL" D Q
.I FIELD="STATUS" D Q
..S SPEC=$P(^FSCD("CALL",CALL,0),U,9) I SPEC K ^FSCD("CALL","ARU",SPEC,CALL)
.I FIELD="SPEC" D Q
..K ^FSCD("CALL","ARU",VALUE,CALL)
Q
;
ARID(OP,FIELD,VALUE,CALL) ; from dd 7100
N ISC,STATUS
I OP="SET" D Q
.I FIELD="STATUS" D Q
..I VALUE=3 S ISC=$P(^FSCD("CALL",CALL,0),U,20) I ISC S ^FSCD("CALL","ARID",ISC,CALL)=""
.I FIELD="ISC" D Q
..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=3 S ^FSCD("CALL","ARID",VALUE,CALL)=""
I OP="KILL" D Q
.I FIELD="STATUS" D Q
..S ISC=$P(^FSCD("CALL",CALL,0),U,20) I ISC K ^FSCD("CALL","ARID",ISC,CALL)
.I FIELD="ISC" D Q
..K ^FSCD("CALL","ARID",VALUE,CALL)
Q
;
ARIS(OP,FIELD,VALUE,CALL) ; from dd 7100
N ISC,STATUS
I OP="SET" D Q
.I FIELD="STATUS" D Q
..I VALUE=3 S ISC=$P(^FSCD("CALL",CALL,0),U,16) I ISC S ^FSCD("CALL","ARIS",ISC,CALL)=""
.I FIELD="ISC" D Q
..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=3 S ^FSCD("CALL","ARIS",VALUE,CALL)=""
I OP="KILL" D Q
.I FIELD="STATUS" D Q
..S ISC=$P(^FSCD("CALL",CALL,0),U,16) I ISC K ^FSCD("CALL","ARIS",ISC,CALL)
.I FIELD="ISC" D Q
..K ^FSCD("CALL","ARIS",VALUE,CALL)
Q
;
ARISP(OP,FIELD,VALUE,CALL) ; from dd 7100
N ISC,STATUS
I OP="SET" D Q
.I FIELD="STATUS" D Q
..I VALUE=3 S ISC=$P(^FSCD("CALL",CALL,120),U,10) I ISC S ^FSCD("CALL","ARISP",ISC,CALL)=""
.I FIELD="ISC" D Q
..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=3 S ^FSCD("CALL","ARISP",VALUE,CALL)=""
I OP="KILL" D Q
.I FIELD="STATUS" D Q
..S ISC=$P(^FSCD("CALL",CALL,120),U,10) I ISC K ^FSCD("CALL","ARISP",ISC,CALL)
.I FIELD="ISC" D Q
..K ^FSCD("CALL","ARISP",VALUE,CALL)
Q
;
ARSC(OP,FIELD,VALUE,CALL) ; from dd 7100
N SUB,STATUS
I OP="SET" D Q
.I FIELD="STATUS" D Q
..I VALUE=3 S SUB=$P(^FSCD("CALL",CALL,120),U,11) I SUB S ^FSCD("CALL","ARSC",SUB,CALL)=""
.I FIELD="SUB" D Q
..I VALUE S STATUS=$P(^FSCD("CALL",CALL,0),U,2) I STATUS=3 S ^FSCD("CALL","ARSC",VALUE,CALL)=""
I OP="KILL" D Q
.I FIELD="STATUS" D Q
..S SUB=$P(^FSCD("CALL",CALL,120),U,11) I SUB K ^FSCD("CALL","ARSC",SUB,CALL)
.I FIELD="SUB" D Q
..K ^FSCD("CALL","ARSC",VALUE,CALL)
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HFSCXREFR 3614 printed Dec 13, 2024@02:20:44 Page 2
FSCXREFR ;SLC/STAFF-NOIS Xrefs Call Refer Status ;1/11/98 15:27
+1 ;;1.1;NOIS;;Sep 06, 1998
+2 ;
ARM(OP,FIELD,VALUE,CALL) ; from dd 7100
+1 NEW MOD,STATUS
+2 IF OP="SET"
Begin DoDot:1
+3 IF FIELD="STATUS"
Begin DoDot:2
+4 IF VALUE=3
SET MOD=$PIECE(^FSCD("CALL",CALL,0),U,8)
IF MOD
SET ^FSCD("CALL","ARM",MOD,CALL)=""
End DoDot:2
QUIT
+5 IF FIELD="MOD"
Begin DoDot:2
+6 IF VALUE
SET STATUS=$PIECE(^FSCD("CALL",CALL,0),U,2)
IF STATUS=3
SET ^FSCD("CALL","ARM",VALUE,CALL)=""
End DoDot:2
QUIT
End DoDot:1
QUIT
+7 IF OP="KILL"
Begin DoDot:1
+8 IF FIELD="STATUS"
Begin DoDot:2
+9 SET MOD=$PIECE(^FSCD("CALL",CALL,0),U,8)
IF MOD
KILL ^FSCD("CALL","ARM",MOD,CALL)
End DoDot:2
QUIT
+10 IF FIELD="MOD"
Begin DoDot:2
+11 KILL ^FSCD("CALL","ARM",VALUE,CALL)
End DoDot:2
QUIT
End DoDot:1
QUIT
+12 QUIT
+13 ;
ARP(OP,FIELD,VALUE,CALL) ; from dd 7100
+1 NEW PACK,STATUS
+2 IF OP="SET"
Begin DoDot:1
+3 IF FIELD="STATUS"
Begin DoDot:2
+4 IF VALUE=3
SET PACK=$PIECE(^FSCD("CALL",CALL,120),U,9)
IF PACK
SET ^FSCD("CALL","ARP",PACK,CALL)=""
End DoDot:2
QUIT
+5 IF FIELD="PACK"
Begin DoDot:2
+6 IF VALUE
SET STATUS=$PIECE(^FSCD("CALL",CALL,0),U,2)
IF STATUS=3
SET ^FSCD("CALL","ARP",VALUE,CALL)=""
End DoDot:2
QUIT
End DoDot:1
QUIT
+7 IF OP="KILL"
Begin DoDot:1
+8 IF FIELD="STATUS"
Begin DoDot:2
+9 SET PACK=$PIECE(^FSCD("CALL",CALL,120),U,9)
IF PACK
KILL ^FSCD("CALL","ARP",PACK,CALL)
End DoDot:2
QUIT
+10 IF FIELD="PACK"
Begin DoDot:2
+11 KILL ^FSCD("CALL","ARP",VALUE,CALL)
End DoDot:2
QUIT
End DoDot:1
QUIT
+12 QUIT
+13 ;
ARU(OP,FIELD,VALUE,CALL) ; from dd 7100
+1 NEW SPEC,STATUS
+2 IF OP="SET"
Begin DoDot:1
+3 IF FIELD="STATUS"
Begin DoDot:2
+4 IF VALUE=3
SET SPEC=$PIECE(^FSCD("CALL",CALL,0),U,9)
IF SPEC
SET ^FSCD("CALL","ARU",SPEC,CALL)=""
End DoDot:2
QUIT
+5 IF FIELD="SPEC"
Begin DoDot:2
+6 IF VALUE
SET STATUS=$PIECE(^FSCD("CALL",CALL,0),U,2)
IF STATUS=3
SET ^FSCD("CALL","ARU",VALUE,CALL)=""
End DoDot:2
QUIT
End DoDot:1
QUIT
+7 IF OP="KILL"
Begin DoDot:1
+8 IF FIELD="STATUS"
Begin DoDot:2
+9 SET SPEC=$PIECE(^FSCD("CALL",CALL,0),U,9)
IF SPEC
KILL ^FSCD("CALL","ARU",SPEC,CALL)
End DoDot:2
QUIT
+10 IF FIELD="SPEC"
Begin DoDot:2
+11 KILL ^FSCD("CALL","ARU",VALUE,CALL)
End DoDot:2
QUIT
End DoDot:1
QUIT
+12 QUIT
+13 ;
ARID(OP,FIELD,VALUE,CALL) ; from dd 7100
+1 NEW ISC,STATUS
+2 IF OP="SET"
Begin DoDot:1
+3 IF FIELD="STATUS"
Begin DoDot:2
+4 IF VALUE=3
SET ISC=$PIECE(^FSCD("CALL",CALL,0),U,20)
IF ISC
SET ^FSCD("CALL","ARID",ISC,CALL)=""
End DoDot:2
QUIT
+5 IF FIELD="ISC"
Begin DoDot:2
+6 IF VALUE
SET STATUS=$PIECE(^FSCD("CALL",CALL,0),U,2)
IF STATUS=3
SET ^FSCD("CALL","ARID",VALUE,CALL)=""
End DoDot:2
QUIT
End DoDot:1
QUIT
+7 IF OP="KILL"
Begin DoDot:1
+8 IF FIELD="STATUS"
Begin DoDot:2
+9 SET ISC=$PIECE(^FSCD("CALL",CALL,0),U,20)
IF ISC
KILL ^FSCD("CALL","ARID",ISC,CALL)
End DoDot:2
QUIT
+10 IF FIELD="ISC"
Begin DoDot:2
+11 KILL ^FSCD("CALL","ARID",VALUE,CALL)
End DoDot:2
QUIT
End DoDot:1
QUIT
+12 QUIT
+13 ;
ARIS(OP,FIELD,VALUE,CALL) ; from dd 7100
+1 NEW ISC,STATUS
+2 IF OP="SET"
Begin DoDot:1
+3 IF FIELD="STATUS"
Begin DoDot:2
+4 IF VALUE=3
SET ISC=$PIECE(^FSCD("CALL",CALL,0),U,16)
IF ISC
SET ^FSCD("CALL","ARIS",ISC,CALL)=""
End DoDot:2
QUIT
+5 IF FIELD="ISC"
Begin DoDot:2
+6 IF VALUE
SET STATUS=$PIECE(^FSCD("CALL",CALL,0),U,2)
IF STATUS=3
SET ^FSCD("CALL","ARIS",VALUE,CALL)=""
End DoDot:2
QUIT
End DoDot:1
QUIT
+7 IF OP="KILL"
Begin DoDot:1
+8 IF FIELD="STATUS"
Begin DoDot:2
+9 SET ISC=$PIECE(^FSCD("CALL",CALL,0),U,16)
IF ISC
KILL ^FSCD("CALL","ARIS",ISC,CALL)
End DoDot:2
QUIT
+10 IF FIELD="ISC"
Begin DoDot:2
+11 KILL ^FSCD("CALL","ARIS",VALUE,CALL)
End DoDot:2
QUIT
End DoDot:1
QUIT
+12 QUIT
+13 ;
ARISP(OP,FIELD,VALUE,CALL) ; from dd 7100
+1 NEW ISC,STATUS
+2 IF OP="SET"
Begin DoDot:1
+3 IF FIELD="STATUS"
Begin DoDot:2
+4 IF VALUE=3
SET ISC=$PIECE(^FSCD("CALL",CALL,120),U,10)
IF ISC
SET ^FSCD("CALL","ARISP",ISC,CALL)=""
End DoDot:2
QUIT
+5 IF FIELD="ISC"
Begin DoDot:2
+6 IF VALUE
SET STATUS=$PIECE(^FSCD("CALL",CALL,0),U,2)
IF STATUS=3
SET ^FSCD("CALL","ARISP",VALUE,CALL)=""
End DoDot:2
QUIT
End DoDot:1
QUIT
+7 IF OP="KILL"
Begin DoDot:1
+8 IF FIELD="STATUS"
Begin DoDot:2
+9 SET ISC=$PIECE(^FSCD("CALL",CALL,120),U,10)
IF ISC
KILL ^FSCD("CALL","ARISP",ISC,CALL)
End DoDot:2
QUIT
+10 IF FIELD="ISC"
Begin DoDot:2
+11 KILL ^FSCD("CALL","ARISP",VALUE,CALL)
End DoDot:2
QUIT
End DoDot:1
QUIT
+12 QUIT
+13 ;
ARSC(OP,FIELD,VALUE,CALL) ; from dd 7100
+1 NEW SUB,STATUS
+2 IF OP="SET"
Begin DoDot:1
+3 IF FIELD="STATUS"
Begin DoDot:2
+4 IF VALUE=3
SET SUB=$PIECE(^FSCD("CALL",CALL,120),U,11)
IF SUB
SET ^FSCD("CALL","ARSC",SUB,CALL)=""
End DoDot:2
QUIT
+5 IF FIELD="SUB"
Begin DoDot:2
+6 IF VALUE
SET STATUS=$PIECE(^FSCD("CALL",CALL,0),U,2)
IF STATUS=3
SET ^FSCD("CALL","ARSC",VALUE,CALL)=""
End DoDot:2
QUIT
End DoDot:1
QUIT
+7 IF OP="KILL"
Begin DoDot:1
+8 IF FIELD="STATUS"
Begin DoDot:2
+9 SET SUB=$PIECE(^FSCD("CALL",CALL,120),U,11)
IF SUB
KILL ^FSCD("CALL","ARSC",SUB,CALL)
End DoDot:2
QUIT
+10 IF FIELD="SUB"
Begin DoDot:2
+11 KILL ^FSCD("CALL","ARSC",VALUE,CALL)
End DoDot:2
QUIT
End DoDot:1
QUIT
+12 QUIT