>It works in command window when I call my procedure, but I got the following error when I try to compile the program.
>
>"Unable to find unknown aMyArray"
>
>I need some help. Thank you in advance.
The executable will probably still work. aMyArray might be the name of an array defined somewhere else (in another procedure).
Tell the compiler that the array is defined somewhere else, by using the EXTERNAL command.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)