How to code multiple Line statements with REXX
search cancel

How to code multiple Line statements with REXX

book

Article ID: 44018

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Sample syntax coding multiple lines in REXX.

Resolution

Steps to generate a command longer than one line within  REXX:

1. Build the command one line at a time.
2. Concatenate each line with the previous line.
3. Use the concatenated string as the command.

Example: 

An example is coding a Multiple Line Command using a variable named SS

REXXON
SS = "IF JOBONQ('ABC') OR "
SS = SS "JOBONQ('DEF') OR "
SS = SS "JOBONQ('XYZ') THEN REEXEC IN(1)"
SS
REXXOFF