Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Valid values for ALPHABETIC-UPPER in Cobol?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
narendrabade

New User


Joined: 27 Jan 2011
Posts: 6
Location: Pune

PostPosted: Thu Jun 16, 2011 5:56 pm    Post subject: Valid values for ALPHABETIC-UPPER in Cobol?
Reply with quote

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
View user's profile Send private message

Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Thu Jun 16, 2011 6:03 pm    Post subject: Reply to: Valid values for ALPHABETIC-UPPER in Cobol?
Reply with quote

Is this a trick question?

Letters "A" through "Z". icon_rolleyes.gif

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Jun 16, 2011 6:05 pm    Post subject: Re: Valid values for ALPHABETIC-UPPER in Cobol?
Reply with quote

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
View user's profile Send private message
Jose Mateo

Active User


Joined: 29 Oct 2010
Posts: 112
Location: Puerto Rico

PostPosted: Thu Jun 16, 2011 7:29 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Fri Jun 17, 2011 11:32 am    Post subject:
Reply with quote

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
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Fri Jun 17, 2011 6:49 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts COBOL - EXIT statement weird behavior anthony.pangestu COBOL Programming 0 Fri Oct 27, 2017 9:57 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us