View previous topic :: View next topic |
Author |
Message |
WHITE Beginner
Joined: 03 Sep 2004 Posts: 8 Topics: 4
|
Posted: Mon Feb 21, 2005 1:55 pm Post subject: Number VS letters |
|
|
In Mainframe, Is Numbers are greater than letters or not?
I mean,
Can i chek the mumeric data like this
If quantity > zzz
Do some calculation
else
display an error
end-if.
In VB the numbers are less than letters because the comparison is based on ANSI code, Is it the same for Mainframe ?
Any thoughts on this one ? |
|
Back to top |
|
 |
s_shivaraj Beginner

Joined: 21 Sep 2004 Posts: 140 Topics: 14 Location: Chennai, India
|
Posted: Mon Feb 21, 2005 11:44 pm Post subject: |
|
|
White,
IN VB characters are considered in ASCII format, were as in Mainframe they are considered in EBCDIC format, so the result you expect in Mainframe wouldnt be the same as in VB. For more info on EBCDIC code please check this Link
EBCDIC Link
Hope this Helps...... _________________ Cheers
Sivaraj S
'Technical Skill is the Master of complexity, while Creativity is the Master of Simplicity' |
|
Back to top |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Tue Feb 22, 2005 1:10 am Post subject: |
|
|
in mainframes didgits are greater than letters but '> zzz' might not work.
'001' is greater than 'zzz' (note 'Z' > 'z') and so is '0 A'.
Unless your data is following some pattern, you need to check every byte. |
|
Back to top |
|
 |
|
|