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

ABSPOS6F.m

Go to the documentation of this file.
  1. ABSPOS6F ; IHS/FCS/DRS - debugging for ABSPOS ; [ 09/12/2002 10:04 AM ]
  1. ;;1.0;PHARMACY POINT OF SALE;**3**;JUN 21, 2001;Build 38
  1. Q
  1. ; Problem: errors occurring in ABSPOS, but NEW commands
  1. ; and use of temp storage indexed by $J mean there's no wreckage
  1. ; to inspect. Well, here, we copy some wreckage for analysis.
  1. ; It's a supplement to the main error log.
  1. ; Also, some extra $ZT set in ABSPOS itself, to hopefully save
  1. ; what data is otherwise lost as NEW stuff is unwound.
  1. LOGERR(WHERE) ;EP - from ABSPOS6I
  1. N ERRSPOT
  1. S ERRSPOT=$P($H,",",2)\600*600 ; leave ERRSPOT for error trap to report
  1. ; spread it out so only one every 10 minutes at most,
  1. ; just in case there's a flood of them (don't fill up disk)
  1. N ROU S ROU=$T(+0)
  1. K ^TMP("ABSPOS6F",$J,ERRSPOT)
  1. S ^TMP("ABSPOS6F",$J,ERRSPOT,"WHERE")=WHERE_" at "_$H
  1. M ^TMP("ABSPOS6F",$J,ERRSPOT,"ABSPOS")=^TMP("ABSPOS",$J)
  1. M ^TMP("ABSPOS6F",$J,ERRSPOT,"ABSPOSUA")=^TMP("ABSPOSUA",$J)
  1. I $D(VALMAR) M ^TMP("ABSPOS6F",$J,ERRSPOT,"VALMAR")=@VALMAR
  1. S ^TMP("ABSPOS6F",$J,ERRSPOT,"VALMCNT")=$G(VALMCNT)
  1. S ^TMP("ABSPOS6F",$J,ERRSPOT,"VALMBG")=$G(VALMBG)
  1. S ^TMP("ABSPOS6F",$J,ERRSPOT,"VALMAR")=$G(VALMAR)
  1. Q