TERM – Terminate HCL Workload Automation for Z session

Use the TERM request to terminate the programming interface session and perform the cleanup processing.

TERM

The cleanup processing performs the following actions:

  • FREEMAIN of storage
  • Closes data sets
  • Detaches subtasks
  • Terminates the HCL Workload Automation for Z session.

Before Workload Automation Programming Language terminates, it automatically performs any required TERM requests.

To communicate with more than one subsystem during a Workload Automation Programming Language program, you must terminate a session before initializing a new session. Use the TERM command before the INIT command to another subsystem. However, Workload Automation Programming Language automatically generates a TERM session if a new session is required before performing a new INIT.