Batch Processing

idmscu
The CA OLQ batch facility allows you to perform the same functions as command mode CA OLQ. Batch enables you to retrieve information from a CA IDMS/DB database and sequential files, and to build reports using that information. You can run the jobs offline and schedule them at times of the day when there are less demands on computer resources.
Commands You Can Use in Batch
CA OLQ batch supports the same set of processing commands as command mode CA OLQ except for the subset presented in
Table 11
.
Table 11. Commands Not Supported in CA OLQ Batch
Environment
Invalid Commands
Central version
(CV CA OLQ batch)
SHOW TABLES
SHOW DESTINATIONS
SUSPEND
SWAP
SWITCH
YES/NO
Local mode
(Local CA OLQ batch)
SAVE REPORT
DISPLAY REPORT
DELETE REPORT
SHOW DIRECTORY
SWAP
SWITCH
SUSPEND
YES/NO
How Batch Works
With CA OLQ batch, you can:
  • Read input commands one by one from a
    command file
    .
  • Retrieve information from one or more
    input files
    (sequential files or databases).
  • Build a report in the
    output file
    . This file can contains the data retrieved by the SELECT statement (OLQ mode).
Create a Command File
A
command file
is a file that contains the CA OLQ commands to be executed during the batch job. You can store a command file in a sequential data set or list the commands in the job control language (JCL).
In batch, a line is the delimiter for entering commands. If a single command spans two or more lines, you must include continuation characters at the end of the continued lines to indicate to CA OLQ that the command continues on the next line. The default continuation character at system installation is the hyphen (-).
You must include a
SYSIPT
statement in your JCL. The SYSIPT statement defines the data set name of the file that contains the CA OLQ commands to be executed.
Execute Jobs
You can execute CA OLQ batch jobs either under the CA IDMS/DB
central version
or in
local mode
.
  • CV batch job streams
    execute in the batch region and use the CA IDMS/DB central version for database access. To specify that your batch job is running under the central version, include a SYSCTL card in your z/OS JCL, or an IDMSOPTI card in your z/VSE and CMS JCL.
  • Local mode batch job streams
    execute and handle database access within the batch region. Running a local mode batch job requires additional file assignments in your JCL.
How to Run a Batch Job
There are two main steps to using the CA OLQ Batch facility:
  1. Run IDMSBCF -- IDMSBCF sets up the batch scratch area. This must be run before the CA OLQ local mode batch job step.
  2. Run OLQBATCH -- The JCL for this job step is presented below.
You can include the IDMSBCF statement in the JCL, but it must be run prior to the OLQBATCH job step.
To set up batch processing in CA OLQ, you:
  • Tailor the job control language to your environment
  • Set the batch class for batch job control language submission
  • Set default options normally set during system generation