IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Concept of Collating sequence?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jinal_mca

New User


Joined: 05 Jan 2007
Posts: 22
Location: Pune, India

PostPosted: Fri Feb 16, 2007 3:20 pm
Reply with quote

I know EBCDIC and ASCII both collating seq.. but i wanna know
how it works and what does it mean...what does it do...

how IBM collating seq is differ thn other..

thnx
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Feb 17, 2007 12:01 am
Reply with quote

Hello,

It doesn't "work" - it just is. When you see the numbers 1,2,3,4,5,6,7,8,etc you might consider that a "collating sequence". If you had 4,3,6,8,2,1,9 there is no "order" just some values.

The collating sequence determines the order (ascending or descending) you will get if you sort the values. It is also the basis for comparing "greater than" and "less than".

You need to get a list of the ASCII and EBCDIC values from x'00' to x'FF' and see how they represent letters, numbers, special chatacters, etc. If memory serves an x'31' is the number one in ASCII while x"F1" is the number one in EBCDIC - x'20' is a space in ASCII and x'40' is a space in EBCDIC.

The IBM collating sequence is different from most others in that it is EBCDIC based while most unix and windows platforms are ASCII based.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Cobol program with sequence number ra... COBOL Programming 5
No new posts Find missing sequence for every key DFSORT/ICETOOL 3
No new posts GDG all in sequence order JCL & VSAM 9
No new posts Sequence number generation for multip... DFSORT/ICETOOL 2
No new posts Search file for records that don't fo... SYNCSORT 8
Search our Forums:

Back to Top