The scope of an object is determined when it is typed (i.e., declared). The object name should not be N[ewed] as this function is managed by the PSL compiler.
Example 1
Unacceptable: |
new crcd |
Acceptable: |
type RecordCRCD crcd = |
Example 2
Unacceptable: |
new rs |
Acceptable: |
type ResultSet rs = Db.select("TSEQ","HIST","CID<:CID") |
For additional guidelines concerning the scope of objects and variables, refer to the following sections:
Non-Object Reference Variable Scope in PSL
Methods Supported for Literal Scope Variables
When Standard is Enforced: Profile v7.0