Occur is used with a multiple occuring datastructure
Kind of like an array
D MyDS DS Occurs(10)
D Myfield1 10A
D Myfield2 6 0
Positioning to an occurance or finding out which occurance you are positioned to is the OCCUR
5 OCCUR MyDS <-- positions to the 5th "record/occurance/set"
OCCUR MyDS P <- P contains the position (5) that you are at
Last Wiki Answer Submitted: October 23, 2008 2:13 pm by philpl1jb44,190 pts.
All Answer Wiki Contributors: philpl1jb44,190 pts.