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

ZINDX1.m

Go to the documentation of this file.
  1. %INDX1 ;ISC/REL,GRK,RWF - ERROR ROUTINE ;1/9/95 15:19
  1. ;;7.3;TOOLKIT;;Apr 25, 1995
  1. A N %,%1
  1. S ERTX=LAB_$S(LABO:"+"_LABO,1:""),ERTX=$E(ERTX_" ",1,11),%1=$T(ERROR+ERR),ERTX=ERTX_" "_$S(ERR:$P(%1,";",4,9),1:ERR)
  1. I ERTX["|" F %=1:1 S ERTX=$P(ERTX,"|")_$S($D(ERR(%)):ERR(%),1:"??")_$P(ERTX,"|",%+1,99) Q:ERTX'["|"
  1. B I $P(%1,";",3)]"" D Q:%1]"" ;Don't flag kernel doing kernel.
  1. . S %1=$P(%1,";",3)
  1. . F Q:RTN[$P(%1,",") S %1=$P(%1,",",2,99) ;quit if RTN[%1 or null.
  1. . Q
  1. I ERR=17,$E(RTN)'="%",$E(LAB)="%" Q ;Don't flag %RTN w/o %.
  1. S %=$G(^UTILITY($J,1,RTN,"E",0))+1,^(0)=%,^(%)=ERTX Q
  1. ;
  1. E(ERR) ;
  1. G A Q
  1. ;
  1. ERROR ;
  1. 1 ;;;F - UNDEFINED COMMAND (rest of line not checked).
  1. 2 ;;;F - Non-standard (Undefined) 'Z' command.
  1. 3 ;;;F - Undefined Function.
  1. 4 ;;;F - Undefined Special Variable.
  1. 5 ;;;F - Unmatched Parenthesis.
  1. 6 ;;;F - Unmatched Quotation Marks.
  1. 7 ;;;F - ELSE Command followed by only one space.
  1. 8 ;;;F - FOR Command did not contain '='.
  1. 9 ;;;W - QUIT Command followed by only one space.
  1. 10 ;;;F - Unrecognized argument in SET command.
  1. 11 ;;;W - Invalid local variable name.
  1. 12 ;;;W - Invalid global variable name.
  1. 13 ;;;F - Blank(s) at end of line.
  1. 14 ;;;F - Missing LABEL, REFERENCED in this routine.
  1. 15 ;;;W - Duplicate label.
  1. 16 ;;;F - Error in pattern code.
  1. 17 ;;;W - First line tag NOT routine name.
  1. 18 ;;;W - Line contains a CONTROL (non-graphic) character.
  1. 19 ;;;S - Line is longer than 245 bytes.
  1. 20 ;;;S - View command used.
  1. 21 ;;;F - General Syntax Error.
  1. 22 ;;;S - Exclusive Kill.
  1. 23 ;;;S - Unargumented Kill.
  1. 24 ;;;S - Kill of an unsubscripted global.
  1. 25 ;;;S - Break command used.
  1. 26 ;;;S - Exclusive or Unargumented NEW command.
  1. 27 ;;;S - $View function used.
  1. 28 ;;;S - Non-standard $Z special variable used.
  1. 29 ;;ZIS;S - 'Close' command should be invoked through 'D ^%ZISC'.
  1. 30 ;;;S - TAG+OFFSET syntax.
  1. 31 ;;;S - Non-standard $Z function used.
  1. 32 ;;;S - 'HALT' command should be invoked through 'G ^XUSCLEAN'.
  1. 33 ;;;S - Read command doesn't have a timeout.
  1. 34 ;;ZIS;S - 'OPEN' command should be invoked through ^%ZIS.
  1. 35 ;;;S - Routine exceeds SACC maximum size of 5000 (|).
  1. 36 ;;ZTM;S - Should use 'TASKMAN' instead of 'JOB' command.
  1. 37 ;;;F - Tag is not valid.
  1. 38 ;;;F - Call to this MISSING LABEL (see INVOKED BY list).
  1. 39 ;;;S - Kill of a protected variable (|).
  1. 40 ;;;S - Space where a command should be.
  1. 41 ;;;S - Star or pound READ used.
  1. 42 ;;;F - Null line (no commands or comment).
  1. 43 ;;;F - Invalid or wrong number of arguments to a function.
  1. 44 ;;;S - Version number not found on 2nd line of routine.
  1. 45 ;;ZTM,ZTLO,ZIS;S - Set to a '%' global.
  1. 46 ;;;F - Quoted string not followed by a separator.
  1. 47 ;;;S - Lowercase command(s) used in line.
  1. 48 ;;;F - Missing argument to a command post-conditional.
  1. 49 ;;;F - Command missing an argument.
  1. 50 ;;ZTM;S - Extended reference.
  1. 51 ;;;F - Block structure mismatch.
  1. 52 ;;;F - Reference to routine '^|'. That isn't in this UCI.
  1. 53 ;;;F - Bad Number