JOBCMD

xcall JOBCMD, command

JOBCMD.SBR allows you to specify a command string which is automatically executed whenever the job returns to the A-Shell command prompt. Setting the command to a null string disables the feature, which effectively makes it possible again for the user to interactively type commands when at the prompt. This feature is often used to force users back into some kind of a menu in case they somehow manage to drop out of a program. You have to be careful with this facility, since once you set it, there is no way to exit except by making another call to JOBCMD with a null string as the argument.

The maximum length of the command string is 29 characters plus a trailing null byte.