Hello,
I'm an RPG newbie and seek some help :-)
We have a large physical file with over 200 columns and want to split that in multiple smaller files. To keep migration steps small I had the idea to move the data into the new files and replace the old physical file with an updateable view (via trigger).
While this works for programs that access the data via SQL it fails for RPG programs with error RNF7081 because of "missing common key fields".
I assume this is because a logical view defines key fields while an SQL view does not (and CREATE INDEX is not valid on views).
Is there any workaround for this problem or a "best practice" for migration a large table into multiple smaller ones in RPG context?
Best regards,
Roland
I'm an RPG newbie and seek some help :-)
We have a large physical file with over 200 columns and want to split that in multiple smaller files. To keep migration steps small I had the idea to move the data into the new files and replace the old physical file with an updateable view (via trigger).
While this works for programs that access the data via SQL it fails for RPG programs with error RNF7081 because of "missing common key fields".
I assume this is because a logical view defines key fields while an SQL view does not (and CREATE INDEX is not valid on views).
Is there any workaround for this problem or a "best practice" for migration a large table into multiple smaller ones in RPG context?
Best regards,
Roland



Comment