Hi,
I am not that well versed with Rexx but I am trying to automate a process using this. In one of such REXX program, user will pass a name (host or domain name), REXX will fetch these details. The problem that I am facing is that the input file where the REXX takes the input detail is supposed to be in small letters. But while running the REXX if any input is in capital letter then REXX does not understand it and leaves an error.
I checked in REXX manuals but could not locate a inbuilt function to do this task. Can someone please help me solving this issue.
Handling upper case letters in REXX.
Moderator: mickeydusaor
-
- Global Moderator
- Posts: 826
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Handling upper case letters in REXX.
experiment with
and the info about upper and lower case processing IS in the manuals
the best way to deal with variables is
Code: Select all
/* parsing in lower case and processing after */
parse arg args
say "with 'parse' "">"args"<"
uppr = translate(args)
say "with code (translate) "">"uppr"<"
parse upper var args uppr
say "with code (parse) "">"uppr"<"
/* parsing in UPPER case directly */
parse upper arg args
say "with parse upper "">"args"<"
the best way to deal with variables is
Code: Select all
upper = translate(lower)
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute