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

HLDIEDB2.m

Go to the documentation of this file.
  1. HLDIEDB2 ;CIOFO-O/LJA - Debug $$STORESCR Code ;1/9/04 @ 09:01
  1. ;;1.6;HEALTH LEVEL SEVEN;**109**;Oct 13,1995
  1. ;
  1. STORESCR(RTN,LOC,STORE) ; Called by Xecutable M code to set or "unset" (don't
  1. ; collect) data...
  1. ;
  1. ; Steps to add SCREEN logic below
  1. ; -------------------------------
  1. ; (1) Add M code that evaluates environment and optionally sets STORE.
  1. ; (2) Update NEWs at top of STORESCR
  1. ;
  1. ; Error Handling
  1. ; --------------
  1. ; What if your M code errors out? You don't want the call to
  1. ; FILE^HLDIE failing. But, you do want to be notified about the
  1. ; error. For this reason, error trapping has been added to this
  1. ; $$STORESCR API.
  1. ;
  1. ; In order to set up error handling, you must define in your M code
  1. ; the users who should receive an "error notification email message."
  1. ; Do this by defining the SENDUZ(DUZ)="" array, with one entry for
  1. ; each recipient of the message.
  1. ;
  1. ;
  1. ; >>> Step #2 - Update NEWS After M Code Creations <<<
  1. N SENDUZ
  1. ;
  1. I ^%ZOSF("OS")["DSM" N $ETRAP S $ET=""
  1. S X="ERR^HLDIEDB1",@^%ZOSF("TRAP")
  1. ;
  1. ; RTN = RTN~SUBRTN
  1. ; LOC = 1 if at top of FILE^HLDIE call
  1. ; = 2 if at bottom of FILE^HLDIE call
  1. ; STORE = "",1,2 (see below)
  1. ;
  1. ; STORE can be set to the following value...
  1. ;
  1. ; "" - Don't store anything
  1. ; 1 - Store "select" data
  1. ; 2 - Store all data
  1. ;
  1. ; Warning! The only acceptable action by this API is to change the
  1. ; value of STORE.
  1. ;
  1. ; >>> Step #1 - M Code Starts Here <<<
  1. ;
  1. ; Create list of recipients of error notification message now!
  1. ;
  1. ;
  1. ;
  1. ;
  1. ;
  1. ;
  1. ;
  1. ;
  1. ; >>> M Code Ends Here <<<
  1. ;
  1. Q STORE
  1. ;
  1. EOR ;HLDIEDB2 - Debug $$STORESCR Code ;1/9/04 @ 09:01