Is it possible to address a data area by name from a variable field?
The idea is to keep last used report-no by dept/company in data areas - one for each dept/company. Multiple data areas (all *dec 7 0) are needed as report-pgm can print for several different departments/companies.
Dept-id shall be passed as a parm when report-program is called, and program-process shall address proper data area by dept-id.
Software/Hardware used: IBM Power i with V6R1, RPGLE