home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.rexx
- Path: sparky!uunet!ftpbox!news
- From: acus02@ems13.corp.mot.com (David McAnally)
- Subject: re: Lower-case alphabetic set
- Message-ID: <1993Jan4.022708.2922@ftpbox.mot.com>
- Sender: news@ftpbox.mot.com (C News)
- Reply-To: acus02@email.mot.com
- Organization: Motorola, Inc.
- References: <REXXLIST%93010320580660@OHSTVMA.ACS.OHIO-STATE.EDU>
- Date: Mon, 4 Jan 1993 02:27:08 GMT
- Lines: 30
-
- In article <REXXLIST%93010320580660@OHSTVMA.ACS.OHIO-STATE.EDU> writes:
- > Hello netters!
- >
- > I found that, there's a function to translate all words to upper case
- > but I could'nt find in HELP REXX to form the words from upper case to
- > lower case by using a function. Could anyone help me to solve this
- > problem?
- >
- > Thanks in advance.
- >
- > -WAN-
-
- Although there isn't a specific "lower" case translation function, you can
- create one, or do the same thing using the "translate()" function. Create a
- procedure or subroutine function something like the following. (my editor
- probably wraps the long line, but you get the idea)
-
- /* lower case REXX function (opposite of UPPER function) */
- parse arg instring
- return
- TRANSLATE(instring,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ'
- )
-
- --
- +-------------------------------------------------------------------------+
- | David McAnally | EMail: acus02@waccvm.corp.mot.com |
- | Motorola Corp. Computer Services | Next: acus02@ems13.corp.mot.com |
- | CS / Application Engineering | |
- | M/D AZ49 R3148 | |
- +-------------------------------------------------------------------------+
-