Posted on 2009-04-05
First of all many thanks in advance, I am a relative newbie to RPG and I need a little help if you can?
I need to write a program that cycles down an input file that has two fields:
RECID (8N),PODID (20N)
For each record in the INPUT file, it needs to read RECID chain off to a logical file called "ORDERS" on ORD40 (8N)and update a FIELD called POD40 (20N) with the data that is in PODID.
I dont have a logical file created on the input file as it is just file that comes from an external system. I can make sure that all the programs are in the same Library.
Anyone got a sample program or structure I can use to do this?
Eventually I need to make sure this runs every hour.