PSN158E ;BIR/DMA-environment check for data updates ; 20 Nov 2007 10:27 AM
;;4.0; NATIONAL DRUG FILE;**158**; 30 Oct 98;Build 17
;
I $D(DUZ)#2 N DIC,X,Y S DIC=200,DIC(0)="N",X="`"_DUZ D ^DIC I Y>0
E W !!,"You must be a valid user." S XPDQUIT=2
I $$PATCH^XPDUTL(XPDNM) W !!,"This patch has already been installed." S XPDQUIT=1 Q
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPSN158E 345 printed Dec 13, 2024@02:17:12 Page 2
PSN158E ;BIR/DMA-environment check for data updates ; 20 Nov 2007 10:27 AM
+1 ;;4.0; NATIONAL DRUG FILE;**158**; 30 Oct 98;Build 17
+2 ;
+3 IF $DATA(DUZ)#2
NEW DIC,X,Y
SET DIC=200
SET DIC(0)="N"
SET X="`"_DUZ
DO ^DIC
IF Y>0
+4 IF '$TEST
WRITE !!,"You must be a valid user."
SET XPDQUIT=2
+5 IF $$PATCH^XPDUTL(XPDNM)
WRITE !!,"This patch has already been installed."
SET XPDQUIT=1
QUIT
+6 QUIT