InterviewSolution
| 1. |
How Do I Declare A Table Or Array In Rpg Iv? |
|
Answer» To declare an array or table, USE the RPG IV definition specification. The "D spec" allows you to code the array or table on a single line. The keyword to use is DIM (DIMENSION). This is where you specify the number of elements in the table or array. For EXAMPLE, to create an array named ITEMS with 200 elements, each 10 characters in length, the following Definition spec can be used: To declare an array or table, use the RPG IV definition specification. The "D spec" allows you to code the array or table on a single line. The keyword to use is DIM (dimension). This is where you specify the number of elements in the table or array. For example, to create an array named ITEMS with 200 elements, each 10 characters in length, the following Definition spec can be used: |
|