Number of statements as defined in the ObjectScript Specification.
Method of calculation
Statements counter gets incremented by one each time a following keyword is encountered:
- Object Script commands: if, else, while, do, for, while, break, continue, return, quit, goto, halt, hang, job, kill, lock, merge, new, open, read, write, set, throw, catch, finally, tcommit, trollback, tstart, use, xecute, zkill, znspace, ztrap, zwrite, zzdump, zzwrite.
- #Dim, when it is an assignment
- Static statements: &sql(...), &html<...>, &js<...>
- Legacy if, else, for
Statements counter is not incremented by a class, method, field, package declaration and import declaration.