The target of the SUBSTRING statement must be a field or an unqualified reference to a data member or variable
When using SUBSTRING statement with a function as the "target" the following error is received: The target of the SUBSTRING statement must be a field or an unqualified reference to a data member or variable