Using Concatenation Operators

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.

Task Task

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.rexx.doc//dfhrx/dfhrx00036.html