I'm fairly new to RPG programming and so far have only created non-interactive programs. Mainly rewriting RPG II programs in RPG ILE.
I'm working on my first interactive program that was written in RPG II and have a couple of questions.
Using Code Designer I've created the display file and three records (screens) that I'll need.
In my second form is where a user fills out up to 32 fields named qtycode1, qtycode2, qtycode3 etc. To eliminate a key stroke we have the user key both the product quantity and product code in the same field. In my rpg program I have a few arrays set up.
D QTYCODE 8 0 (DIM32)
D QTY 5 0 (DIM32)
D CODE 3 0 (DIM32)
In my program I want to move all the data from the fields into my array QTYCODE. To separate out qty from code I MOVE qtycode array into the CODE array. And then I MOVEL qtycode array into the QTY array.
MY QUESTION IS "HOW DO I GET ALL THE FIELDS FROM THE SCREEN INTO MY QTYCODE ARRAY".
Thanks in advance for any and all help.
I'm working on my first interactive program that was written in RPG II and have a couple of questions.
Using Code Designer I've created the display file and three records (screens) that I'll need.
In my second form is where a user fills out up to 32 fields named qtycode1, qtycode2, qtycode3 etc. To eliminate a key stroke we have the user key both the product quantity and product code in the same field. In my rpg program I have a few arrays set up.
D QTYCODE 8 0 (DIM32)
D QTY 5 0 (DIM32)
D CODE 3 0 (DIM32)
In my program I want to move all the data from the fields into my array QTYCODE. To separate out qty from code I MOVE qtycode array into the CODE array. And then I MOVEL qtycode array into the QTY array.
MY QUESTION IS "HOW DO I GET ALL THE FIELDS FROM THE SCREEN INTO MY QTYCODE ARRAY".
Thanks in advance for any and all help.