In rpgle / rpg IV arrays are declared on the D spec with the DIM keyword. That can declare a data structure of a single field to be an array
D MyField S 3A DIM(500)
In rpg / RPG 400 / RPG III the array is declared on an E spec.
REGISTER or login:
The ILE RPG Language Reference defines arrays and provides examples.