Download User Manual

Transcript
The first Qedit line is always in Block 1, and the first word of Block 1
points to the next sequential block in the file. Each block points to the
next, and end-of-file occurs when the forward pointer is zero.
Within a data block, the structure is as follows:
Word Within Block
Contents
(000)
Block type
(002)
Forward-pointer
(004)
Line-number
(005)
(cont.)
(006)
Data length
(007)
Indent
(008)
"AB"
(009)
"CD"
(...)
(cont.)
(...)
(Data+004)
"YZ"
(Data+005)
Line-number
(Data+006)
(cont.)
(Data+007)
Data
(Data+008)
Indent
(Data+009)
"12"
(...)
(...)
"89"
(...)
Binary-zero
(...)
(cont.)
(511)
(cont.)
Comment
First double-word in block
Second double-word in block
First word of first line
Descriptor for first line
Contents of first line
End of first line
Start of second line
End of last line
Unused portion of block.
Binary-zeros are missing
if the block is full.
The following definitions are used above:
Forward-pointer: block number of the next block (32-bit unsigned).
Line-number: a 32-bit integer containing the line number in binary
(1,000 = 1.0).
Data: the number of words of data in the line (16-bit word).
Indent: number of full words of blanks before the data (16-bit word).
External Files
As well as its own workfiles, Qedit recognizes "external" files of other
formats (in List file, Add 5=file, Text file, etc.). When Qedit opens an
external file, it determines the language of the source program in that
file according to the following chart. Files with a ".cbl," ".cob",
".CBL" or ".pco" extension are treated as COBOL source files. In this
case, Qedit does not assume there is a sequence number in the first 6
columns; it checks the first 5 lines of the file. The .pco extension is
typically used to identify Cobol source files that needs to be processed
by the Oracle pre-compiler.
If the lines contain only numeric digits in these columns, Qedit
assumes the file contains sequence numbers and uses them
appropriately. These numbers are written back to the file when a Keep
command is executed.
If the lines only contain spaces in these columns, Qedit assumes the
file is unnumbered and automatically assigns numbers during the Text
Qedit 6.0 for HP-UX User Manual
File Formats • 267