RPG/400 Help

Positions 16-18 (Record Addition/Deletion)

Entry
Explanation
ADD
Add a record to the file or subfile.
DEL
Delete the last record read from the file. The deleted record cannot be retrieved; the record is deleted from the system.

An entry of ADD is valid for input, output, or update files. DEL is valid for update DISK files only.

Note:
The file description specifications for a file using the ADD function for DISK files must have an A in position 66.

This entry must appear on the same line that contains the record type (H, D, T, E) specification (position 15). If an OR line is used following an ADD or DEL entry, this entry applies to the OR line also.


[ Top of Page | Previous Page | Next Page | Table of Contents ]