With array definitions (DIM) in subroutines, it can happen that array usage in the script above the subroutine does not work. This also applies to REQUEST, which contain array values.

Cause: For some reason, the GDL interpreter does not recognize the array definitions made in a subroutine, but thinks that these come after the usage in order.

Solution: either do not put the array definition in the subroutine above the array usage, or put the array usage in the subroutine after the array definition.