R289 – A global ESQL variable is only used once. It could be a local variable (WMB)

A global ESQL variable is only used once. It could be a local variable (WMB)

For example the DECLARE NS could be local to the module as it is never used anywhere else at the SCHEMA level
Could be an issue
Preferred – it has been moved locally to the module
Preferred