I created function to manage string as requirement extract the first two letter of each word after space for example:
Text = "Review symptoms to report with patient"
After passed function it will be return "Resytorewipa"
set desc = "Review symptoms to report with patient"
SET delim=" "
set i =1
set abbrv = $e($PIECE(desc,delim,i),1,2) // But if I put w abbrv I can get "Resytorewipa"
set i = i+1
However, at the end I got only abbrv=''pa" how to get data as requirement.