Use the print level switch -L
, with level 0, (zero) to list only the outermost box. Then use your favorite script tool to get and store the ST value.
For example:
autorep -J main_job_box -d -L0
man autorep
from a AutoSys command prompt will give you more information if you need it.