PSN125E ;BIR/DMA-environment check for data updates ; 07 Sep 2006 7:37 AM
;;4.0; NATIONAL DRUG FILE;**125**; 30 Oct 98;Build 4
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[HPSN125E 339 printed Nov 22, 2024@17:26:45 Page 2
PSN125E ;BIR/DMA-environment check for data updates ; 07 Sep 2006 7:37 AM
+1 ;;4.0; NATIONAL DRUG FILE;**125**; 30 Oct 98;Build 4
+2 IF $DATA(DUZ)#2
NEW DIC,X,Y
SET DIC=200
SET DIC(0)="N"
SET X="`"_DUZ
DO ^DIC
IF Y>0
+3 IF '$TEST
WRITE !!,"You must be a valid user."
SET XPDQUIT=2
+4 IF $$PATCH^XPDUTL(XPDNM)
WRITE !!,"This patch has already been installed."
SET XPDQUIT=1
QUIT
+5 QUIT