Hello,
We have an old program that is relatively simple. A file is declared as a program-described file. The program uses sequences to define the fields depending on the value of the record read. There is an OVRDBF before calling the program to replace the file with the right file. Here's the code in RPG/400 :
I'm trying to rewrite this program in full-free RPGLE from scratch but I can't figure out how to do this. I've found out how to declare my file, TPRECU
However, I can't figure out how to manipulate the data. In RPG/400, you can manipulate the data because the fields are declared using sequences. But I just need to take the whole 240 characters and put it into a DS. How do I do this ?
What do I replace <data> with ?
Any help? Thanks.
We have an old program that is relatively simple. A file is declared as a program-described file. The program uses sequences to define the fields depending on the value of the record read. There is an OVRDBF before calling the program to replace the file with the right file. Here's the code in RPG/400 :
Code:
FTPRECU IP F 240 DISK
Code:
Dcl-F TPRecu Disk(240);
Code:
Setll *Start TPRecu; Read TPRecu; DoW not %eof(TPRecu); DSTPRecu = <data>; Read TPRecu; EndDo;
Any help? Thanks.
Comment