source: WorldVistAEHR/trunk/r/TOOLKIT-AWCM-XD-XIN-XPAR-XQAB-XT-XUC-XUR-ZIN-ZTED/XINDX1.m@ 1608

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

initial load of WorldVistAEHR

File size: 3.2 KB
RevLine 
[613]1XINDX1 ;ISC/REL,GRK,RWF - ERROR ROUTINE ;10/30/2003 11:00
2 ;;7.3;TOOLKIT;**20,61,66,68**;Apr 25, 1995
3A N %,%1 ;TXT is the line of the error.
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)=%,^(%)=TXT_$C(9)_ERTX Q
12 ;
13E(ERR) ;
14 G A Q
15 ;F = Fatal, S = Standard, W = Warning, I = Info
16ERROR ;
171 ;;;F - UNDEFINED COMMAND (rest of line not checked).
182 ;;ZTER;F - Non-standard (Undefined) 'Z' command.
193 ;;XTRMON;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 ;;;I - 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 ;;;W - Blank(s) at end of line.
3014 ;;;F - Missing LABEL, REFERENCED in this routine.
3115 ;;;W - Duplicate label. (M57)
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 ;;ZOSV;S - Non-standard $Z special variable used.
4529 ;;ZIS;S - 'Close' command should be invoked through 'D ^%ZISC'.
4630 ;;;S - TAG+OFFSET syntax.
4731 ;;ZOSV;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 10000 (|).
5236 ;;ZTM;S - Should use 'TASKMAN' instead of 'JOB' command.
5337 ;;;F - Tag is not valid.
5438 ;;;F - Call to this |
5539 ;;ZIS,XUS,XUP;S - Kill of a protected variable (|).
5640 ;;;S - Space where a command should be.
5741 ;;;I - Star or pound READ used.
5842 ;;;W - 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,XUTM;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
7054 ;;XG;S - Access to SSVN's restricted to Kernel.
7155 ;;;S - Violates VA programming standards.
7256 ;;;S - Patch number '|' missing from second line.
7357 ;;;S - Lower/Mixed case Variable name used.
Note: See TracBrowser for help on using the repository browser.