--------------------------------------------------------------------------------
MODULE IREPORT
--------------------------------------------------------------------------------
REPLACES Nothing, IREPORT is a new IMP utility.
--------------------------------------------------------------------------------
IREPORT gives information about the presence or absence of selected IFF entries within a file. Absence of the specified entry may be detected with the /ABSENT qualifier.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
- specifies the IFF file from which information is required. Any part of the file specification which is not supplied will be taken from the default specification 'LSL$IF:IFF.IFF'.
/ABSENT
- report the absence of the selected IFF entry(s) from any IFF feature. (Not available for use with the /NS, /CP or /CC qualifiers).
/ADDRESS
/NOADDRESS
- messages to include the hexadecimal addresses of IFF entries
/FRT=file-spec
- causes the specified FRT file to be read during the initialisation sequence. Any AC types defined in it which are subsequently encountered in the IFF file and are to be reported on, will have their natures decribed according to the definitions in the FRT file. An incomplete file specification will default using 'LSL$FRT:.FRT'.
/IN_LAYER=integer[,...] or /IN_LAYER=(integer,integer[,...)
- report on the presence or absence of IFF entries only within the specified layers. Ranges may be specified. The specified layers are also reported when found. A maximum of 1024 layer numbers may be specified. Layer numbers must lie in the range 0 to 32767.
Not valid for use with /LAYER, /CC, /CP or /NS qualifiers.
/LITES2
/NOLITES2
- creates a LITES2 command file to take the user to potential errors. Messages generated to report a potential error are incorporated in the file. By default the LITES2 command file specification is parsed against that of the input IFF file but with the substitution of logical name LSL$LITES2CMD: and the extension '.LCM'. Thus if the input IFF file is called LSL$IF:TST.IFJ then the default LITES2 command file is LSL$LITES2CMD:TST.LCM.
LITES2 command sequences produced by IREPORT take the following typical form:
%MESSAGE FSN 670 (55) has no type 3 AC
%POSITION 765.3 456.89
%TEST $CURSINWIN
%ELSE %ZOOM 1
%PING
%RESPOND
%ABANDON
%ABANDON
/LITES2 is not available with the /ST, /ZS, /CB, /NS, /CC, /CP, or /LAYER
qualifiers.
The LITES2 command file contains a standard Laser-Scan LITES2 command file header which, in addition to run time information, contains commands for compatability with the LITES2 command file sorting utility LCMORG:
%POSITION -0.730 -0.157 %POSITION 400.183 401.083 %ABANDON %MESSAGE %MESSAGE L I T E S 2 C O M M A N D F I L E %MESSAGE %MESSAGE created by %MESSAGE %MESSAGE =========================== I R E P O R T ============================ %MESSAGE %MESSAGE IREPORT invoked by TIM using terminal LTA196: at 10-JUN-1987 12:09:47.1 %MESSAGE %MESSAGE Command line: %MESSAGE %MESSAGE IREPORT/LITES2=MISS_CODED OEEPECON/FC=5 %MESSAGE %MESSAGE ====================================================================== %MESSAGE %ABANDON %ABANDON
/LOG
/NOLOG
- produces supplementary messages to SYS$OUTPUT.
/OUTPUT[=file-spec]
- by default output will be to SYS$OUTPUT:. The /OUTPUT qualifier enables the user to redirect output to a specified file. If the optional /OUTPUT file-spec argument is omitted, output will be to SYS$DISK:IREPORT.LIS;.
/PRINTER
/NOPRINTER
- queues the IREPORT output for printing under the name given by the /OUTPUT qualifier. If you specify /PRINTER without the /OUTPUT qualifier, the output is directed to a file named SYS$DISK:IREPORT.LIS which is queued automatically for printing and then deleted.
/REVISION_LEVEL=integer (-1,0,1)
- sets the input revision level used when reading the input IFF file. The possible values are:
-1 IFF file is treated such that CB, ST and ZS entries will be read as themselves. This is the default setting.
0 IFF file is treated such that ST and ZS entries are read as themselves, and CB entries are converted into ST and ZS entries.
1 IFF file is treated such that ST and ZS entries are converted into CB entries, and CB entries are read as themselves.
/WITH_FC=integer or /WITH_FC=(integer,integer[,...])
- report on the presence/absence of IFF entries only within features with the specified feature codes. Ranges of feature codes may be specified. A maximum of 1024 feature codes may be specified. Feature codes must lie in the range 0 to 32767.
/WITH_FC is not valid for use with the /FC, /CC, /CP or /NS qualifiers.
IFF ENTRY QUALIFIERS
/AC[=integer or =(integer,integer[,...])]
- report on the presence of the specified types of AC (Ancillary Code). Ranges of AC types may be specified. A maximum of 1024 AC types may be specified. The nature of the ACs encountered will be described, possibly using definitions contained in any FRT file specified using /FRT.
If no arguments are supplied then the presence of all types of AC is reported. If arguments are supplied to the /AC qualifier then only the occurrence of the specified type of AC is reported. A maximum of 1024 AC types may be specified. AC types must lie in the range 0 to 32767.
The following typical output is generated:
AC found : Height (3), value : 101.123 in feature with FSN 2 (2)
With text : "THIS WOULD BE CONTENTS OF A TYPE 3 AC ENTRY"
AC found : Secondary_FC (1), value : 0 in feature with FSN 7 (7)
With text : "THIS WOULD BE CONTENTS OF A TYPE 1 AC ENTRY"
If the /ABSENT qualifier is specified then the following typical output is generated if specific AC type numbers are supplied:
Feature with FSN 670 (55), feature code 4, has no type 3 AC
If the /ABSENT qualifier is specified and /AC is present with no arguments then the following typical output is generated:
Feature with FSN 670 (55), feature code 6, has no AC entry
/CB
- report on the presence, summarise the header information of, and give the first point in all CB (Coordinate Block) entries. /CB provides the following typical output :
Coordinate Clock entry found in feature with FSN 1 (2) - graphical type = 1 - number of points = 77 - number of attributes per point = 3 - number of fixed attributes = 0 First point : Z (93) : 15.466 X (91) : 25.22 Y (92) : 1043.0
/CC
- report on the presence, and list the contents of, all IFF CC (Cubic Coefficient) entries. /CC provides the following typical output:
CC entry
.0000E 000 .0000E 000
.1000E 001 .0000E 000
.0000E 000 .1000E 001
.0000E 000 .0000E 000
.0000E 000 .0000E 000
.0000E 000 .0000E 000
.0000E 000 .0000E 000
.0000E 000 .0000E 000
.0000E 000 .0000E 000
.0000E 000 .0000E 000
/CP
- report on the presence, and list the contents of, all IFF CP (Control Point) entries. /CP provides the following typical output:
CP entry
NW 0.0 200.0 0.0 200.0
SW 0.0 0.0 0.0 0.0
SE 200.0 0.0 200.0 0.0
NE 200.0 200.0 200.0 200.0
/FC[=integer or =(integer,integer[,...])]
- the /FC qualifier offers two functions:
The following typical output is provided:
Feature code 7 found, in feature with FSN 3 (3)
If the /ABSENT qualifier is specified then the following typical output is generated if specific FC numbers are supplied:
If one feature code was specified:
Feature with FSN 670 (55) has no feature code 28
If more then one feature code was specified:
Feature with FSN 670 (55) has no feature code 1,6,28, or 78
If the /ABSENT qualifier is specified and /FC was specified with no arguments then the following typical output is generated:
Feature with FSN 670 (55) has no FS entry
/LAYER=integer[,...] or /LAYER=(integer,integer[,...])
- report on the presence of the specified layers. Ranges of layers may be specified. A maximum of 1024 layer numbers may be specified. Feature codes must lie in the range 0 to 32767.
If /LAYER is not specified then all layers are reported unless IN_LAYER is present in which case only the relevant layers are reported. The following typical output is generated:
Layer 4 found
If the /ABSENT qualifier is specified then the following typical output is generated if specific layer numbers are supplied:
No Layer 4 found.
/NF
- report on the presence of every NF (New Feature) entry in the IFF file. IREPORT refers to NF entries by their FSN (Feature Serial Number) and ISN (Internal Sequence Number). /NF provides the following typical output:
Feature with FSN 23 (20), feature code 77 found
If the /ABSENT qualifier is specified then the following typical output is generated:
Layer 34 has no features - it is empty
/NS
- report on each NS (New Section) entry. This provides the following typical output:
NS entry: "Digitised by CLIVE, using LAJ Version 7.1"
/RO
- report on the presence, and list the contents of, all IFF RO (ROtation) entries. /RO provides the following typical output:
RO entry, value 45.8, found in feature with FSN 3 (3)
If the /ABSENT qualifier is specified then the following typical output is generated:
Feature with FSN 670 (55) has no RO entry
/ST
- report on the presence, and list the contents of, all IFF ST (STring) entries. /ST provides the following typical output:
Feature with FSN 3 (3), feature code 3, has 2 STs containing 93 points
First point = (765.22, 876.818), Last point = (456.223, 887.66)
If a feature has only one string with a single point then the following typical output is generated:
Feature with FSN 9 (9), feature code 5, has a string with only one point Point = (400.064, 29.397)
If the /ABSENT qualifier is specified then the following typical output is generated:
Feature with FSN 670 (55) has no ST entry
/TC
- report on the presence, and list the contents of, all IFF TC (Transmitted Comment) entries.
If the TC entry is outside the feature then the following typical output is generated:
TC found before feature with FSN 199 (199)
"THIS WOULD BE THE CONTENTS OF A TC ENTRY"
If a TC is found inside a feature then the following typical output is generated:
TC entry found inside feature with FSN 3 (3)
"THIS WOULD BE THE CONTENTS OF THE TC ENTRY"
If the /ABSENT qualifier is specified then the following typical output is generated:
Feature with FSN 670 (670), feature code 5, has no TC entry
Output of this type is produced if no TC entries are found either before or inside the feature.
/TH
- report on the presence, and list the contents of, all IFF TH ("line THickness" or "Text Height") entries. /TH provides the following typical output:
TH entry, value 20, found in feature with FSN 3 (3)
If the /ABSENT qualifier is specified then the following typical output is generated:
Feature with FSN 670 (675) has no TH entry
/TX
- report on the presence, and list the contents of, all IFF TX TeXt) entries. /TX provides the following typical output:
Text entry found in feature with FSN 3 (3), rotation 5.2
"THIS IS AN EXAMPLE LINE OF TEXT"
If the /ABSENT qualifier is specified then the following typical output is generated:
Feature with FSN 670 (675) has no TX entry
/TS[=integer or =(integer,integer[,...])]
- the /TS qualifier offers two functions:
The following typical output is provided:
Text status entry, TCC value 7, found in feature with FSN 3 (3)
If the /ABSENT qualifier is specified then the following typical output is generated if specific TS numbers are supplied:
If no arguments supplied:
Feature with FSN 670 (55) has no TS entry
If more then one TCC numbers specified:
Feature with FSN 670 (55) has no TS entry with TCC value 28
.
.
.
/ZS
- report on the presence, and list the contents of, all IFF ZS (three dimensional string) entries. /ZS provides the following typical output:
Feature with FSN 3 (3), feature code 3 has 2 ZSs containing 93 points
First point = (75.22, 76.818, 3.0), Last point = (56.223, 87.66, 9.7)
If a feature has only one string with a single point then the following typical output is generated.
Feature with FSN 6 (6), feature code 5, has a ZS entry with only one point Point = (400.064, 29.397, 78.522)
If the /ABSENT qualifier is specified then the following typical output is generated:
Feature with FSN 670 (55) has no ZS entry
--------------------------------------------------------------------------------
IREPORT gives information about every occurrence of IFF entries specified on the command line using IFF entry qualifiers. Absence of the specified entry may be detected at the layer and feature level with the /ABSENT qualifier.
Reports on the presence or absence of IFF entries may be restricted to those lying within specified layers (/IN_LAYER q.v.). Similarly, reports on the presence or absence of IFF entries may be restricted to those which lie within features with specified feature codes (/WITH_FC q.v.).
By default IREPORT output is to SYS$OUTPUT:. Output may, however, be redirected to file or to printer with the /OUTPUT and /PRINTER qualifiers respectively.
If output is directed to file or printer IREPORT adds header information to the output to facilitate identification and interpretation of the output. This header output is of the form:
================================ IREPORT =======================================
IREPORT invoked by TIM using terminal LTA61: at 3-DEC-1986 10:48:14.75
IFF file: DUA0:[IFF.IMP.IFF]TST3D.IFF;4
Command line:
IREPORT/OUTPUT TST3D.IFF/LAYER/ADDRESS
================================================================================
... IREPORT IFF entry output begins here ...
IREPORT may be directed to produce a LITES2 command file to enable semi-automatic examination and edit of reported features. Messages generated to report the presence or absence of IFF features are incorporated in the file. LITES2 command files are not available for use with the /ST, /NS, /CC, /CP, or /LAYER qualifiers.
$ IREPORT TST.IFF/LOG/LAYER/ADDRESS%LSLLIB-I-IFFOPENED, DUA0:[BUREAU]TST.IFF;8 opened for read Layer 1 found at address 000001EA and ends at address 00000474 Layer 88 found at address 00000475 and ends at address 000004D5 Layer 66 found at address 000004D6 and ends at address 00000785 Layer 55 found at address 00000786 and ends at address 0000085B Layer 44 found at address 0000085C and ends at address 00000954 Layer 11 found at address 00000955 and ends at address 0000095A ELAPSED: 00:00:05.33 CPU: 0:00:00.76 BUFIO: 5 DIRIO: 21 FAULTS: 73 $
In this example the /LAYER qualifier has been selected with no arguments and therefore all layers are reported. Because /OUTPUT and /PRINTER were not specified output defaults to SYS$OUTPUT:. As the /ADDRESS qualifier was specified the start and end addresses of each layer are indicated. The /LOG qualifier has resulted in the output of a message informing the user of the full file specification of the input file. The run completed normally and $STATUS is set to SS$_NORMAL.
$ IREPORT TST.IFF/AC/OUTPUTELAPSED: 00:00:03.95 CPU: 0:00:00.83 BUFIO: 5 DIRIO: 20 FAULTS: 79 $
In this example the /OUTPUT qualifier has been used to direct all output to a file having the specification SYS$DISK:IREPORT.LIS;. As /AC was specified IREPORT will send to the output file information about every occurrence of AC entries. The run completed successfully. $STATUS is set to SS$_NORMAL.
$ IREPORT SEWER9.IFF/IN_LAYER=(2,6)/WITH_FC=12/TC/AC=(2:4)
In this example IREPORT reports on AC and TC entries in the specified layers and within features with the specified feature codes. No TCs were present. $STATUS is set to SS$_NORMAL.
$ IREPORT SEWER9.IFF/IN_LAYER=(2,6)/WITH_FC=(123)/TC/AC=(2:4)/ABSENTLayer 2 found Feature with FSN 168 (168), feature code 73, has no Type 2 AC Feature with FSN 169 (169), feature code 73, has no Type 2 AC Feature with FSN 170 (115), feature code 73, has no Type 2 AC Feature with FSN 171 (171), feature code 73, has no Type 2 AC Feature with FSN 172 (117), feature code 73, has no Type 2 AC Feature with FSN 172 (36) has no TC entry Feature with FSN 173 (173), feature code 73, has no Type 2 AC Feature with FSN 173 (173) has no TC entry Feature with FSN 174 (174), feature code 73, has no Type 2 AC Layer 6 found ELAPSED: 00:00:05.49 CPU: 0:00:00.74 BUFIO: 5 DIRIO: 17 FAULTS: 104 $
The same qualifiers as the previous example have been specified. This time, however, /ABSENT has been specified. Note that the presence of the specified layers is still reported. Within those layers features having the feature codes specified using /WITH_FC are checked for absence of ACs in the range 2 to 4, and the absence of preceding TCs. A number of features lack these entries. $STATUS is set to SS$_NORMAL.
$ IREPORT TST.IFF/IN_LAYER=(1,66)/CC/LOG
In this example both /CC and /IN_LAYER qualifiers have been specified. The /CC and /IN_LAYER qualifiers are mutually exclusive (see RESTRICTIONS). IREPORT aborts execution. $STATUS is set to the indicated CLI (Command Line Interpreter) warning message condition code.
--------------------------------------------------------------------------------
These messages give information only, and require no immediate action by the user (except perhaps to verify that the correct options have been selected). They will only appear if /LOG has been specified on the command line.
OPOUT, "'file-spec'" opened for output
Explanation: Either /OUTPUT or /PRINTER have been selected. The specified file has been opened to receive IREPORT output.
User action: None.
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.
ERRCLOIFF, failed to close input IFF file "'file-spec'"
ERRCLOOUT, failed to close output file "'file-spec'"
Explanation: Both messages indicate that an error occurred while closing the specified file. They are often a result of insufficient space available on the output device.
User action: The accompanying messages will help to diagnose the problem.
ERROPOUT, error opening output file "'file-spec'"
Explanation: Although the IFF input file was opened without error the specified output file cannot be opened.
User action: Check that the indicated file-spec contains a valid device and directory specification. Check that you have write access to the specified directory. The accompanying LSLLIB and RMS error messges will help you to interpret the cause of the error.
FAILTRLG, failed to translate logical name LSL$LITES2CMD
Explanation: IREPORT is unable to translate logical name LSL$LITES2CMD which it needs to direct output to the LITES2 command file specified on the command line. The supplementary message issued in support of this message will indicate why the logical name could not be translated.
User action: Using the information given in the supplementary message ensure that logical name LSL$LITES2CMD is correctly defined. If you are in any doubt about the purpose or correct definition of the logical name please consult your system manager. Do not arbitrarily define LSL$LITES2CMD.
IFFERR, IFF error "'code'" occured while closing output file
Explanation: An IFF internal error 'code' occured while closing the output file. This should not usually occur.
User action: Please contact Laser-Scan.
INVALACT, 'integer' is an invalid /AC argument - value must lie in range
1 - 32767
Explanation: The specified AC type lies outside the indicated range for valid IFF AC types.
User action: Respecify the IREPORT command line ensuring that any AC type specifications lie within the range 1 - 32767.
INVALFC, 'integer' is an invalid feature code argument - value must lie in range 0 - 32767
Explanation: The specified feature code lies outside the indicated range for valid IFF feature codes.
User action: Respecify the IREPORT command line ensuring that any feature code specifications lie within the range 0 - 32767.
INVALLAY, 'integer' is an invalid layer argument - value must lie in range 1 - 32767\
Explanation: The specified feature code lies outside the indicated range for valid IFF layer numbers.
User action: Respecify the IREPORT command line ensuring that any layer number specifications lie within the range 0 - 32767. (Remember that layer 0 is normally reserved for registration marks and grid features).
INVALREVLEVEL, 'integer' is an invalid revision level - value must
be -1, 0 or 1
Explanation: The specified input revision level is not one of the three allowed.
User action: Respecify the IREPORT command line ensuring that any /REVISION_LEVEL qualifier has an allowable input revision level.
INVALTS, 'integer' is an invalid /TS argument - value must lie in range 0 - 32767
Explanation: The specified /TS argument lies outside the indicated range for valid IFF text component codes.
User action: Respecify the IREPORT command line ensuring that any text component code specifications lie within the range 0 - 32767.
TOOMNYFC, too many feature code selections for /ABSENT - maximum 'integer'
Explanation: If /TS is specified together with /ABSENT IRECODE has to buffer up all the specified feature codes not found in a feature. IRECODE has run out of internal feature code storage.
User action: Respecify the command line with fewer feature code selections.
TOOMNYLAY, too many layers for /ABSENT - maximum 'integer'
Explanation: If /LAYER is specified together with /ABSENT IRECODE has to buffer up all the specified layers not found in the IFF file. IRECODE has run out of internal layer number storage.
User action: Respecify the command line with fewer layer selections.
TOOMNYTS, too many TSs in feature for /ABSENT - maximum 'integer'
Explanation: If /TS is specified together with /ABSENT IRECODE has to buffer up all the specified TCC codes not found in a feature. IRECODE has run out of internal TCC code storage.
User action: Respecify the command line with fewer TCC code selections.
UNEXPEOF, unexpected end of IFF file
Explanation: The specified input IFF file ended before an EJ entry was encountered.
User action: Only the valid part of the input IFF file was processed. Use IMEND (or ITOTEXT followed by IFROMTEXT) to repair the file.
In addition to the above messages which are generated by IREPORT 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. In most cases IFF errors will be due to a corrupt input file, and this should be the first area of investigation. If the cause of the error cannot be traced by the user and Laser-Scan are consulted, then the input file should be preserved to facilitate diagnosis.