Startup autotask to execute a CLIST of DCMT commands
search cancel

Startup autotask to execute a CLIST of DCMT commands

book

Article ID: 23058

calendar_today

Updated On:

Products

IDMS IDMS - Database

Issue/Introduction

This article describes how to execute a CLIST of DCMT commands automatically at startup with a startup autotask.

Environment

Release: All supported releases.

Resolution

A startup autotask is a non-terminal (background) task and cannot be used to execute a CLIST. Calling (#LINK) RHDCCLST from an IDMSDC user program (see Invoking Command List Modules from Programs) sets up the user's LTERM for CLIST processing but the CLIST does not get executed until the user program returns to DC and the DC system is about to write ENTER NEXT TASK CODE to the user's terminal.

Since a startup autotask is not a terminal task, the CLIST will not be executed even if the autotask user program has made the proper call to RHDCCLST.

What to do:

  1. A startup autotask can call RHDCMT00 directly to execute DCMT commands. See Invoking DCMT and DCUF Commands from Programs.
  2. Define a LINE, PTERM and LTERM for LINE type INOUTL or S3270Q which can define an INPUT DD which is opened and read when the LINE is opened. This dataset can contain any task codes including DCMT commands. See Teleprocessing Network Statements.