STRING OPERATIONS:
In case of string operations, no space between operators.
Split and concatenate
Data: V
DATA : V_D1(10) type c,
V_D2 LIKE V_D1,
D_DD(2) TYPE N,
V_MM(2) TYPE N,
V_YR(4) TYPE N.
V_D1 = ‘27/07/2008’.
SPLIT at ‘/’ V_D1 into V_DD V_MM V_YR.
CONCATENATE V_YR V_MM V_DD INTO V_D2 SEPARATE BY ‘.’.
No comments:
Post a Comment