Can I change the menu order from a TPX exit?

Document ID : KB000050252
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

I want to have the active sessions always on top of the menu.

How to achieve this? Can e.g. the TPX menu exit TPXUMENU be used?

Solution:

Each TPX session on the menu is represented by an UENTRY control block.

The order the sessions appear on the menu is only determined by the order of the UENTRY control block chain in memory. This order is determined by the setting of menu order (UENTROW field) in the user/profile session definitions.

The UENTROW field is not used directly in the menu build logic.

It is only used at signon time to order the memory chain of UENTRY records.
So changing the UENTROW field from e.g. exits in memory does not affect the menu order.

Changing the menu order can only be done from user/profile session maintenance and requires a signoff/signon of the user.