I would like to illustrate an alternative to Kenneth Fordham's suggestion in
"Forcing Records to Disk" (TechTalk, MC, December 1994) and Rick Brandl's
suggestion in "Forcing Records to Disk, Part II" (TechTalk, MC, March 1995).
Instead of using the FRCRATIO parameter of the Create Physical File (CRTPF),
Change Physical File (CHGPF), or Override Database File (OVRDBF) commands to
force records to disk, use the RPG force-end-of-data (FEOD) operation as
illustrated in 1.
illustrated in Figure 1.
The FEOD operation allows you to force to disk all changes your program makes
to a file. Normally, the system determines when to force changes to disk; use
the FEOD operation in an RPG program to ensure that changes are forced to disk.
--Helmut Salzer
Forcing Records to Disk, Part III
Figure 1Forcing Records to Disk with the FEOD Operation
*. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 C WRITERECORD C FEOD FILEX
LATEST COMMENTS
MC Press Online