max = sys.get_gmax(<cbtot>);
max = sys.get_gmax(<CBNAME>,<cbtot>);
Or more generally
max = sys.get_gmax([<CBNAME>,]<cbtot>);
In most cases, sys.get_gmax() will be used with one argument.
When used this way,
it will work with the current CB.
Optional arguments are allowed so that you can get grand max vals
without needing to be processing a particular CB.