On 2019-02-20 1:14 AM, Magne Kofoed wrote:
Hi,
try chgpf file(xxxx) FRCRATIO(1)
The records will be written to the file immediately
Will not wait until the job is finished - as it seems to be the result here.


Even if FRCRATIO would be a good solution, I think it would be much better to use OVRDBF than CHGPF.

But RPG doesn't use blocking for an update file or a file opened for both input and output, so there's no need to add FRCRATIO(1) or to use FEOD.

1 dcl-f I disk(100) usage(*input);
2 dcl-f O disk(100) usage(*output);
3 dcl-f IU disk(100) usage(*input:*update);
4 dcl-f IO disk(100) usage(*input:*output);
5 dcl-f IOU disk(100) usage(*input:*output:*update);

For this program, the compiler only puts out RNF7086 for the
input-only file and the output-only file:

*RNF7086 00 1 000100 RPG handles blocking for file I.
*RNF7086 00 2 000200 RPG handles blocking for file O.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.