Chapter 10
Controlling Processes
Sterling Connect:Direct for i5/OS implements a Sterling Connect:Direct Process Management Queue. You can use two commands to schedule, control, and monitor any active or queued Processes:
CDSUBPROC command allows you to:
Submit Sterling Connect:Direct Processes for asynchronous execution
Control certain characteristics of the execution
WRKCDPROC command allows you to work with active or queued Sterling Connect:Direct Processes. With this command, you can perform the following Process tasks:
Schedule
Control
Monitor
This chapter explains the Process Management Queue, the CDSUBPROC command, and the WRKCDPROC command and their use for Process management.
Understanding the Process Management Queue
The Process Management Queue is a repository for Processes currently in the Sterling Connect:Direct for i5/OS system. Five logical queues are associated with the Process Management Queue:
ACTIVQ - active, executing Processes
WAITQ - Processes waiting to run
HOLDQ - Processes currently held
TIMERQ - Processes waiting for a timer event
STARTQ - Processes being activated
Understanding Asynchronous and Synchronous Processes
The Process Management Queue contains synchronous and asynchronous Processes.
Asynchronous Processes are those submitted using the CDSUBPROC command. These Processes are scheduled and maintained according to run instructions provided in the CDSUBPROC command.
Synchronous Processes are Sterling Connect:Direct commands issued through CL programs and CL commands other than CDSUBPROC. They cannot be scheduled once they are in the Process Management Queue.