Application Development and Automation 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: 
Read only

Difference between Byte mode & Character mode

Former Member
0 Likes
1,268

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
Read only

Former Member
0 Likes
766

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

Read only

Former Member
0 Likes
766

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

Read only

rainer_hbenthal
Active Contributor
0 Likes
766

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.