Syntax for translate command:
translate(input source, replace string, search string, padding)
Code example:
/*REXX*/
UPPERCASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
lowercase = 'abcdefghijklmnopqrstuvwxyz'
input= 'HeLLO'
input_upper = translate(input, lowercase, uppercase)
Say 'Original Source : ' input
Say 'Translated Source: ' input_upper
This would return value 'hello' which will be stored in input_upper variable
TRANSLATE is MAGIC!!
ReplyDeletehttp://rexxpertise.blogspot.com/2011/10/magic-of-translate.html
that was a real magic!! :-p
DeleteThanks For sharing this Superb article.I use this Article to show my assignment in college.it is useful For me Great Work. Traductor Jurado Malaga
ReplyDelete