Page 1 of 1

REXX Tips.

Posted: Wed Feb 10, 2016 2:22 pm
by Anuj Dhawan
1. Splitting a function over multiple lines

Consider the following examples:
  1. Continuing a string across two lines

    Code: Select all

    l_string1 = "This is an example of a bigger-line split between",
                "two lines.";
    
  2. Continuing a string when the continuation occurs on a parameter boundary

    Code: Select all

    src = socket("GETADDRINFO","CHILE",,
                 23,"AI_CANONNAMEOK");
    In this example, the first comma after the parameter "CHILE" indicates the end of the parameter. The second comma indicates that the REXX statement continues on the next line.
Courtesy: IBM