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

AQAQMIS.m

Go to the documentation of this file.
AQAQMIS ;IHS/ASU/RPL 4/17/89;MISSING STAFF CREDENTIAL REPORT ; 11/7/89  10:00 AM
 ;;STAFF CREDENTIALS Version 1.1;11/7/89
START ;
 S AQAQSITE=$P(^DIC(4,DUZ(2),0),"^",1)
ZIS W !! S %IS="Q" D ^%ZIS G:POP QUIT I '$D(IO("Q")) U IO G DQUE
QUE K IO("Q"),IO("S") I IO=IO(0) W !,"Cannot Queue to Screen or Slave Printer!",! G ZIS
 S ZTRTN="DQUE^AQAQMIS",ZTDESC="MISSING STAFF CREDENTIALS REPORT" S ZTSAVE("AQAQSITE")=""
 D ^%ZTLOAD G QUIT
DQUE K ^UTILITY($J)
 S AQAQSET=^DD(9002155,1,0),AQAQSET=$P(AQAQSET,"^",3),AQAQCTR=$L(AQAQSET,":")-1
 F I=1:1:AQAQCTR S AQAQS=$P(AQAQSET,";",I) S AQAQ1=$P(AQAQS,":"),AQAQ2=$P(AQAQS,":",2) S AQAQS(AQAQ1)=AQAQ2
 S AQAQDFN=0 F I=0:0 S AQAQDFN=$O(^AQAQ(AQAQDFN)) Q:AQAQDFN'=+AQAQDFN  D C0
 G PRINT
C0 S AQAQNM=$P(^DIC(16,AQAQDFN,0),"^")
 S AQAQN0=^AQAQ(AQAQDFN,0)
 S AQAQSC=$P(AQAQN0,"^",2) S AQAQSC=$S(AQAQSC]"":AQAQS(AQAQSC),1:"<No Staff Category on File>")
 S AQAQCADT=$P(AQAQN0,"^",3) S Y=AQAQCADT X ^DD("DD") S AQAQCADT=Y
 S AQAQDEA=$P(AQAQN0,"^",12),AQAQDEA=$S(AQAQDEA="N":1,AQAQDEA="":1,1:0)
 S AQAQINT=$P(AQAQN0,"^",5),AQAQINT=$S(AQAQINT="N":1,AQAQINT="":1,1:0)
 S AQAQRES=$P(AQAQN0,"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