pTAL Reference Manual (H06.08+)
Compiler Directives
HP pTAL Reference Manual—523746-006
17-32
ERRORFILE
After the compiler logs messages to the error file, you can call the HP TACL FIXERRS
macro and correct the source file. FIXERRS uses the PS Text Edit ANYHOW option to
open the source file in a two-window session. One window displays a diagnostic
message. The other window displays the source code to which the message applies. If
you have write access to the file, you can correct the source code. If you have only
read access, you can view the source code, but you cannot correct it.
Initially, the edit cursor is located in the source code at the first diagnostic. To move the
cursor to the next or previous diagnostic, use the PS Text Edit NEXTERR or
PREVERR command.
The HP TACL command for calling FIXERRS is:
error-file
is the name of the error file specified in the ERRORFILE directive.
tedit-cmds
is any PS Text Edit commands that are allowed on the PS Text Edit run line.
Example 17-17 on page 17-32 issues an HP TACL DEFINE command that calls
FIXERRS and defines PS Text Edit function keys for NEXTERR and PREVERR.
Example 17-17. FIXERRS Macro
[#DEF MYFIXERRS MACRO |BODY|
FIXERRS %1%; SET <F9>, NEXTERR; SET <SF9>, PREVERR
]
Example 17-18. ERRORFILE Directive
! MYSOURCE file
?ERRORFILE myerrors ! Compiler reports errors and warnings
! to the file myerrors
!Global declarations
FIXERRS
;
tedit-cmds
VST211.vsd
error-file










