Hi Gil, >> msg_cnt = msg.0
For larger REXX programs, there would be a small CPU saving to not code msg.0 in a DO loop. Accessing an indexed STEM variable has a longer path length than a simple variable. >Is there a problem if any of the msg.ix contain apostrophes? Not to REXX, but YES to the SEND command. Any quoted text being passed to SEND would need to be doubled, as per normal TSO parameter quoted string usage. for this usage:- quoted string 'text' double quoted string 'text''internal quoted text''more text' I do not think this would cause trouble 'text"internal text"more text' " /= '' :D there are real name for the ' and the " symbol, but I forget what they are. On Fri, 30 Jun 2017 08:31:24 -0500, Paul Gilmartin <[email protected]> wrote: >On Fri, 30 Jun 2017 02:47:29 -0500, Bruce Hewson wrote: >> ... >> msg_cnt = msg.0 >> >I've never done this renaming. Is it beneficial? > >> ... >> do ix=1 to msg_cnt >> Address SDSF "ISFEXEC '/SEND ''" || msg.ix || "'',SAVE'" >> end >> ... >Is there a problem if any of the msg.ix contain apostrophes? > >-- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
