Wednesday 25 May 2016

Concatenate

Concatenate: Used to combine the characters or Strings.

Ex 1: Concatenating string without space.

Source Code:


 DATA : txt3 TYPE string.

PARAMETERS : txt1 TYPE string,

             txt2 TYPE string .



CONCATENATE  txt1  txt2 INTO txt3.

WRITE : / txt3.







Input :





Output :




------------------------------------------------------------------------------------------

Ex 2 : Concatenating string with space using Separated by space keyword.

Source Code:

data : txt3 TYPE string.

PARAMETERS : txt1 TYPE string,

             txt2 TYPE string .



CONCATENATE  txt1  txt2 INTO txt3 separated by space.

WRITE : / txt3 .





Input 


Output






2 comments: