z/XDC has a very useful Session Log that it automatically writes to spool. It simply records everything that goes on the the display’s top window (The “working window”). But it never includes anything that occurs in “Watch Windows”. The problem is, that’s where the PSW and registers are normally displayed. Consequently, a running display of registers and the PSW is not automatically written to the Session Log, and sometimes this lack can be real frustrating. This is a need that “Latent Commands” addresses.
Now, whenever z/XDC receives control from the user’s program, it will automatically and silently issues a string of commands (The “Latent Commands String”) and saves that output both in the Working Window’s Scroll Area and in the Session Log. So now, if you need to review the Session Log, the registers and PSW will be in there.
If you scroll up in the Working Window’s scroll area, you WON’T automatically see them, but if you issue a SET LOG LATENT=SHOW, then you will.
The default Latent Command String is:
LIST PSWE;LIST BEA;LIST REREGS
but you can change it to be anything you want. (And you can save your changes in your Session Profile.)
The update that adds this support is named DBC-1811C.