"Undocumented" REXX functions

The following REXX functions to work with DBCS mixed Strings are only documented in the IBM: OS/2 2.0 Procedures Language/2 Reference Manual and in the Object-Oriented REXX online documentation:

Well, for the "normal" REXX programmer only two of these functions are interesting (The functions also work with SBCS strings): Name DBRLEFT( string, n {,option} ) Function Delete n chars beginning with the first char
Example DBRLEFT( "ABCDEFG", 2 ) gives "CDEFG"
Note The parameter option is only needed for DBCS strings)
For SBCS strings you should not use this parameter.

Name DBRRIGHT( string, n {,option} )
Function Delete n chars beginning with the last char
Example DBRRIGHT( "ABCDEFG", 3 ) gives "ABCD"
Note The parameter option is only needed for DBCS strings)
For SBCS strings you should not use this parameter.


[Back: Documentation for CMDLINE.CMD]
[Next: REXX Language Association]