1 Errors All TECO error messages are of the form ?XXX Short text message and abort TECO's command execution. Typing a question mark (?) immediately after TECO's input prompt will print the erring command string up to and including the error point. Typing a slash (/) immediately after TECO's input prompt will print a longer explanation of the error. 2 BNI ?BNI > not in iteration There is a close angle bracket not matched by an open angle bracket somewhere to its left. (Note: an iteration in a macro stored in a Q-register must be complete within the Q-register.) 2 CPQ ?CPQ Can't pop Q-reg A ] command has been executed and there is nothing saved on the Q-register push down list. 2 DTB ?DTB Delete too big An nD command has been attempted which is not contained within the current page. 2 ERR ?ERR ID, text Some system service call failed. The error message ID and text explain the error. 2 FNF ?FNF File not found "filespec" The requested input file could not be located. If this occurred within a macro the colon modified ER or EB command may be necessary. 2 IAA ?IAA Illegal A arg The argument preceding a :A command is negative or 0. 2 IEC ?IEC Illegal E character An invalid E command has been executed. The E character must be followed by an alphabetic to form a legal E command (e.g., ER or EX). 2 IFC ?IFC Illegal F character An invalid F command has been executed. 2 IIA ?IIA Illegal insert arg A command of the form "nItext$" was attempted. This combination of character and text insertion is illegal. 2 ILL ?ILL Illegal command An attempt has been made to execute an invalid TECO command. 2 ILN ?ILN Illegal number An 8 or 9 has been entered when the radix of TECO is set to octal. 2 IPA ?IPA Illegal P arg The argument preceding a P or PW command is negative or 0. 2 IQC ?IQC Illegal " character One of the valid " commands did not follow the ". 2 IQN ?IQN Illegal Q-reg name An illegal Q-register name was specified in one of the Q-register commands. 2 IRA ?IRA Illegal radix arg The argument to a ^R radix command must be 8, 10, or 16. 2 ISA ?ISA Illegal search arg The argument preceding a search command is 0. This argument must not be 0. 2 ISS ?ISS Illegal search string One of the search string special characters (^Q, ^R, etc.) would have modified the search string delimiter (usually ESCAPE). 2 IUC ?IUC Illegal ^ character The character following an ^ must have ASCII value between 100 and 137 inclusive or between 141 and 172 inclusive. 2 MEM ?MEM Memory overflow Insufficient memory available to complete the current command. Make sure the Q-register area does not contain much unnecessary text. Breaking up the text area into multiple pages might be useful. 2 MRP ?MRP Missing ) There is a right parenthesis that is not matched by a corresponding left parenthesis. 2 NAB ?NAB No arg before ^_ The ^_ command must be preceded by either a specific numeric argument or a command that returns a numeric value. 2 NAC ?NAC No arg before , A command has been executed in which a , is not preceded by a numeric argument. 2 NAE ?NAE No arg before = The =, ==, or === command must be preceded by either a specific numeric argument or a command that returns a numeric value. 2 NAP ?NAP No arg before ) A ) parenthesis has been encountered and is not properly preceded by a specific numeric argument or a command that returns a numeric value. 2 NAQ ?NAQ No arg before " The " commands must be preceded by a single numeric argument on which the decision to execute the following commands or skip to the matching ' is based. 2 NAS ?NAS No arg before ; The ; command must be preceded by a single numeric argument on which the decision to execute the following commands or skip to the matching > is based. 2 NAU ?NAU No arg before U The U command must be preceded by either a specific numeric argument or a command that returns a numeric value. 2 NFI ?NFI No file for input Before issuing an input command, such as Y, it is necessary to open an input file by use of a command such as ER or EB. 2 NFO ?NFO No file for output Before issuing an output command such as N search or P it is necessary to open an output file by use of a command such as EW or EB. 2 NYA ?NYA Numeric arg with Y The Y command must not be preceded by either a numeric argument or a command that returns a numeric value. 2 OFO ?OFO Output file already open "filespec" A command has been executed which tried to create an output file, but an output file currently is open. It is typically appropriate to use the EC or EK command as the situation calls for to close the output file. 2 PDO ?PDO Push-down list overflow The command string has become too complex. Simplify it. 2 POP ?POP Pointer off page A J, C or R command has been executed which attempted to move the pointer off the page. The result of executing one of these commands must leave the pointer between 0 and Z, inclusive. The characters referenced by a D or m,nX command must also be within the buffer boundary. 2 SNI ?SNI ; not in iteration A ; command has been executed outside of an open iteration bracket. This command may only be executed within iteration brackets. 2 SRH ?SRH Search failure "text" A search command not preceded by a colon modifier and not within an iteration has failed to find the specified "text". After an S search fails the pointer is left at the beginning of the buffer. After an N or _ search fails the last page of the input file has been input and, in the case of N, output, and the buffer is cleared. In the case of an N search it is usually necessary to close the output file and reopen it for continued editing. 2 STL ?STL String too long A search or file name string is too long. This is most likely the result of a missing ESCAPE after the string. 2 UTC ?UTC Unterminated command This is a general error which is usually caused by an unterminated insert, search, or filespec argument, an unterminated ^A message, an unterminated tag or comment (i.e., unterminated ! construct), or a missing ' character which closes a conditional execution command. 2 UTM ?UTM Unterminated macro This error is the same as the ?UTC error except that the unterminated command was executing from a Q-register (i.e., it was a macro). (Note: An entire command sequence stored in a Q-register must be complete within the Q-register.) 2 XAB ?XAB Execution aborted Execution of TECO was aborted. This is usually due to the typing of CTRL/C. 2 YCA ?YCA Y command aborted An attempt has been made to execute an Y or _ search command with an output file open, that would cause text in the text buffer to be erased without outputting it to the output file. The ED command controls this check. !++ ! The help section on TECO macros has been commented out since: ! 1) It isn't complete yet. ! 2) The macros don't ship anymore. !-- ! 1 Macros ! TECO macros... ! 2 LOCAL ! LOCAL.TEC is... ! 2 SEARCH ! SEARCH.TEC is a TECO macro used to search files for one or more ! character strings, and optionally replace them. It is invoked by: ! MUNG SYS$LIBRARY:SEARCH ! When run, it asks the following questions: ! ! Output : Output log file ! Input <*.MAR>: Input file spec(s) ! Lines <3>: Number of lines to verify ! (Absolute) Search: String(s) to search for ! Replace: Replace for found string (if /CHA specified) ! Detach : Run detached? ! ! Defaults are shown in angle brackets ("<>"). The "Input" and "Search" ! questions are repeated until they are answered with a blank line. ! 3 Input qualifiers ! /ALL ! List all file names in main part of log whether they were match or ! no-match. ! 3 Output qualifiers ! /CHA ! Change found string. This causes "Replace:" to be requested after ! every search string. The changed version is logged in the log file, ! and the input file is updated. ! /MAT ! Report only files with matches (No end list of no-match files). ! /ESC ! ESCape is the only delimiter for Search and Replace strings. Normally ! a carriage return is used as the delimiter. Thus multi-line search or ! replacement strings must be entered using the /ESC option. ! /DIR ! Compile a directory of the files now and use it to search. ! /ABS ! Exact case matches are required and TECO special search match ! characters must be entered as control characters (i.e., not with an ! uparrow). ! 3 Log file ! For each file which contains at least one match, a banner is printed ! out, and each instance, along with the 3 (or the number requested by ! the user) lines before and after it. A header line identifying the ! page number is printed with each instance. Once all of the files ! containing matches are logged, a list of files which do not contain ! matches is printed (unless the user specifies "/MAT" or "/ALL"). ! 3 File specs ! SEARCH allows a list of file specifications terminated by a blank line ! to be requested. Any or all of these may include wildcards. ! 3 Search strings ! The search strings are entered as a list ending with a blank line and ! are terminated with a carriage return unless "/ESC" is specified. Any ! of the TECO string matching constructs may be used. Unless "/ABS" is ! used, this includes "^" constructs for control characters, thus "^G" ! would search for a CTRL/G (bell) character. ! 2 SQU ! SQU.TEC is... ! 2 TYPE ! TYPE.TEC is... ! 2 VTEDIT ! VTEDIT.TEC is...