Format specifications: Difference between revisions
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
If there is an X in any of the last five columns, the format specification operates according to its intended purpose when it is used as indicated. If there is an error code number in the column, the format specification cannot be used with this type of file (the specified error will occur if usage is attempted). In some cases, the phrase "treats as " appears in the column; this means that the specification is accepted when used as indicated, but treated as if it were a different format specification. | If there is an X in any of the last five columns, the format specification operates according to its intended purpose when it is used as indicated. If there is an error code number in the column, the format specification cannot be used with this type of file (the specified error will occur if usage is attempted). In some cases, the phrase "treats as " appears in the column; this means that the specification is accepted when used as indicated, but treated as if it were a different format specification. | ||
{| | {| border="1" style="border-collapse:collapse;" | ||
! | ! colspan="5" rowspan="2"|Type | ||
! | ! colspan="2" | Internal | ||
! Display | ! Display | ||
! Full Screen | ! colspan="2" |Full Screen | ||
|- | |- | ||
! | ! Read/Reread | ||
! Write/Rewrite | ! Write/Rewrite | ||
! Print | ! Print | ||
Line 40: | Line 36: | ||
! (Output) | ! (Output) | ||
|- | |- | ||
| | |B||Binary|| || ||X||X||X||Error 0816||Error 0816||Error 0816|| | ||
| | |||
| | |||
|- | |- | ||
|BL||Binary Low|| || ||X||X||X||Error 0816||Error 0816||Error 0816|| | |||
|- | |||
|BH||Binary High|| || ||X||X||X||Error 0816||Error 0816||Error 0816|| | |||
|- | |||
|C||Character||X|| || ||X||X||X||X||X|| | |||
|- | |||
|CC||C Centered||X|| || ||Treat as C||X||X||Treat as C||X|| | |||
|- | |||
|CR||C Right Justified||X|| || ||Treat as C||X||X||Treat as C||X|| | |||
|- | |||
|CL||C Lowercase||X|| || ||Err 1006||Err 1006||Err 1006||X||Treat as C|| | |||
|- | |||
|CU||C Uppercase||X|| || ||Err 1006||Err 1006||Err 1006||X||Treat as C|| | |||
|- | |||
|D|| Double Precision Floating Point|| || ||X||X||X||X||Err 0861||Err 0861|| | |||
|- | |||
|G||Generic||X||X|| ||X||X||X||X||X|| | |||
|- | |||
|GL||G Lowercase||X||X|| ||Err 1006||Err 1006||Err 1006||X||Treat as G|| | |||
|- | |||
|GU||G Uppercase||X||X|| ||Err 1006||Err 1006||Err 1006||X||Treat as G|| | |||
|- | |||
|GZ||G Zero Suppress||X||X|| ||Treat as G||X||X||Treat as G||X|| | |||
|- | |||
| | |||
|- | |||
| | |||
|- | |||
| | |||
|- | |||
| | |||
|- | |||
| | |||
|- | |||
| | |||
|- | |||
| | |||
|- | |||
| | |||
|- | |||
| | |||
|} | |} | ||
Revision as of 16:36, 6 July 2015
The page presents a summary chart of format specifications. Also see Category:Format Specifications and File I/O for detailed descriptions of each format.
The following table shows where and how each of Business Rules! format specifications may be used. The first column identifies the format specification.
The second column labeled "Description" gives a very brief description of the format specification's purpose. The columns labeled "S", "N" and "I" indicate whether the specification is a string, numeric or internal format spec.
The next two columns show what happens when the format specification is used with internal or external files, either for input (with the READ/REREAD statements) or for output (with the WRITE/REWRITE statements).
The column labeled "PRINT (Output)"Print shows what happens when the format specification is used with display files.
The last two columns show what happens when the format specification is used with full screen processing, either for input (with the INPUT FIELDS statement) or for output (with the PRINT FIELDS statement). Note that the information marked for INPUT FIELDS applies to RINPUT FIELDS when RINPUT FIELDS is used for input. Likewise, the information marked for PRINT FIELDS applies to RINPUT FIELDS when RINPUT FIELDS is used for output.
If there is an X in any of the last five columns, the format specification operates according to its intended purpose when it is used as indicated. If there is an error code number in the column, the format specification cannot be used with this type of file (the specified error will occur if usage is attempted). In some cases, the phrase "treats as " appears in the column; this means that the specification is accepted when used as indicated, but treated as if it were a different format specification.
Type | Internal | Display | Full Screen | |||||||
---|---|---|---|---|---|---|---|---|---|---|
Read/Reread | Write/Rewrite | Input Fields | Print Fields | |||||||
Format | Description | S | N | I | (Input) | (Output) | (Output) | (Input) | (Output) | |
B | Binary | X | X | X | Error 0816 | Error 0816 | Error 0816 | |||
BL | Binary Low | X | X | X | Error 0816 | Error 0816 | Error 0816 | |||
BH | Binary High | X | X | X | Error 0816 | Error 0816 | Error 0816 | |||
C | Character | X | X | X | X | X | X | |||
CC | C Centered | X | Treat as C | X | X | Treat as C | X | |||
CR | C Right Justified | X | Treat as C | X | X | Treat as C | X | |||
CL | C Lowercase | X | Err 1006 | Err 1006 | Err 1006 | X | Treat as C | |||
CU | C Uppercase | X | Err 1006 | Err 1006 | Err 1006 | X | Treat as C | |||
D | Double Precision Floating Point | X | X | X | X | Err 0861 | Err 0861 | |||
G | Generic | X | X | X | X | X | X | X | ||
GL | G Lowercase | X | X | Err 1006 | Err 1006 | Err 1006 | X | Treat as G | ||
GU | G Uppercase | X | X | Err 1006 | Err 1006 | Err 1006 | X | Treat as G | ||
GZ | G Zero Suppress | X | X | Treat as G | X | X | Treat as G | X | ||