To access entities declared in a module from another program unit (module, procedure or program), the module must be used with the use statement.
module shared_data
implicit none
integer :: iarray(4) = [1, 2, 3, 4]
real :: rarray(4) = [1., 2., 3., 4.]
end module
program test
!...