fixed and unfixed length strings

Character fields (fixed length)
Runtime: 1 microseconds
*data c1(200) type c.
*data c2(200) type c.
*data c3(400) type c.

c1 = 'mysap'.
c2 = '.com'.
concatenate c1 c2 into c3.


String (unfixed length)
Runtime: 0 microseconds

*data string1 type string.
*data string2 type string.
*data string3 type string.

string1 = 'mysap'.
string2 = '.com'.
concatenate string1 string2 into string3.

 

 

Documentation
Depending on the length of the character field,
string operation may be faster.
The concatenate algorithm has to compute the length of
the fixed character fields by scanning the first
non-blank character from the end.

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章