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

BDWRERR.m

Go to the documentation of this file.
BDWRERR ; IHS/CMI/LAB - LOG ERROR ;
 ;;1.0;IHS DATA WAREHOUSE;;JAN 23, 2006
 ;
START ;
 S BDW("SKIP")=BDW("SKIP")+1
 S BDWE("ERR DFN")=$O(^BDWERRC("B",BDWE("ERROR"),"")) I BDWE("ERR DFN")="" S BDWE("MSG")=BDWE("ERROR")_"-ERROR INFORMATION NOT IN ERROR FILE" G ERR
 S BDWE("MSG")=BDWE("ERROR")_"-"_$P(^BDWERRC(BDWE("ERR DFN"),0),U,2) S:$L(BDWE("MSG"))=5 BDWE("MSG")=BDWE("MSG")_"- ERROR INFORMATION NOT IN ERROR FILE" S BDWE("MSG")=$E(BDWE("MSG"),1,45)
ERR ; 
 S:'$D(^BDWXLOG(BDW("RUN LOG"),51,0)) ^BDWXLOG(BDW("RUN LOG"),51,0)="^90213.05101PA^^"
 S ^BDWXLOG(BDW("RUN LOG"),51,BDW("V DFN"),0)=BDW("V DFN")_"^^"_BDWE("MSG")
 S $P(^BDWXLOG(BDW("RUN LOG"),51,0),U,3)=BDW("V DFN"),$P(^(0),U,4)=$P(^(0),U,4)+1
 Q