z/OS TSO/E REXX User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Using Concatenation Operators

z/OS TSO/E REXX User's Guide
SA32-0982-00

One way to format output is to use variables and concatenation operators as in the following example. A more sophisticated way to format information is with parsing and templates. Information about parsing appears in Parsing Data.

Example using Concatenation Operators

/****************************** REXX *******************************/
/* This exec 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

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014