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

Differentiate between number 0 and alpha O in print ?


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

New User


Joined: 28 Sep 2005
Posts: 55
Location: USA

PostPosted: Thu Apr 11, 2013 3:09 am
Reply with quote

Hi all,

Does anyone know of a way using COBOL to create a difference between an ALPH O and a number 0, such as forcing a dot in the middle, or a slash thru the zero when it is printed?

Thanks so much for any advice!
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 11, 2013 3:28 am
Reply with quote

1. Anything you do in COBOL could be negated by the printer used.
2. Have you looked at the various code pages available to see if any of them sufficicently distinguish zeroes and ohs?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Apr 11, 2013 3:29 am
Reply with quote

Well, on your Cobol Coding Sheet, you put a vertical line through one or the other (varied from site-to-site).

I don't get it. Where is it difficult for someone to tell the difference? If you are talking about printed output, then there is a character-set: for that - talk to your technical people about what is available, and how to use it.

For a 3270-Emulator you should have some "Fonts" that you can select from.

Neither will really be anything to do with a Cobol program. For the character-set, you'll do it on the SYSOUT. For the Emulator, they'll all need re-initialising with a new default.
Back to top
View user's profile Send private message
Sysaron

New User


Joined: 28 Sep 2005
Posts: 55
Location: USA

PostPosted: Thu Apr 11, 2013 3:45 am
Reply with quote

Hi again,

I am talking about where someone would have difficultly disstinguishing the difference on a printed form. In this case I am printing a bill that you must use a pin# in order to pay it. The pin# is on the bill and can have both numeric zero and alpha o, Like 2T6OYU. The customers are now afraid that the bill payers will not distiguish the zero from the 'O'. If there is a "character set" that my 'Technical people" would know more about, I would like to find more info about it. Thank so much in advance.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Apr 11, 2013 4:04 am
Reply with quote

So ask them. The answer is yes. If there isn't one currently that has a bar in it (I'd expect on the zero), they can set one up. You're still going to have to tell the bill-payer which is which, if it is genuinely difficult to tell between the normal characters. Generally, the 0 is more "pointy" and the O "fatter". Just like I've just typed. If they are very similar when printed on the bills, putting a line through and saying nothing won't help.

An alternative is to not use them both.

I can't really remember the last time I had trouble distinguishing the two (on any type of computer output), so maybe never seen it. On other things, yes, but not from computers. Curious that you've managed to get a problem.

Is the problem really that someone is assuming the bill-payers are just dumb?

Are they going to use a keyboard to enter the PIN#? The keys, either on-screen of physical, have to have the same shape as the characters on the bill.

I think it's a waste of time doing what you want, but it can be done, and it is quite easy. It will not affect your Cobol program.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Apr 11, 2013 5:32 am
Reply with quote

A zero with a slash is useless in Denmark, Norway and a few more countries, where it may be confused with the slashed O.

And how would Tom, Dick or Harry know that a dotted zero is a zero and not just a dotted O?

Simply do not use 0 and O, the 1,544,804,416 possible 6-character combinations should be enough anyway.
Back to top
View user's profile Send private message
Sysaron

New User


Joined: 28 Sep 2005
Posts: 55
Location: USA

PostPosted: Thu Apr 11, 2013 10:20 pm
Reply with quote

Thanks for all the info. Unfortunately I am truely forced to use both zero and 'O' for this project by my customers, for whatever reason.

And yes, my customers/users feel that the bill payers need to be told that you must enter '1' before entering the area code of a phone number as well.

I think I will get the COM-Xerox peopel to figure out a good character-set for the form/bill.

Thanks again! Bye.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Fri Apr 12, 2013 8:11 pm
Reply with quote

In a pinch, you could use lower case O, so that at least it would look that much different.
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 Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
No new posts JCL sortcard to print only the records DFSORT/ICETOOL 11
Search our Forums:

Back to Top