I have a file named WMPROD set up as an Update full procedural externally defined file. In my program I chain to the file. Record found UPDATE file. Record NOT found create a new record (WRITE).
I can only WRITE to an OUTPUT file. But I can't READ from an OUTPUT file. How could I get around this? I need to be able to read, update and write to the same file. In the old RPG II program the programmer used a "dummy" file name as an OUTPUT file and used a label command in his ocl to "point" it to the correct file.
How can I accomplish this in RPG IV?
Please advise.
Thanks in advance for any and all help.
I can only WRITE to an OUTPUT file. But I can't READ from an OUTPUT file. How could I get around this? I need to be able to read, update and write to the same file. In the old RPG II program the programmer used a "dummy" file name as an OUTPUT file and used a label command in his ocl to "point" it to the correct file.
How can I accomplish this in RPG IV?
Please advise.
Thanks in advance for any and all help.