Ü  %ELEM

·         %ELEM will give us the array dimension

 

Example –%elem built-in function in rpgle


0001.00 darr1             s              3s 0 dim(100)
0002.00 dc                s              3s 0
0003.00 c                   eval      c=%elem(arr1)
0004.00 c     c             dsply
0005.00c             seton                                            lr

 

 

OUTPUT

DSPLY  100

 

 










User Comments:



Subscribe

  Email:



Copyright © Go4as400.com, 2013-2017. Copyright notice