MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Number VS letters

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
WHITE
Beginner


Joined: 03 Sep 2004
Posts: 8
Topics: 4

PostPosted: Mon Feb 21, 2005 1:55 pm    Post subject: Number VS letters Reply with quote

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


Joined: 21 Sep 2004
Posts: 140
Topics: 14
Location: Chennai, India

PostPosted: Mon Feb 21, 2005 11:44 pm    Post subject: Reply with quote

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


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Tue Feb 22, 2005 1:10 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group