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

HLPAT76.m

Go to the documentation of this file.
  1. HLPAT76 ;OAKCIOFO/AC POSTINIT ;08/06/2001 21:14
  1. ;;1.6;HEALTH LEVEL SEVEN;**76**;JUL 17, 1995
  1. ENTER ; Check for incomplete messages as a result of READ ERRORS
  1. ; encountered by the DIRECT CONNECT API.
  1. D BMES^XPDUTL("Post-init will identify all incomplete messages associated with TCP links")
  1. D BMES^XPDUTL("These incomplete messages were a result of Network errors")
  1. D BMES^XPDUTL("encountered by the DIRECT CONNECT API.")
  1. D BMES^XPDUTL("These messages will be removed from the outbound TCP queue.")
  1. D BMES^XPDUTL("Scanning for incomplete messages...")
  1. EN1 ;ENTRY POINT ONE
  1. N HLDA,HLFIRST,HLL,HLLAST,HLTCP,XPDIDTOT
  1. S HLTCP=""
  1. S HLFIRST=+$O(^HLMA("AC","O",0))
  1. I 'HLFIRST D BMES^XPDUTL("No messages in the outbound TCP queue.") Q
  1. S HLLAST=+$O(^HLMA("AC","O","@"),-1)
  1. S XPDIDTOT=HLLAST-HLFIRST+1
  1. F HLL=0:0 S HLL=$O(^HLMA("AC","O",HLL)) Q:HLL'>0 D
  1. .D UPDATE^XPDID(XPDIDTOT-(HLLAST-HLL+1))
  1. .F HLDA=0:0 S HLDA=$O(^HLMA("AC","O",HLL,HLDA)) Q:HLDA'>0 D
  1. ..F L +^HLMA(HLDA):1 Q:$T H 1
  1. ..I '$D(^HLMA(HLDA,"P")) D STATUS^HLTF0(HLDA,3,,,1)
  1. ..L -^HLMA(HLDA)
  1. Q