>[snip]... Peter: what happens if STRINGRANGE is disabled?

As the message says, the third argument (5) will be trimmed to fit (i.e.
3 will be used). For the following source code
    TEST09: PROC OPTIONS(MAIN);            
    DCL SOURCE CHAR(10) INIT('0123456789');
    DCL TARGET CHAR(10) VAR INIT('');      
    TARGET = SUBSTR(SOURCE, 8, 5);         
    END;                                   

the compiler produces these object code statements (only the statements
or interest shown)
    MVC      SOURCE(10,r13,180),'0123456789'(r1,0)      
    MVC      TARGET(3,r13,170),SOURCE(r13,187)          
    MVHHI    TARGET(r13,168),H'3'                       

--
Peter Hunkeler

----------------------------------------------------------------------
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