About this task
One way to format output is to use variables and concatenation
operators as in the following example.
Figure 1. Example
Using Concatenation Operators/****************************** REXX *********************************/
/* This program formats data into columns for output. */
/*********************************************************************/
sport = 'base'
equipment = 'ball'
column = ' '
cost = 5
SAY sport||equipment column '£' cost
The result of this example is:
baseball £ 5
A
more sophisticated way to format information is with parsing and templates.
Information about parsing appears in section
Parsing Data.