source: FOIAVistA/tag/r/TOOLKIT-AWCM-XD-XIN-XPAR-XQAB-XT-XUC-XUR-ZIN-ZTED/ZINDX1.m@ 643

Last change on this file since 643 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 2.9 KB
Line 
1%INDX1 ;ISC/REL,GRK,RWF - ERROR ROUTINE ;1/9/95 15:19
2 ;;7.3;TOOLKIT;;Apr 25, 1995
3A N %,%1
4 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)
5 I ERTX["|" F %=1:1 S ERTX=$P(ERTX,"|")_$S($D(ERR(%)):ERR(%),1:"??")_$P(ERTX,"|",%+1,99) Q:ERTX'["|"
6B I $P(%1,";",3)]"" D Q:%1]"" ;Don't flag kernel doing kernel.
7 . S %1=$P(%1,";",3)
8 . F Q:RTN[$P(%1,",") S %1=$P(%1,",",2,99) ;quit if RTN[%1 or null.
9 . Q
10 I ERR=17,$E(RTN)'="%",$E(LAB)="%" Q ;Don't flag %RTN w/o %.
11 S %=$G(^UTILITY($J,1,RTN,"E",0))+1,^(0)=%,^(%)=ERTX Q
12 ;
13E(ERR) ;
14 G A Q
15 ;
16ERROR ;
171 ;;;F - UNDEFINED COMMAND (rest of line not checked).
182 ;;;F - Non-standard (Undefined) 'Z' command.
193 ;;;F - Undefined Function.
204 ;;;F - Undefined Special Variable.
215 ;;;F - Unmatched Parenthesis.
226 ;;;F - Unmatched Quotation Marks.
237 ;;;F - ELSE Command followed by only one space.
248 ;;;F - FOR Command did not contain '='.
259 ;;;W - QUIT Command followed by only one space.
2610 ;;;F - Unrecognized argument in SET command.
2711 ;;;W - Invalid local variable name.
2812 ;;;W - Invalid global variable name.
2913 ;;;F - Blank(s) at end of line.
3014 ;;;F - Missing LABEL, REFERENCED in this routine.
3115 ;;;W - Duplicate label.
3216 ;;;F - Error in pattern code.
3317 ;;;W - First line tag NOT routine name.
3418 ;;;W - Line contains a CONTROL (non-graphic) character.
3519 ;;;S - Line is longer than 245 bytes.
3620 ;;;S - View command used.
3721 ;;;F - General Syntax Error.
3822 ;;;S - Exclusive Kill.
3923 ;;;S - Unargumented Kill.
4024 ;;;S - Kill of an unsubscripted global.
4125 ;;;S - Break command used.
4226 ;;;S - Exclusive or Unargumented NEW command.
4327 ;;;S - $View function used.
4428 ;;;S - Non-standard $Z special variable used.
4529 ;;ZIS;S - 'Close' command should be invoked through 'D ^%ZISC'.
4630 ;;;S - TAG+OFFSET syntax.
4731 ;;;S - Non-standard $Z function used.
4832 ;;;S - 'HALT' command should be invoked through 'G ^XUSCLEAN'.
4933 ;;;S - Read command doesn't have a timeout.
5034 ;;ZIS;S - 'OPEN' command should be invoked through ^%ZIS.
5135 ;;;S - Routine exceeds SACC maximum size of 5000 (|).
5236 ;;ZTM;S - Should use 'TASKMAN' instead of 'JOB' command.
5337 ;;;F - Tag is not valid.
5438 ;;;F - Call to this MISSING LABEL (see INVOKED BY list).
5539 ;;;S - Kill of a protected variable (|).
5640 ;;;S - Space where a command should be.
5741 ;;;S - Star or pound READ used.
5842 ;;;F - Null line (no commands or comment).
5943 ;;;F - Invalid or wrong number of arguments to a function.
6044 ;;;S - Version number not found on 2nd line of routine.
6145 ;;ZTM,ZTLO,ZIS;S - Set to a '%' global.
6246 ;;;F - Quoted string not followed by a separator.
6347 ;;;S - Lowercase command(s) used in line.
6448 ;;;F - Missing argument to a command post-conditional.
6549 ;;;F - Command missing an argument.
6650 ;;ZTM;S - Extended reference.
6751 ;;;F - Block structure mismatch.
6852 ;;;F - Reference to routine '^|'. That isn't in this UCI.
6953 ;;;F - Bad Number
Note: See TracBrowser for help on using the repository browser.