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. Commands Not Supported in CA OLQ Batch
(CV CA OLQ batch)
(Local CA OLQ batch)
How Batch Works
With CA OLQ batch, you can:
- Read input commands one by one from acommand file.
- Retrieve information from one or moreinput files(sequential files or databases).
- Build a report in theoutput file. This file can contains the data retrieved by the SELECT statement (OLQ mode).
Create a Command File
command fileis 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
SYSIPTstatement in your JCL. The SYSIPT statement defines the data set name of the file that contains the CA OLQ commands to be executed.
You can execute CA OLQ batch jobs either under the CA IDMS/DB
central versionor in
- CV batch job streamsexecute 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 streamsexecute 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:
- Run IDMSBCF -- IDMSBCF sets up the batch scratch area. This must be run before the CA OLQ local mode batch job step.
- 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