I have 5 Different Files with 5 Members. I wanted to process all records in all members. I used OVRDBF FILE(FILE) TOFILE(FILE) MBR(*ALL command. It did not convert all records in all members. My AS400 version is not supporting EXTMBR(*ALL). Kindly suggect me to achieve this
Software/Hardware used:
AS400
ASKED:
May 5, 2010 6:07 PM
UPDATED:
May 17, 2010 10:11 PM
It did not convert all records in all members.
How do you know that it didn’t? That is, what was the sequence of commands and what method did you use to read the file?
Tom
OVRDBF FILE(FILE) TOFILE(FILE) MBR(*ALL)
Call RPGPGM
In RPG Program
Read file
Dow Not %Eof(File)
Update RFile;
Read File
Enddo
I have checked manually in all the members. Records in member one got converted
OVRDBF FILE(FILE) TOFILE(FILE) MBR(*ALL)
Since this has no scope specification…
Call RPGPGM
…we need to know how this program runs. We can tell that it’s RPG IV, but we can’t tell if it is running as ILE. Is it in the *CALLER activation group? …the default activation group? …the same activation group as the OVRDBF?
If you run this way:
…does the behavior change?
Tom
I have tried with OVRSCOPE(*JOB). Its working fine. Thanks Tom