× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



RTFM

%SUBST(string:start{:length})

Ftrom and Length, not From and To.

You told it to take 16, it took 10 because that's all that fit.




                                                                                
                                                         
                      rob@xxxxxxxxx                                             
                                                         
                      Sent by:                   To:      rpg400-l@xxxxxxxxxxxx 
                                                         
                      rpg400-l-bounces@m         cc:                            
                                                         
                      idrange.com                Subject: %subst bug?           
                                                         
                                                                                
                                                         
                                                                                
                                                         
                      08/17/2005 09:13                                          
                                                         
                      AM                                                        
                                                         
                      Please respond to                                         
                                                         
                      RPG programming on                                        
                                                         
                      the AS400 /                                               
                                                         
                      iSeries                                                   
                                                         
                                                                                
                                                         
                                                                                
                                                         




Have the following code in debug:
     23          22       To=%scan(' ' : inlibl : From) - 1;
     24          23       MbrLibrary=%subst(inlibl:from:To);
     25          24       write InLiblOR;
I break on the write line.  From my monitor expressions window:
MBRLIBRARY = BPCSUSR BP
TO = 16
FROM = 10
INLIBL = BPCSUSRF BPCSUSR BPCSPTF BPCSF BPCSO

Rob Berendt






____________________________________________________________________________________
This message is intended only for the use of the individual or entity to
which it is addressed and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If the
reader of this message is not the intended recipient, or the employee or
agent responsible for delivering the message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you have received this
communication in error, please delete it and notify us immediately.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.