Dear All,
I'm doing little experiments on field symbols , I got stuck at a point. It may be a small thing but I'm not clicking it.
scenario is -
Data str1 type string,
str2 type string.
field-symbols <fs1>,<fs2>.
do 2 times.
count = count + 1.
text1 = count.
CONCATENATE 'STR' text1 into text1. " now value in TEXT1 is STR1.
condense text1.
ASSIGN TEXT1 to <fs1>. " Now value of fs1 is STR1 (Which is a variable defined in the beging)
text2 = 'HELLO'.
ASSIGN TEXT2to <fs2>. " Assinging value of text2 to <FS2>
ASSIGN <fs2> to <fs1>. " here I'm trying to assign value of fs2 which is 'HELLO' to the variable STR1, STR1 is already assigned to <FS1>
write : \ SRT1,
\ STR2.
desired O/P.
HELLO
HELLO
endloop.