Previous Topic: Deleting a JCL MemberNext Topic: Display the JCL member


Creating a JCL PROC for Online Submission

CA Dataquery provides a method of tailoring JCL at submission time. Special JCL members called PROCs, can be defined with substitutable variables. You can create JCL members that contain variables for which values can be substituted when the JCL is submitted. A PROC is to JCL what dialogs are to queries. The PROC variables are identified with dialog symbols and use dialog fill characters.

Comparison

The differences between PROCs and dialogs are:

Uses

PROCs can serve a variety of functions. You may need to establish naming conventions at your site, or limit the execution of certain programs or use of data sets. Whatever the requirements are for your site, you can create one PROC with substitutable values for each one.

As you learn about CA Dataquery and create a few PROCs of your own, you will think of more uses for them. Since you can list valid values and specify ranges for numeric variables, you can make sure that only the values you authorize are used in your PROCs.

Before You Begin

It is advisable to create a working JCL member, save it, validate it and execute it before adding the variables and making it into a PROC. If errors occur after you make it into a PROC, it is easier to locate the problem.

A sample JCL member follows that is used as the basis of a PROC that changes the job name, user ID and password.

 01 //jobname    Code according to site standards (See Preparing JCL for Batch CA Dataquery Utilities).
 01 //DQBATCH  JOB   (DAL-BO7,DQ110103),DQ,MSGCLASS=T,
 02 //      USER=DQUSER,
 03 //      PASSWORD=DQU
 04 //   EXEC   PGM=DQBATCH
 05 //STEPLIB    See Preparing JCL for Batch CA Dataquery Utilities.
 06             .
 07             .
 08             .
 09             .
 10 //SYSPRINT DD  SYSOUT=*