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

AQAQRE.m

Go to the documentation of this file.
AQAQRE ;IHS/ASU/RPL 4/17/89;Staff Credentials Recredentialing Due Report ; 11/7/89  10:10 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^AQAQRE",ZTDESC="RECREDENTIALING DUE 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),"^")
 I '$D(^AQAQ(AQAQDFN,8)) S AQAQRCDU=0 G C000
 S AQAQRCDU=$P(^AQAQ(AQAQDFN,8),"^",2) S:AQAQRCDU="" AQAQRCDU=0
C000 S AQAQSC=$P(^AQAQ(AQAQDFN,0),"^",2) S AQAQSC=$S(AQAQSC]"":AQAQS(AQAQSC),1:"<No Staff Category on File>")
C00 I '$D(^AQAQ(AQAQDFN,3)) S AQAQMLE=0 G C01
 K AQAQMLE S AQAQ3=0 F J=0:0 S AQAQ3=$O(^AQAQ(AQAQDFN,3,AQAQ3)) Q:'AQAQ3  S A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