6.) Geneology Variables
There are also special variables available to the different geneology actions as explained in Section 2. File and Directory Structure, which are:

The %GENEOLOGY hash is available to the above three actions, and contains the following information:

Variable
Name
Description
$GENEOLOGY{'program_id'}
Program ID#
A number representing the ID# of the program structure. You may view the ID# of all program structures through the Setup->Program Settings menu.
$GENEOLOGY{'position_id'}
Position ID#
A unique number assigned to every downline position.
$GENEOLOGY{'phase'}
Phase
The phase of the program structure. For example, if the member has cycled through a matrix three times, this variable would be 3.