REXX Tips.

A Mainframe-Tip a Day keeps the bugs away!
Forum rules
All of these Tips/Tuning-suggestions should be tested your own, at your shop, prior to use in Prod.
Post Reply
User avatar
Anuj Dhawan
Founder
Posts: 2801
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

REXX Tips.

Post 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
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Tip Of the Day.”