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
   By key
 
   Sequential
   Previous
   Next
   Invited Device
 

 
READ, CHAIN
 
READ, READE, CHAIN, primary and
secondary file
READ
READP, READPE
READ, READE
READ
 

WRITE-READ
 

EXFMT
 

WRITE
   By relative
       record number
   By key
   Sequential
 

 
WRITE
WRITE, EXCEPT, primary and secondary file
WRITE, EXCEPT
 

FEOD
 

FEOD
 

UPDATE
   By relative
       record number
   By key
 

 
UPDATE, primary and secondary file
UPDATE, primary and secondary file
 

DELETE
   By relative
       record number
   By key
 

 
DELETE, primary and secondary file
DELETE, primary and secondary file
 

ACQUIRE
 

ACQ
 

RELEASE
 

REL
 

COMMIT
 

COMMIT
 

ROLLBACK
 

ROLBK
 

CLOSE
 

CLOSE, LR RETURN
 


Feedback