CONTROL: FANUC Oi-F / Mill

When working with a series of nested operations is there a way to return the o-number of the calling program at each level.

O1111 (MAIN);
M98 P2222;
M30;
%
O2222 (NESTED1);
#500 = ##### (??? #4000 Assigns the MAIN op number, but that doesn't work for all cases, see below);
M98 P3333;
M99;
;
%
O3333 (NESTED2);
#501 = ##### (??? How can one assign 2222 to #501 here?);
M98 P4444;
M99;
;
%
O4444 (NESTED3);
#502 = ##### (??? How can one assign 3333 to #502 here?);
M98 P5555;
M99;
;
%

And so on...

Thank you all in advance.