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

ABSPOSAZ.m

Go to the documentation of this file.
  1. ABSPOSAZ ; IHS/FCS/DRS - JWS, ; [ 09/12/2002 10:07 AM ]
  1. ;;1.0;PHARMACY POINT OF SALE;**3**;JUN 21, 2001;Build 38
  1. Q
  1. ; $$GETSTAT returns $ZA^$ZB values
  1. GETSTAT(DIALOUT) ;
  1. N IO S IO=$$IO^ABSPOSA(DIALOUT)
  1. U IO Q $ZA_"^"_$ZB Q
  1. ; $$STATRPT displays info about a TCP terminal server connection (MSM)
  1. STATRPT(DIALOUT) ; report $ZA, $ZB for the socket
  1. ;
  1. N ZA,ZB S ZA=$$GETSTAT(DIALOUT),ZB=$P(ZA,"^",2),ZA=$P(ZA,"^") U $P
  1. W "$ZA = characters left in input buffer = ",ZA,!
  1. W "$ZB = ",ZB," " I ZB=0 W "(okay)",! Q
  1. I ZB>0 W "operating system error code",!
  1. E I ZB=-1 W "end of input"
  1. E I ZB=-2 W "socket not allocated"
  1. E I ZB=-3 W "operation timed out"
  1. E I ZB=-4 W "BREAK key"
  1. E I ZB=-5 W "no server allocated (MSM-Unix)"
  1. E I ZB=-6 W "socket already exists"
  1. E I ZB=-7 W "no resource"
  1. E I ZB=-8 W "license limit exceeded"
  1. E I ZB=-9 W "socket operation failed (see docu)"
  1. E I ZB=-10 W "variable length read timed out"
  1. E W "(unknown reason?)"
  1. W !
  1. Q