Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading A Source file In RPG

Status
Not open for further replies.

Skittle

ISP
Sep 10, 2002
1,528
US
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?

 
The error you are getting is probably due to the way you compiled your program. If you did not issue an OVRDBF to point to one of your own defined QRPGSRC source files, then it would most probably use the QRPGSRC source file in QGPL which is not quite the same as one we would create ourselves.

So ...

Issue an OVRDBF command from the command line.
Compile program interactivley.
Run program.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top