Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 2502
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: 110
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
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us