Data Management Operations and ILE RPG I/O Operations
Data Management Operations and ILE RPG I/O Operations
Data management is the part of the operating system that controls the storing and accessing of data by an application program. Table 1 shows the data management operations provided by the IBM i and their corresponding ILE RPG operation. It also shows which operations are allowed for which ILE RPG device type.
Table 1. Data Management Operations and the Corresponding RPG I/O Operation
| Data Management Operation | ILE RPG I/O Operation |
|---|---|
| Open | OPEN |
| Read by relative record number | READ, CHAIN |
| Read by key | READ, READE, CHAIN, primary and secondary file |
| Read sequential | READ |
| Read previous | READP, READPE |
| Read next | READ, READE |
| Read invited device | READ |
| Write-Read | EXFMT |
| Write by relative record number | WRITE |
| Write by key | WRITE, EXCEPT, primary and secondary file |
| Write sequential | WRITE, EXCEPT |
| Force end of data | FEOD |
| Update by relative record number | UPDATE, primary and secondary file |
| Update by key | UPDATE, primary and secondary file |
| Delete by relative record number | DELETE, primary and secondary file |
| Delete by key | DELETE, primary and secondary file |
| Acquire | ACQ |
| Release | REL |
| Commit | COMMIT |
| Rollback | ROLBK |
| Close | CLOSE, LR RETURN |