File Specification
*.. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...+... 8 FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords+++++++++++++++++++++++++++++
| Columns | Description |
| 1–5 | Sequence number |
| 6 | F
|
| 7–16 | File name |
| 17 | File type:C = Combined (input/output)I = InputO = OutputU = Update
|
| 18 | File designation: (Blank) = Output F = Full proceduralP = PrimaryR = Record addressS = SecondaryT = Array or table
|
| 19 | End of file: (Blank) = Allow LR before all records are processed E = All records must be processed before LR
|
| 20 | File addition (for input or update file): (Blank) = Do not add records A = Allow record adds
|
| 21 | Match field sequence: (Blank) = Ascending A = AscendingD = Descending
|
| 22 | File format:E = Externally describedF = Program described
|
| 23-27 | Record length (1–32766, blank) |
| 28 | Limits processing: (Blank) = Sequential or random processing L = Limits processing
|
| 29-33 | Length of key or record address (1–2000, blank) |
| 34 | Record address type: (Blank) = Non-keyed processing A = Character keysD = Date keysF = Float keysG = Graphic keysK = Externally described keyP = Packed keysT = Time keysZ = Timestamp keys
|
| 35 | File organization (for program described file): (Blank) = Non-keyed I = IndexedT = Record address
|
| 36-42 | Device:DISK = Disk filePRINTER = Printer fileSEQ = Sequentially organizedSPECIAL = Special deviceWORKSTN = Workstation file
|
| 43 | (Reserved) |
| 44–80 | File keywords |
| 81–100 | Comments |
File Keywords
BLOCK(*NO | *YES)
| Allows user control over file record blocking. |
COMMIT{(name)}
| Commitment control. Optional name is an indicator to control commitment control at runtime. |
DATFMT(format{separator})
| Default date format and separator for program described files. See Date Formats . |
DEVID(field-name)
| Field to contain name of device that provided record. |
EXTDESC(file-name)
| Name of file to use at compile time. |
EXTFILE(file-name | *EXTDESC)
| Name of file to open at runtime. |
EXTIND(*INUx)
| File open conditioned by external indicator. |
EXTMBR(member-name)
| Name of file member to open at runtime. |
FORMLEN(number)
| Form length of PRINTER file. |
FORMOFL(number)
| Overflow line number of PRINTER file. |
IGNORE(recformat{:recformat...})
| One or more externally described record formats to ignore. Mutually exclusive with INCLUDE. |
INCLUDE(recformat{:recformat...})
| One or more externally described record formats to include. Mutually exclusive with IGNORE. |
INDDS(data-struct-name)
| Data structure to contain INDARA indicators from workstation or printer file. |
INFDS(data-struct-name)
| Data structure to contain file feedback information. |
INFSR(subr-name)
| File exception/error subroutine. |
KEYLOC(number)
| Beginning position of key for program described indexed files (1-32766). |
LIKEFILE(file-name)
| File specification is defined the same as another F-spec. |
MAXDEV(*FILE | *ONLY)
| Maximum number of WORKSTN file devices. |
OFLIND(indicator)
| Overflow indicator for PRINTER files. May be indicator variable, *INOA-*INOG, *INOV or *IN01-*IN99 |
PASS(*NOIND)
| Do not pass indicators to data management on output, and do not receive them on input. |
PGMNAME(program-name)
| Program to handle support for SPECIAL file. |
PLIST(plist-name)
| Parameter list to pass to PGMNAME for SPECIAL file. |
PREFIX(prefix-string{:number})
| Prefix for field names in file. If second argument is used, prefix replaces that number of characters (0-9) in field names. |
PRTCTL(data-struct{:*COMPAT})
| Data structure for dynamic printer forms control information and line count. *COMPAT for RPG III-compatible layout. |
QUALIFIED
| Forces qualified record format names for file. |
RAFDATA(file-name)
| File containing records for record address file. |
RECNO(field-name)
| Relative record number. |
RENAME(ext-format:int-format)
| Rename record format from external format name to internal format name. |
SAVEDS(data-struct-name)
| Data structure saved and restored for each device. |
SAVEIND(number)
| Indicators up to specified number are saved and restored for each device. |
SFILE(recformat:rrnfield)
| Subfile record format and relative record number field. |
SLN(number)
| Display file starting line number. |
STATIC
| Local file is static (retains its state across procedure calls). |
TEMPLATE
| File specification is a template, used only for other LIKEFILE definitions. |
TIMFMT(format{separator})
| Default time format and separator for program described files. See Time Formats . |
USROPN
| Explicit open of file, using OPEN opcode. |
Usage Conventions for syntax tables
Index | HomePage | Programming | RPG IV | File Specification