LRAC7 ; IHS/DIR/FJE - SET-UP FOR THE KILL 8/11/87 09:41 ;
;;5.2;LR;**1013**;JUL 15, 2002
;
;;5.2;LAB SERVICE;;Sep 27, 1994
LRFD1 S LRFD1=0 F S LRFD1=$O(^TMP($J,"K",LRFD,LRFD1)) Q:LRFD1<1 S ^LAC("LRKILL",LRDFN,LRMH,1,LRFD,LRFD1)=^TMP($J,"K",LRFD,LRFD1)
Q:'$D(^LR(LRDFN,"CH",K(1),0)) S P=$P(^(0),U,9),$P(^LR(LRDFN,"CH",K(1),0),U,9)=$S(P[(LRMH_":"_LRPG):P,P[":":P_","_LRMH_":"_LRPG,1:LRMH_":"_LRPG)
Q
ENT ;from LRAC6
Q:LRRE S ^LR(LRDFN,"PG",LRMH)=LRMH_U_LRPG S LRFD=0 F S LRFD=$O(^TMP($J,"K",LRFD)) Q:LRFD<1 S:'$D(^(LRFD,0))#2 ^(0)=9999999-LRFD S ^LAC("LRKILL",LRDFN,LRMH,1,LRFD,0)=^(0),K(1)=$P(^(0),U,1) D LRFD1
K LRFD,K Q
OVFL ;from LRAC4, LRAC9
S LRFULL=1 W !!?10,"Comments continued on next page..." D HEAD1^LRAC6,HEAD^LRAC6 W !!!?10,"...",LRSHN," comments continued.",!
Q
LRAC7 ; IHS/DIR/FJE - SET-UP FOR THE KILL 8/11/87 09:41 ;
+1 ;;5.2;LR;**1013**;JUL 15, 2002
+2 ;
+3 ;;5.2;LAB SERVICE;;Sep 27, 1994
LRFD1 SET LRFD1=0
FOR
SET LRFD1=$ORDER(^TMP($JOB,"K",LRFD,LRFD1))
IF LRFD1<1
QUIT
SET ^LAC("LRKILL",LRDFN,LRMH,1,LRFD,LRFD1)=^TMP($JOB,"K",LRFD,LRFD1)
+1 IF '$DATA(^LR(LRDFN,"CH",K(1),0))
QUIT
SET P=$PIECE(^(0),U,9)
SET $PIECE(^LR(LRDFN,"CH",K(1),0),U,9)=$SELECT(P[(LRMH_":"_LRPG):P,P[":":P_","_LRMH_":"_LRPG,1:LRMH_":"_LRPG)
+2 QUIT
ENT ;from LRAC6
+1 IF LRRE
QUIT
SET ^LR(LRDFN,"PG",LRMH)=LRMH_U_LRPG
SET LRFD=0
FOR
SET LRFD=$ORDER(^TMP($JOB,"K",LRFD))
IF LRFD<1
QUIT
IF '$DATA(^(LRFD,0))#2
SET ^(0)=9999999-LRFD
SET ^LAC("LRKILL",LRDFN,LRMH,1,LRFD,0)=^(0)
SET K(1)=$PIECE(^(0),U,1)
DO LRFD1
+2 KILL LRFD,K
QUIT
OVFL ;from LRAC4, LRAC9
+1 SET LRFULL=1
WRITE !!?10,"Comments continued on next page..."
DO HEAD1^LRAC6
DO HEAD^LRAC6
WRITE !!!?10,"...",LRSHN," comments continued.",!
+2 QUIT