2.20 Is there any trick that would cause the HPPrompt to dynamically reflect HPCWD? For instance, is it possible to SETVAR HPPROMPT to a string that dereferences to HPCWD?

Absolutely.

:setvar hpprompt "!hpcwd:"

will do the trick, but is not dynamic; i.e. the prompt does not change if you do a `chdir'. To make it dynamic, use

:setvar hpprompt "!!hpcwd:"

To dynamically capture your MPE Group and Account in MPE format, try

:setvar hpprompt "!!hpgroup.!!hpaccount:"

This concept can be carried to considerable lengths as in

SETVAR HPPROMPT,"<!MACHINE: "+&

"!!HPJOBNAME,!!HPUSER.!!HPACCOUNT,!!HPGROUP> "+&

"!!HPDATEF !!HPTIMEF <!!HPCWD>"+CHR(13)+CHR(10)+"[!!HPCMDNUM]:"

which, for example, assuming the variable "machine" contains the machine name, will dereference into something like:

<GILG: JPB,MGR.SYSMGR,PUB> MON, JUN 5, 2000 6:53 PM </SYSMGR/PUB>

[8]:

You can also set this for system-wide use with SYSGENà MISCà CIPROMPT. This remains dynamic as well.