It is as usual in the older versions.
1. you have to use
create function
for creating a function
2. for calling it,
@var= abc()