Variable

When you do not know in advance what string to specify as separator in a template, you can use a variable enclosed in parentheses.
separator = ','
phrase = 'To be, or not to be?'
PARSE VAR phrase part1 (separator) part2
      /* part1 contains 'To be'          */
      /* part2 contains ' or not to be?' */

Again, in this example, notice that the comma is not included with 'To be' because the comma is the string separator.


Reference Reference

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


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