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

INHVZTFE.m

Go to the documentation of this file.
  1. %ZTFE ;SLT; 6 Oct 94 15:13;%ZTFE for DSM - error handler utility
  1. ;;3.01;BHL IHS Interfaces with GIS;;JUL 01, 2001
  1. ;COPYRIGHT 1991-2000 SAIC
  1. ;All implementation-specific code must be flagged with ';***'.
  1. ;This version is for VAX DSM.
  1. N %,N,R,L,T
  1. W !,"Available functions in library ^"_$T(+0)
  1. S N=0 F %=2:1 S R=$T(+%) Q:R="" D
  1. .S L=$P(R," "),T=$E(R,$F(R," "),999)
  1. .I L]"",$E(T)=";" W !!,$P(L,"("),?10,"(",$P(L,"(",2,99) S N=1
  1. .I N,$E(T)=";" W !?5,T Q
  1. .S N=0
  1. Q
  1. ;the end
  1. ETYPE(IPS) ;check certain error conditions
  1. ;input:
  1. ; IPS --> (req,pbv) input parameter string
  1. ; valid codes:
  1. ; C: CTRAP
  1. ; A: ALLOC
  1. ; N: NOSYS
  1. ; D: DSTDB
  1. ; O: DSM-E-READERR or DSM-E-DEVALLOC
  1. ; V:
  1. ;output:
  1. ; 1: error found
  1. ; 0: error not found
  1. I IPS["C",$ZE["CTRAP" Q 1 ; cks for CTRAP & CTRAPERR in DSM 6.3
  1. I IPS["A",$ZE["ALLOC" Q 1
  1. I IPS["N",$ZE["NOSYS" Q 1 ; NOSYS err may not exist in DSM 6.3
  1. I IPS["D",$ZE["DSTDB" Q 1 ; DSTDB err may not exist in DSM 6.3
  1. I IPS["O",(($ZE["DSM-E-READERR")!($ZE["DSM-E-DEVALLOC")) Q 1
  1. ;I IPS["V" Q 1
  1. Q 0
  1. ;