How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Can *OCCURRENCE(#X-ARRAY) define the X-ARRAY memory space in execution time?

calendar_today May 15, 2026 person @Imnacho2000 Soy Nacho domain software-ag

Product/components used and version/fix level: Detailed explanation of the problem: Error messages / full error message screenshot / log file: Question related to a free trial , or to a production (customer) instance? I was encoding a program and it gave an error in execution time since it called a subroutine and when returning from it I performed a loop for from 1 to 180 consulting by #X-ARRAY ( #i ), it gave me the NAT1257 but a SENIOR programmer came and solved it with *OCCURRENCE( #X-ARRAY ), I did not know that it could be assigned in runtime dimension that way, making the code stay FOR…

open_in_new Read original post