Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ABPAHD

ABPAHD.m

Go to the documentation of this file.
ABPAHD ;SCREEN HEADING UTILITY; [ 07/18/91  7:05 PM ]
 ;;1.4;AO PVT-INS TRACKING;*0*;IHS-OKC/KJR;JULY 25, 1991
 ;INPUT VARIABLES: ABPA("HD",X) = NARRATIVE TEXT < 76 CHARACTERS
 ;                                WHERE X IS SEQUENTIAL VARIABLE 
 ;                                BEGINNING WITH 1
 ;
 ;OUTPUT VARIABLES: NONE
 ;
START S:$D(DUZ(2))'=1 DUZ(2)=$P(^AUTTSITE(1,0),"^")
 S SITENAME=$P(^DIC(4,DUZ(2),0),"^",1),X=0
 D:$D(XY)'=1 CURRENT^%ZIS
NXTX S X=$O(ABPA("HD",X)) G:+X=0 MOVE
 S AU("MAX")=X G NXTX
MOVE F I=AU("MAX"):-1:1 S ABPA("HD",I+2)=ABPA("HD",I)
WRITE S ABPA("HD",1)=SITENAME,$P(AU("LINE"),"-",$L(SITENAME)+1)=""
 S ABPA("HD",2)=AU("LINE"),AU("MAX")=AU("MAX")+2
 D NOW^%DTC S Y=% X ^DD("DD") S YY=$P(Y,"@"),Y=$P(Y,"@",2)
 S XX="",$P(XX,"*",80)="" W:IO=IO(0) @IOF,! D:IO'=IO(0) ^%AUCLS W XX
 F I=1:1:AU("MAX")-1 D
 .W !,"* " W:I=1 YY W:I=2 "User: ",ABPAUSER
 .W ?40-(($L(ABPA("HD",I))\2)),ABPA("HD",I)
 .S:I=2 Y="Device: "_ABPADEV W:I<3 ?(77-$L(Y)),Y W ?78,"*"
 W ! S DY=$Y W "*",?40-(($L(ABPA("HD",AU("MAX")))\2))
 W @(ABPARON),ABPA("HD",AU("MAX")),@(ABPAROFF)
 S DX=78 X XY W "*",!,XX
 K X,Y,I,AU("MAX"),SITENAME,XX,ABPA("HD"),AU("LINE"),DX,DY
QUIT Q