Number of elements for an array with DIM(*AUTO) in debug
Posted: Tue May 05, 2026 6:54 am
If I have an array with DIM(*AUTO) how can I see the number of elements in debug?
dcl-s elmRtex like(elmRte_fixed) dim(*auto : 60000) ascend;
For example elmRtex is loaded with a lot of values but how many elements are there?
And yes, I know, I could put a statement in the source like this:
nbrElmRtex = %elem(elmRtex);
But this shouldn't be necessary or not allways a possibility.
Regards
Peder
dcl-s elmRtex like(elmRte_fixed) dim(*auto : 60000) ascend;
For example elmRtex is loaded with a lot of values but how many elements are there?
And yes, I know, I could put a statement in the source like this:
nbrElmRtex = %elem(elmRtex);
But this shouldn't be necessary or not allways a possibility.
Regards
Peder