Using FSCAN

When you enter FSCAN, FSCAN displays as much as it can of the root segment of the data source. For example, if you view the EMPLOYEE data source with FSCAN, using the following command

FSCAN FILE EMPLOYEE

you will see the following screen:

 
1. FSCAN FILE   EMPLOYEEFOCUS   A1              CHANGES:     0
  
2. EMP_ID        LAST_NAME     FIRST_NAME     HIRE_DATE      DEPARTMENT
   ------        ---------     ----------    ---------  ---------- 
3. == 071382660  STEVENS       ALFRED         800602         PRODUCTION 
4. == 112847612  SMITH         MARY           810701         MIS
   == 117593129  JONES         DIANE          820501         MIS
   == 119265415  SMITH         RICHARD        820104         PRODUCTION
   == 119329144  BANNING       JOHN           820801         PRODUCTION
   == 123764317  IRVING        JOAN           820104         PRODUCTION
   == 126724188  ROMANS        ANTHONY        820701         PRODUCTION
   == 219984371  MCCOY         JOHN           810701         MIS
   == 326179357  BLACKWOOD     ROSEMARIE      820401         MIS
   == 451123478  MCKNIGHT      ROGER          820202         PRODUCTION
   ------------------------------INPUT--------------------------------- 
5. == 
6. ==> 
7.                                                              MORE=>

This screen displays the contents of the root segment of the EMPLOYEE database. Each record on the screen is one instance in the root segment. The numbers in the diagram refer to the notes below:

  1. The header shows the name of the database and the number of changes made to the database since the last save.
  2. Each field is labeled with a column heading.
  3. The first record at the top of the screen is called the current instance. Many commands operate only on this record. When you first enter FSCAN, this record is the first instance in the root segment.
  4. The equal signs (==) in the left margin of the screen indicate the prefix area. This is where you enter prefix area commands.

    The key field value in each record appears highlighted.

  5. The last line with equal signs is called the input area and is reserved exclusively for input.
  6. The arrow at the lower-left corner of the screen points to the command line. This is where you enter FSCAN commands.
  7. The MORE symbol at the lower-right corner of the screen indicates that each record extends to the right of the screen.

This section discusses various functions of the FSCAN facility. For an alphabetic summary of commands, see Syntax Summary.

The FSCAN facility displays one segment at one time. (For the root segment, FSCAN displays all instances in the segment; for descendant segments, FSCAN displays all instances sharing the same parent instance.) Each record on the screen is one segment instance. The first instance at the top of the screen is called the current instance.

The FSCAN facility also displays segments in SINGLE mode, that is, one instance at one time. SINGLE mode is discussed in Displaying a Single Instance on One Screen: The SINGLE and MULTIPLE Commands.

Note the different types of commands:

The following rules apply to commands:


Information Builders