--------------------------------------------------------------------------------
MODULE    IMEND

-------------------------------------------------------------------------------- REPLACES DAMP modules MIF and IFT

--------------------------------------------------------------------------------

FUNCTION

--------------------------------------------------------------------------------

FORMAT


--------------------------------------------------------------------------------
PROMPT

--------------------------------------------------------------------------------

PARAMETER

--------------------------------------------------------------------------------

COMMAND QUALIFIERS

--------------------------------------------------------------------------------

DESCRIPTION

--------------------------------------------------------------------------------

EXAMPLES

$ IMEND TST<CR>
%LSLLIB-I-IFFOPENED, IFF file DUA3:[BUREAU.TRIALS]TST.IFF;0 opened for mend
%IMEND-I-ENDLAY, end of layer 2
%IMEND-I-ENDLAY, end of layer 32
%IFF-E-IFFERR, IFF error BW   on LUN 1
%IMEND-I-CORRUPT, file corrupt in map 1
%IMEND-I-LSTFTR, last complete feature FSN 9996 (9970) layer 32 map 1
%IMEND-S-IFILREP, IFF file successfully mended
 ELAPSED:    0 00:00:02.33  CPU: 0:00:00.71  BUFIO: 7  DIRIO: 37  FAULTS: 88 
$

$ IMEND<CR> _IFF file: GHASTLY.MER/RANGE<CR> %LSLLIB-I-IFFOPENED, IFF file DUA0:[LSL.IFF]GHASTLY.MER;0 opened for mend %IMEND-I-ENDLAY, end of layer 0 %IMEND-I-ENDLAY, end of layer 1 %IMEND-I-ENDMAP, end of map 1 %IMEND-I-LSTFTR, last complete feature FSN 1956 (1956), layer 1, map 1 %IMEND-S-IFILREP, IFF file successfully mended %IMEND-I-UPRANGE, updating range entry %IMEND-I-NEWRANGE, new range entry - XMIN 230.300, XMAX 450.874, YMIN 0.003, YMAX 597.839 ELAPSED: 0 00:00:30.52 CPU: 0:00:00.73 BUFIO: 7 DIRIO: 28 FAULTS: 74 $

$ IMEND PERDU.IFF<CR> %LSLLIB-E-IFFMODIFY, error opening IFF file DUA3:[BUREAU.TRIALS]PERDU.IFF;0 for update %IFF-E-IFFERR, IFF error USER on LUN 0 -RMS-E-FNF, file not found ELAPSED: 0 00:00:18.39 CPU: 0:00:00.34 BUFIO: 4 DIRIO: 9 FAULTS: 42 $

$ IMEND RUINED.IFF<CR> %LSLLIB-E-IFFMODIFY, error opening IFF file DUA3:[BUREAU.TRIALS]RUINED.IFF;0 for update %IFF-E-IFFERR, IFF error READ on LUN 0 -RMS-E-EOF, end of file detected ELAPSED: 0 00:00:01.39 CPU: 0:00:00.12 BUFIO: 4 DIRIO: 9 FAULTS: 11 $

$ IMEND SADNESS.IFF<CR> %LSLLIB-I-IFFOPNED, IFF file DUA0:[LSL.IFF]SADNESS.IFF; opened for mend %IMEND-I-IFFEMPTY, IFF file is empty ELAPSED: 0 00:00:01.39 CPU: 0:00:00.12 BUFIO: 4 DIRIO: 9 FAULTS: 11 $

$ IMEND DEMO/NOTRUNCATE<CR> %LSLLIB-I-IFFOPENED, IFF file DUA3:[BUREAU.TRIALS]DEMO.IFF;0 opened for mend %IMEND-I-ENALAY, end of layer 1 %IMEND-I-CORRUPT, file corrupt in feature with FSN 7 (7), layer 2, map 1 %IMEND-I-LSTFTR, last complete feature FSN 1 (1), Layer 2, Map 1 %IMEND-I-TERM, file has been terminated after the last complete entry %IMEND-I-IFILREP, IFF file successfully mended ELAPSED: 0 00:00:05.32 CPU: 0:00:00.54 BUFIO: 8 DIRIO: 17 FAULTS: 104 $

--------------------------------------------------------------------------------

MESSAGES (INFORMATIONAL)

These messages give information only, and require no immediate action by the user.

--------------------------------------------------------------------------------

MESSAGES (ERROR)

These messages indicate an error in processing which has caused the program to terminate. The most likely causes are a corrupt or otherwise invalid input IFF file, or an error related to command line processing and file manipulation.

--------------------------------------------------------------------------------

MESSAGES (OTHER)

In addition to the above messages which are generated by IMEND itself, other messages may be produced by the command line interpreter (CLI) and by Laser-Scan libraries. In particular, messages may be generated by the IFF library. These are introduced by '%IFF' and are documented in the IFF library users' guide. It is quite normal for IMEND to produce an IFF error message when corrupt data is encountered - it will terminate the file at this point. If the cause of an error cannot be traced by the user and Laser-Scan are consulted, then the input file should be preserved to facilitate diagnosis.