IT Jungle's Guru shows RPG STATIC locals keep state between calls, scoped by the activation group
A local declared STATIC in an RPG procedure keeps its value from call to call, and the service program's ACTGRP decides whether each calling activation group gets its own copy (*CALLER) or the whole job shares one (a named group). Before Bob or anyone refactors a service program, list its STATIC fields and its ACTGRP, because changing either one changes behavior that a test of a single call will not catch.
Built In.
The best of the log, every two weeks. One idea, one proof, one next step.
Built In.
The best of the log, every two weeks. One idea, one proof, one next step.
References do not imply endorsement. The link goes to the original source; the words are ours. Silver Lake Financial Group and Alder & Pine Home, where mentioned, are fictitious demonstration companies.