Skip to Content
0
Former Member
Feb 16, 2011 at 10:56 PM

write operations-printing in single line

29 Views

Hello Gurus,

I have following code

Data CombinedString(100) Type c

Parameters: P_str1(20) type c lower case,

P_str2(20) type c lower case,

P_str3(20) type c lower case.

concatenate P_str1 P_str2 P_Str3 into CombinedString.

write: /'Combined String = ', CombinedString.

P_str1 = Hello,

P_str2 = You are a student.

P_str3 = What*about Jonny?

Now if we execute sometimes the output will be coming in two lines.

If we increase the length of CombinedString to 120 then the o/p is in single line.

I am not understanding why the system behaving in this way. ...

Please help.

Thanks in advance !!