In <[email protected]>, on 09/28/2012
at 11:07 AM, Scott Ford <[email protected]> said:
>Shmuel is correct..
I'm correct about suggesting LEFT as an alternative to SUBSTR in REXX.
However, Peter is correct about SUBSTR not working the same in PL/I as
in REXX, at least when STRINGRANGE is enabled.
>test = 'abcdefghi';
Try test = 'abc' (if varyying), or declare test as CHAR(3).
>X = substr(test,1,5);
See above.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT
Atid/2 <http://patriot.net/~shmuel>
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN