To adhere to industry standards and enhance the readability of nested blocks, use curly brackets to mark the beginning and end of a block.
Example
type ResultSet rs=Db.select("CID,BAL,IRN","DEP")
while rs.next() do {
..set CID = rs.getCol(1)
set BAL = rs.getCol(2)
set IRN = rs.getCol(3)
set INTRATE = rs.getCol(2) * rs.getCol(3)
write CID," - ",INTRATE,!
}
Indent the closing curly bracket in alignment with the PSL statements contained in the block. The closing curly bracket should be on its own line.