Handling upper case letters in REXX.

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Hemlata P
New Member
Posts: 1
Joined: Wed Oct 08, 2014 9:06 am

Handling upper case letters in REXX.

Post by Hemlata P »

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.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Handling upper case letters in REXX.

Post by enrico-sorichetti »

experiment with

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"<"
and the info about upper and lower case processing IS in the manuals

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 8-)
Post Reply

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

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”