Previous Topic

Next Topic

Book Contents

Book Index

%%INCLIB and %%INCMEM

%%INCLIB and %%INCMEM statements contain two elements that together describe the member that is to be included in the current job stream, as follows:

These statements are useful for inserting the following types of information into the JCL:

The format of the statement is:

%%INCLIB { libname | DDNAME=ddname } %%INCMEM memname

In this statement

You can specify multiple %%INCLIB and %%INCMEM statements in a job.

More than one job may contain identical %%INCLIB and %%INCMEM statements, permitting maintenance of common, standardized code.

The %%INCMEM member is read by the Control-M monitor just before job submission, and the contents of the member are submitted as part of the current job. As a result

If the %%INCLIB statement is resolved within the JCL, ensure that there are no unnecessary blank lines in the %%INCMEM member.

If Control-M fails to access the included member (member not found, and so on), the job is not submitted and a warning message is issued.

Parent Topic

Control Statements