Hi,
You can do one thing. Create a extent based on number of columns i.e for example if you have 4 columns then have variable "x" of character with extent 4. then spool the data for respective index (array index). When the variable "x" is displayed it will display the values horizontally.