View previous topic :: View next topic
|
Author |
Message |
narendrabade
New User
Joined: 27 Jan 2011 Posts: 6 Location: Pune
|
|
|
|
Hi,
Can someone tell me the valid set of ALPHABETIC-UPPER in cobol?
For Example: valid set for NUMERIC is : 1 2 3 4 5 6 7 8 9 0
What is set for ALPHABETIC-UPPER??
I also checked existing post regarding same but didn't find anything similar to this.
Thanks,
Narendra |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Is this a trick question?
Letters "A" through "Z".
Note that in the EBCDIC collating sequence (unlike ASCII), these values are NOT consecutive.
X'C1' --- X'C9' (A-I)
X'D1' --- X'D9' (J-R)
X'E2' --- X'E9' (S-Z)
Bill |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
narendrabade wrote: |
Hi,
Can someone tell me the valid set of ALPHABETIC-UPPER in cobol?
For Example: valid set for NUMERIC is : 1 2 3 4 5 6 7 8 9 0
What is set for ALPHABETIC-UPPER??
I also checked existing post regarding same but didn't find anything similar to this.
Thanks,
Narendra |
Have you tried looking in the COBOL Language Reference? |
|
Back to top |
|
|
Jose Mateo
Active User
Joined: 29 Oct 2010 Posts: 121 Location: Puerto Rico
|
|
|
|
Good day to all!
Alphabetic-upper is a CLASS clause use in SPECIAL-NAMES. Alphabetic-upper is A thru Z and space. |
|
Back to top |
|
|
Dsingh29
Active User
Joined: 16 Dec 2008 Posts: 132 Location: IBM
|
|
|
|
In OS/VS COBOL, only uppercase letters and the space character were considered to be ALPHABETIC.
In Enterprise COBOL, uppercase letters, lowercase letters, and the space character are considered to be ALPHABETIC.
If your OS/VS COBOL program uses the ALPHABETIC class test, and the data tested consists of mixed uppercase and lowercase letters, there can be differences in execution results. In such cases, you can ensure identical results by substituting the Enterprise COBOL ALPHABETIC-UPPER class test for the OS/VS COBOL ALPHABETIC test.
Thats why you need to use it in SPECIAL-NAMES. |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
You should also be aware that in some code page representations national characters and most special characters will be outside the ALPHABETIC class. |
|
Back to top |
|
|
|