2.12 Is there a way that an executing MPE/iX command file can determine its name (filename, group, account)?

You can use the "!-1" command to assign the last command executed by the CI to a variable (example, first line of the command file is: SETVAR cmdFileName "!-1"); you should parse the string bound to 'cmdFileName' to determine the group and account using !hpaccount and !hpgroup as/if needed; your code should look for "XEQ" string as well (just in case).

You may also need to look at !hppath as well to try to determine what command file is executing (many people put them in a special group, like CMD and then add "CMD, to the start of !hppath); you can use the same logic as HP by running down the "!hppath" searching along each path for the first command file name which matches the one running.

Note that "!n" returns the command string for command 'n' in the redo stack. "!-n" returns the command string for the previous nth command, so "!-1" returns the previous command.