Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

When is EBCDIC not EBCDIC ?
Answer, when it is MF's extension
ALPHABET ... IS EBCDIC.

(At least with Object Cobol, SE 2.2 and SE 4.0)
Reference ASCII<->EBCDIC conversion, Appendix B, User Guide.
(Which incidentally has 3 wrong entries, also in the online web page)

This can be demonstrated by a
SORT with COLLATING SEQUENCE ...

Feed the sort with one character records composed of all
(decimal) values from 0 to 255.

The result is, err, interesting.
What MF does is to take "printable" values plus some other values
and "move" them into the first 128 values.
The values 128 to 255 remain unchanged and get sorted to the end.
MF maintain this is working as intended.

I suppose the question is what is a collating sequence ?
And how does this relate to an alphabet ?

(OpenCOBOL allows both the MF behaviour and the full EBCDIC
sequence, dependent on environment variable)

Roger While



Report this thread to moderator Post Follow-up to this message
Old Post
Roger While
05-11-06 08:55 AM


Re: When is EBCDIC not EBCDIC ?
"Roger While" <simrw@sim-basis.de> wrote in message
news:e3v108$i8l$01$1@news.t-online.com...
> Answer, when it is MF's extension
> ALPHABET ... IS EBCDIC.
>...
> I suppose the question is what is a collating sequence ?
> And how does this relate to an alphabet ?

Perhaps you are trying to SORT non-display data - or other values not
defined in the the EBCDIC character set- and that is messing up your sort?

Both ASCII and EBCDIC also have 'national'  flavors, so 'language' is also a
factor.

I don't know about your specific circumtance here,  but you can define an
ALPHABET in the SPECIAL-NAMES paragraph and use that alphabet-name is the
COLLATING SEQUENCE IS clause of the SORT statement. Perhaps not what you
wanted, but also perhaps a way to solve your immediate challenge.

MCM





Report this thread to moderator Post Follow-up to this message
Old Post
Michael Mattias
05-11-06 11:55 PM


Re: When is EBCDIC not EBCDIC ?
Roger,
I don't know if it is still true, but MF used to have documentation that the
"with collating sequence" was ignored in some types of SORT statements.

Also,  as Michael pointed out, there is no such thing as "EBCDIC" that doesn
't
have national "flavors" (and/or flavours <G> )

--
Bill Klein
wmklein <at> ix.netcom.com
"Roger While" <simrw@sim-basis.de> wrote in message
news:e3v108$i8l$01$1@news.t-online.com...
> Answer, when it is MF's extension
> ALPHABET ... IS EBCDIC.
>
> (At least with Object Cobol, SE 2.2 and SE 4.0)
> Reference ASCII<->EBCDIC conversion, Appendix B, User Guide.
> (Which incidentally has 3 wrong entries, also in the online web page)
>
> This can be demonstrated by a
> SORT with COLLATING SEQUENCE ...
>
> Feed the sort with one character records composed of all
> (decimal) values from 0 to 255.
>
> The result is, err, interesting.
> What MF does is to take "printable" values plus some other values
> and "move" them into the first 128 values.
> The values 128 to 255 remain unchanged and get sorted to the end.
> MF maintain this is working as intended.
>
> I suppose the question is what is a collating sequence ?
> And how does this relate to an alphabet ?
>
> (OpenCOBOL allows both the MF behaviour and the full EBCDIC
> sequence, dependent on environment variable)
>
> Roger While
>



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
05-11-06 11:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:44 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.