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

APCPERR.m

Go to the documentation of this file.
APCPERR ; IHS/TUCSON/LAB - OHPRD-TUCSON/EDE WITE PCC TX ERRORS AUGUST 14, 1992 ; [ 08/18/03  6:05 AM ]
 ;;2.0;IHS PCC DATA EXTRACTION SYSTEM;**6**;APR 03, 1998
 ;
START ;
 S APCPE("ERR DFN")=$O(^APCDERR("B",APCPE("ERROR"),"")) I APCPE("ERR DFN")="" S APCPE("MSG")=APCPE("ERROR")_"-ERROR INFORMATION NOT IN ERROR FILE" G ERR
 S APCPE("MSG")=APCPE("ERROR")_"-"_$P(^APCDERR(APCPE("ERR DFN"),0),U,2) S:$L(APCPE("MSG"))=5 APCPE("MSG")=APCPE("MSG")_"- ERROR INFORMATION NOT IN ERROR FILE" S APCPE("MSG")=$E(APCPE("MSG"),1,45)
ERR S:'$D(APCPE("FILE")) APCPE("FILE")=9000010 S:'$G(APCPE("EDFN")) APCPE("EDFN")=APCP("V DFN") S:'$D(APCPE("T-TCODE")) APCPE("T-TCODE")=99
 S X=$P(APCPE("FILE"),".",2),X=$E("00",1,2-$L(X))_X,X="F"_X,APCPE("VARIABLE PREFIX")=X
 I $P($G(^AUPNVSIT(APCP("V DFN"),0)),U,11) Q
 K DIE,DR S DA=APCP("RUN LOG"),DR="5101///"""_APCPE("T-TCODE")_"""",DR(2,9001005.05101)=".02///"_APCPE("VARIABLE PREFIX")_".`"_APCPE("EDFN")_";.03///"_APCPE("MSG")_";.04///`"_APCP("V DFN"),DIE="^APCPLOG("
 D ^DIE K DR,DIE
 I $D(Y) S APCP("QFLG")=25 W:'$D(ZTQUEUED) !!,"Error encountered in ^APCPERR.  Notify programmer!",! I $D(ZTQUEUED) D ERRBULL^APCPDRI3
 Q