here is a rexx snippet... modify according to Your needs
Code:
/* fill the input data, just to show */
do i = 1 to 5
do j = 1 to 5
rept.i.j = random()
end
end
/* create the output */
do i = 1 to 5
line =
size = 12
do j = 1 to 5
line = line || " ! " || center(rept.i.j,size)
end
line = line || " ! "
say i line
end