Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using UPCASE in a FEX

Status
Not open for further replies.

LeonelSanchezJr

Programmer
Jan 26, 2001
522
0
0
US
I need to convert a &VARIABLE being passed to a FEX into UPPERCASE in order to avoid using UPPER() in my SQL Passthrus.

Thanks,

Leo ;-)
 
Be it ever so inelegant, this worked for me when I needed to convert something to upper case. Original value was stored in &DRAWBUD1, upper case in &DRAWBUD.

-SET &DRAWBUD = UPCASE(&DRAWBUD1.LENGTH, &DRAWBUD1, 'A3');

Surely someone out there knows a better way.

---------------------------------------
The customer may not always be right, but the customer is ALWAYS the customer.
 
What you may want to do is the following:

Code:
-SET &LL = &DRAWBUD.LENGTH;
-SET &DRAWBUD = UPCASE(&LL, &DRAWBUD1, 'A&LL.EVAL');

By setting the length of the variable to an 'amper' variable, you can use the '.EVAL' operator in the last argument, to automatically adjust for ANY input value.

 
Great idea, FocWizard!

---------------------------------------
The customer may not always be right, but the customer is ALWAYS the customer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top