In <e44df041-5f49-49af-9f83-c594036da...@yahoo.com>, on 09/28/2012
   at 11:07 AM, Scott Ford <scott_j_f...@yahoo.com> 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to