×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




It's not the endposition of the string. It's the length of the string.
In this case it should be nEndPos = 10

%subst(string:start{:length})

Regards,
Leif
----- Original Message -----
From: "Phil Kestenbaum" <pkestenbaum@xxxxxxxxxxx>
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
Sent: 4. juni 2007 14:57
Subject: %subst problem


This statement is blowing up. However during a debug, I have values in
both nStartPos anf nEndPos and they appear to be correct, 30 and 39,

This is where we get an invoice number. J8_Comment has contents and they
are what they should be. I am not sure what is wrong at this point.



eval J8_Comment = %subst(J8_Comment : nStartPos

nEndPos)




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2026 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.