Hi!
I have an external defined display howing records found from the beginning or after SETLL.
I use to load 2 record formats as follows:
- step 1: display with title, command keys, headers and input fields to choose one record at a time, overlay indicator OFF;
- step 2: display with variable line positioning to output data and with input field which will be ND if no data available;
- step 3: same display as step 1, but with overlay indicator ON.
To check all the input fields with a DOxx operation for an 'X' used to chose a record for update/viewing, I have to put all these input
fields in an array.
In RPGII it was very simple:
- array definition in the 'E'-specs;
- start and end position of whole array (or single element with index) in the 'I'-specs.
In my case this meant just 3 lines of coding (if input fields contiguous on display file).
Now it seems to me that the same needs more coding in RPGLE:
- through 'D'-specs, overlaying DS, etc
- or 'JX'-specs renaming FLD01-FLDn to ARR(1)-ARR(n), which is deprecated or inelegant (why?)
Is there a way in RPGLE similar or equal to RPGII?
TIA
Arnaldo
I have an external defined display howing records found from the beginning or after SETLL.
I use to load 2 record formats as follows:
- step 1: display with title, command keys, headers and input fields to choose one record at a time, overlay indicator OFF;
- step 2: display with variable line positioning to output data and with input field which will be ND if no data available;
- step 3: same display as step 1, but with overlay indicator ON.
To check all the input fields with a DOxx operation for an 'X' used to chose a record for update/viewing, I have to put all these input
fields in an array.
In RPGII it was very simple:
- array definition in the 'E'-specs;
- start and end position of whole array (or single element with index) in the 'I'-specs.
In my case this meant just 3 lines of coding (if input fields contiguous on display file).
Now it seems to me that the same needs more coding in RPGLE:
- through 'D'-specs, overlaying DS, etc
- or 'JX'-specs renaming FLD01-FLDn to ARR(1)-ARR(n), which is deprecated or inelegant (why?)
Is there a way in RPGLE similar or equal to RPGII?
TIA
Arnaldo
Comment