+ Reply to Thread
Results 1 to 5 of 5

Thread: CHGPF FRCRATIO(1)

  1. #1
    Guest.Visitor Guest

    Default CHGPF FRCRATIO(1)

    Can someone explaint this to me? I have a program A that has a physical file defined as OUTPUT only and writes a record to it. Program A then calls program B which then calls program C. Program C attempts to read the record written by Program A but the record does not exist. I knew the problem would be solved by a CHGPF FRCRATIO(1) or OVRDBF FRCRATIO(1) or FEOD but why must I do this? Is this problem somehow a "feature" of OS/400? Proactively, when do I need to use use FRCRATIO(1) and when can I trust that OS/400 will handle the write for me on a timely basis? Thanks... Chris Ringer WHITTMAN-HART, INC.

  2. #2
    Guest.Visitor Guest

    Default CHGPF FRCRATIO(1)

    On Tuesday, December 09, 1997, 08:31 AM, Chris Ringer wrote: Can someone explaint this to me? I have a program A that has a physical file defined as OUTPUT only and writes a record to it. Program A then calls program B which then calls program C. Program C attempts to read the record written by Program A but the record does not exist. I knew the problem would be solved by a CHGPF FRCRATIO(1) or OVRDBF FRCRATIO(1) or FEOD but why must I do this? Is this problem somehow a "feature" of OS/400? Proactively, when do I need to use use FRCRATIO(1) and when can I trust that OS/400 will handle the write for me on a timely basis? Thanks... Chris Ringer WHITTMAN-HART, INC.
    Chris, we had this topic explored recently somewhere here in these forums. You may want to search thru the threads for FRCRATIO. What was found out is: * If your file is NOT at FRCRATIO=1, the OS chooses when to fix updates to disk, that is disk-io will be optimized. * Exception: files with unique key will reflect changes immediately. Keep in mind that changing to FRCRATIO=1 will have a severe performance impact, as disk-io requests are very slow (as opposed to cpu-cycles) and waiting for every single record update to be written to DASD will take a lot of wait time. Choose wisely, where you need (non-unique!) records to be seen instantely by other programs. That a record is not to be seen instantly does not mean you risk data loss if the job crashes, because as long as the machine is running, job buffers will be written to disk even after the job has terminated. Only in case of a machine crash, there might be a risk of loosing data. File buffers will also be written when you close the file. If you need to, you can specify FRCRATIO on the OVRDBF command. Regards, Martin.

  3. #3
    Guest.Visitor Guest

  4. #4
    Guest.Visitor Guest

    Default CHGPF FRCRATIO(1)

    Thanks for the help. For the one offending job, I ended up doing an OVRDBF FRCRATIO(1) before opening the file. My file does not have unique keys. Incidentally, I did do a search for FRCRATIO after selecting EVERY conference and nothing was found. Try it. Chris Ringer...

  5. #5
    Guest.Visitor Guest

    Default CHGPF FRCRATIO(1)

    On Tuesday, December 09, 1997, 01:02 PM, Chris Ringer wrote: Incidentally, I did do a search for FRCRATIO after selecting EVERY conference and nothing was found. Try it. Chris Ringer... The thread is entitled 'Records unavailable for access' and is in the AS/400 Programming Section (amongst the October 97 postings). Although Martin has explained in a few sentences what took 25 postings back then, there are a few alternative methods to using FRCRATIO suggested.

+ Reply to Thread

Similar Threads

  1. CHGPF Problem with field lengths
    By Guest.Visitor in forum General
    Replies: 4
    Last Post: 10-20-2003, 10:59 AM
  2. Question on CHGPF
    By Guest.Visitor in forum Programming
    Replies: 6
    Last Post: 06-30-2003, 11:52 AM
  3. CHGPF and recompileing programs
    By nycsusan@hotmail.com in forum Programming
    Replies: 2
    Last Post: 10-24-2001, 03:58 PM
  4. CHGPF problem
    By Guest.Visitor in forum Application Software
    Replies: 12
    Last Post: 11-15-2000, 02:01 PM
  5. Problem with CHGPF
    By Guest.Visitor in forum Programming
    Replies: 12
    Last Post: 09-28-2000, 07:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts