Home Page Overview
New Features Downloads & Prices
P-STAT documentation Technical Support
Contact P-STAT Unistat for Windows

Examine

EXAMINE reads an external input file and counts how many times each type of ascii byte occurs. It writes a report and, if requested, a P-STAT output file which has the number of times each of the 256 possible ascii characters was found.

An end-of-case (EOC) field like CR LF can be supplied. If so, the report is extended to show the number of cases in the file, the smallest and largest record lengths, and the number of characters, if any, after the final EOC.

The report summarizes what was found. It also gives the number of CR-LF combinations, and displays the first ten and last ten bytes in the input file. If, however, there are 20 or fewer bytes in the file, all are displayed.

Consider this unlikely 8-byte file (named test77).

        byte 1: an uppercase A (ascii 65)

        byte 2: CR, which means a carriage return (ascii 13)

        byte 2: CR, which means a carriage return (ascii 13)

        byte 3: LF, which means a line feed (ascii 10)

        byte 4: an ascii 211

        byte 5: an ascii 022

        byte 6: LF

        byte 7: an uppercase B (ascii 66)

        byte 8: CR

Doing EXAMINE on this file produces the following report.
     -------------------EXAMINE completed---------------------
     | Input file test77 has 8 bytes.                        |
     |                                                       |
     |     1 CR-LF was found.                                |
     |     1 CR without a following LF was found.            |
     |     1 LF without a preceding CR was found.            |
     |     1 byte less than 32 (besides CR or LF) was found. |
     |     1 byte greater than 127 was found.                |
     |                                                       |
     | The input file contains these bytes:                  |
     |       A       CR      LF      211     022             |
     |       LF      B       CR                              |
     |                                                       |
     | Time: less than 0.1 second.                           |
     ---------------------------------------------------------

Showbytes

Reformat