Hi,
Split into 2 strings at '.' using split statement then copmare second string if it .xls or not
SPLIT f AT g INTO h1 ... hn.
Regards,
Prashant
Hi,
You can try the below logic instead of STRLEN.
SPLIT filename AT '.' INTO file1 extension.
if extension = 'xls'.
Proceed further.
endif.
If you want to use STRLEN.
flen = STRLEN(filename).
flen = flen - 5.
exten = filename + flen(4).
if exten = '.xls'.
xxxxxxxxx
endif.
Add a comment