75 pts.
 Writing one line of code in RPG: greater than ‘A’ and less than ‘Z’
How can I write one line of code in RPG Free something like if x >= 'A' and x <= 'Z' instead of x = 'A' or x = 'B', etc.

Software/Hardware used:
ASKED: August 13, 2010  3:04 PM
UPDATED: August 16, 2010  3:13 PM

Answer Wiki:
uh..... /free if X >= 'A' and X <= 'Z'; (do somthing here) EndIf; -Sarge
Last Wiki Answer Submitted:  August 13, 2010  6:05 pm  by  Rudedog   950 pts.
All Answer Wiki Contributors:  Rudedog   950 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Are you concerned about other values other than the letters of the alphabet?
There are Hex values between I and J and also between R and S.
What about lower case characters? You need different comparisons for those.

 32,855 pts.

 

Yeah, it’s a strange question since the question contains the answer. The hex values that are intermixed with upper-case letters in EBCDIC seem to be a good guess at what is really being asked.

Tom

 108,055 pts.

 

If %Scan( X : ‘ABCDEFGHIJKLMNOPQRSTUVWXYZ’ ) > 0

 2,195 pts.