A user application is hanging (X-SYSTEM or the hourglass in a Windows emulator) at the point where either of the following is being executed (depending on the programming language):-
LEAVE ADS NEXT TASK 'XXX'. (in ADS)DC RETURN NEXT TASK CODE 'XXX'. (in Cobol)#RETURN NXTTASK='XXX' (in Assembler)
All supported releases
The task code XXX (in the examples above) is defined in the System Generation compiler with the INPUT option, but it should be NOINPUT. INPUT causes the system to wait for user input when there is none, and doesn't need to be any.
Change the definition of the task in the System Generation compiler to NOINPUT:-
MOD SYS nn.
MOD TASK xxx
NOINPUT.
GEN.