Nits,
I suggest you carefully re-read Truus' post of 8/23/07 @ 2:03.
It sounds like you are confusing two different suggested approaches to your problem. The first, using an array (i.e. Cobol table) of n rows by m chars/row, which won't meet your requirement to eliminate trailing spaces. The second, using a 1-dimensional, variable-length array (Cobol table) and STRING'ing your input records consecutively into that array, will work. The second is approach is the one given by Truus in the post referred to above.
Please note that Truus' solution does not require your input records to be stored in an intermediate table. Rather, his solution implies that you STRING each input record directly into the array storage (that will be passed to MQ) as they are read into the program.
Code what you mean,
and mean what you code!
But by all means post your code!
Razalas