Application hangs at NEXT TASK equivalent for either ADS, Cobol or Assembler.
search cancel

Application hangs at NEXT TASK equivalent for either ADS, Cobol or Assembler.

book

Article ID: 60553

calendar_today

Updated On:

Products

IDMS IDMS - Database IDMS - ADS

Issue/Introduction

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)

 

 

Environment

All supported releases 

Cause

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.

 

Resolution

Change the definition of the task in the System Generation compiler to NOINPUT:-

MOD SYS nn.
MOD TASK xxx
  NOINPUT.
GEN.

Additional Information

CA IDMS 19.0 - Using - System Generation Statements - TASK Statement Syntax