Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between Byte mode & Character mode

Former Member
0 Kudos

Hi,

what is the difference between Byte mode & Character Mode, could u make me clear which is the best in which situation.

Thanks & Regards,

jogu_vinesh@yahoo.com

3 REPLIES 3

Former Member
0 Kudos

hi,

if there is 5 character in the file. then in byte mode if there is a space of four character then it will fill up the first four place then it will go to next line and place the fifth character.

and in the character mode the five will be display in only one line.

hope it would help you.

jairaj

Former Member
0 Kudos

i guess u r using this addition in open dataset statement

am i right.

character mode parses the file character by character

byte mode parses every byte

rainer_hbenthal
Active Contributor
0 Kudos

This becomes relevant in unicode environments. A character in Unicode can consist of more then one byte, espacially fpr national characters. So i counting by character can reveal 4 characters, but it might be that 5 bytes or even more are used.

String/Characterhandling can completly fail in unicode environments using the wrong clause.