Rexx SUBSTR: 1-Based Indexing Is a Feature, Not an Off-by-One Bug
Rexx SUBSTR counts from 1, not 0. That makes fixed-width extraction arithmetic-free — and breaks ported code. Here's how to use it, plus the padding and byte-counting traps.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Rexx SUBSTR counts from 1, not 0. That makes fixed-width extraction arithmetic-free — and breaks ported code. Here's how to use it, plus the padding and byte-counting traps.