I am writing a program that reformats RPG source.
To do this I have defined 'QRPGSRC' as a file in my program in exactly the same way as any normal data file. I have used the OVRDBF command to point at a specific member before calling my program.
My program compiles cleanly but when I run the program I get an error of the form:-
'Undefined record type is found in file QRPGSRC'.
Is there something extra I need to do to allow a source file member to be read by an RPG program?
To do this I have defined 'QRPGSRC' as a file in my program in exactly the same way as any normal data file. I have used the OVRDBF command to point at a specific member before calling my program.
My program compiles cleanly but when I run the program I get an error of the form:-
'Undefined record type is found in file QRPGSRC'.
Is there something extra I need to do to allow a source file member to be read by an RPG program?