DC Programming Techniques

This section discusses programming techniques used to request DC services. Functionally similar DC DML statements are presented together; sample code that demonstrates typical usage of each statement is included. The DC DML functions are divided into these categories:
idmscu
This section discusses programming techniques used to request DC services. Functionally similar DC DML statements are presented together; sample code that demonstrates typical usage of each statement is included. The DC DML functions are divided into these categories:
  • Controlling the flow of processing in the different levels of your task
  • Retrieving task-related information-Accessing system, terminal, and user information related to the current task
  • Maintaining online data integrity-Monitoring concurrent database access locking database records across tasks
  • Managing tables-Adding and deleting tables from the program pool
  • Retrieving the current time and date-Accessing the time and date from the DC system
  • Writing to the journal file-Writing task-defined records to the journal file
  • Collecting DC statistics-Accessing run-time transaction statistics
  • Sending messages-Transmitting messages to other terminals, the user, and the log file
  • Writing to a printer-Directing data to printer devices
  • Writing JCL to a JES2 internal reader-Sending a JCL stream from the application program to a JES2 internal reader
  • Modifying a task's priority-Changing the dispatching priority of a task
  • Initiating nonterminal tasks-Using nonterminal tasks
  • Controlling abend processing-Specifying the flow of control in the event of an abend
  • Establishing and posting events-Establishing and posting event control blocks