The CTJAPI macro is the interface service API for Control-M JCL Verify. It allows the user to define the communication block and call CTJAPI to perform the requests.
The macro automatically changes keywords that must be in uppercase. For example, jobname is changed to JOBNAME.
Examples of the CTJAPI macro for verification, reformat, or enforcement are shown in Fig.JV.8.1 or Fig.JV.8.2 respectively and the macro keywords are described in the table Tab.JV.8.1.
Note that the program must be defined as AMODE31 and RMODE31.
When assembling the program, the IOA MAC library must be concatenated to SYSLIB.
The program must be link-edited as non-authorized, AMODE(31).
The following DD must be available when executing the program:
//DAPARM DD DISP=SHR,DSN=ilprefa.PARM
// DD DISP=SHR,DSN=ilprefa.IOAENV
Examples of programs that use the CTJAPI macro can be found at the end of this chapter and in the CTJAPIA member in the IOA.SAMPLE library.
Tab.JV.8.1 Macro keywords
Keyword |
Description |
---|---|
Func |
Positional parameter that describes the required service. There are no defaults. Mandatory. Valid values:
When Func is INIT, the block is reformatted and the fields, if not set, will contain X'00'. When a keyword is not used, the macro does not change the related field. The defaults from CTJPARM member will be used.
|
DSECT |
Defines the CTJAPI block as a DSECT. Valid values:
|
FA |
Whether to verify file access privileges. Valid values:
|
FV |
Whether to perform dataset verification. The dataset is verified whether it is cataloged and whether it is in the volume as specified in the DD statement or in the catalog. Valid values are:
|
CTM |
Whether to resolve Control-M AutoEdit variables in the job. Valid values are:
|
STDR |
Whether to use the Control-M JCL Verify rules to verify site standards. Valid values:
|
ENV |
Whether to use, in addition to the GENERAL rules, rules that are defined for specific environments for the site standard verifications. Valid values are:
|
JCL# |
Address of a 4-byte field containing the number of JCL statements passed to CTJAPI, in binary format (DS F). |
JCL@ |
Address of buffer containing the JOB to be verified. Note: Only one job can be verified. In case the buffer contains more than one job only the first job will be handled. |
JES |
Whether to verify that the JES2 or JES3 statements are correct. Valid values are:
|
JMSG |
Get the Control-M JCL Verify messages for the job from the message buffer. For verification, specify Y. For enforcement/reformatting, to perform SAV=Y, specify JMSG=N. See Tab.JV.8.2 "ENF and REF parameters" below. Valid values:
After the scan is completed the following fields are set:
Each message is 256 bytes long. The actual text starts in position 3 and is 132 bytes long. Note: The calling program is responsible for releasing the message buffer. |
LIB |
Address of a 44-byte field containing the DSNAME of a library containing the JCL member(s) to be verified. Mandatory. |
MEMBER |
Address of an 8-byte field containing the name of the member, or masking of the members (* or ?) to be verified. If * or null is specified then all members in the library will be verified. |
MCT |
MCT address. Mandatory. Valid values:
|
ME |
Module existence. The module in EXEC PGM=module_name is existence is verified.
Valid values:
|
ML |
The minimum level of message severity to be issued. Valid values are:
Note: JMSG=Y all messages will be available |
RAREA |
Label of CTJAPI communication block. Mandatory. Valid values:
|
USER |
Address of an 8-byte field containing the user ID to be used in the file access privileges (FA) verifications. Valid values are:
The USER is used in all the statements that follows it until a new USER is specified). If the USER statement is omitted, then USER=*DEFAULT. Note: If the JOB statement contains USER=, then this user is used. |
UT |
Whether to verify the syntax of the IBM utilities (for details, see JCL and syntax verification) and the DB2 related validation. Valid values are:
Note:
|
ODATE |
Address of a 6-byte field containing the Control-M Order Date, in character format. The user can change the date. If it is left blank, the default is the current date. The format of it is: YYMMDD ODATE is used during Control-M AutoEdit variable resolution. |
NODE |
Used for remote processing. Address of an 8-byte field containing NODE name of IOAGATE running on a remote sysplex. For more details, see Tab.JV.3.1 CTJMON routing parameters in Defining the target CTJMON where the processing will be submitted. |
IE |
Used for remote processing. Address of an 8-byte field containing the QNAME of a CTJMON running on the target sysplex. For more details, see Tab.JV.3.1 CTJMON routing parameters in Defining the target CTJMON where the processing will be submitted. |
SYS |
Used for remote processing. Address of an 8-byte field containing the MVS system name of the target system in the target SYSPLEX. For more details, see Tab.JV.3.1 CTJMON routing parameters in Defining the target CTJMON where the processing will be submitted. |
AR |
Specifies whether Auto Routing will be enabled (Y) or not (N) or whether the default (D) (AROUTE parameter in CTJPARM) Auto Routing will be used. |
CNDALC |
Specifies whether conditional dataset allocation verification feature will be used. Valid values: Y | N | D (D=use CNDALC setting in CTJPARM). |
PROCDD |
Address of an 8-byte field containing the name of a predefined DD card from which the procedures are resolved when the JCLs are verified. For example, PROC01. The DD card must be predefined in JES PROCLIB or in the CTJPRC member and will be the only procedure library searched. For more information, see JES2/3 Predefined PROCLIBs. |
LINKDD |
Address of an 8-byte field containing the identifier of statements in the CTJLINK member which define load module libraries to be searched during program existence check. See CTJLINK – User link libraries for program existence check. |
The Control-M JCL Verify Application Program Interface provides the ENF function for enforcement, the REF function for reformatting, or the ENFREF function for both. Additional parameters are listed in the following table.
These functions are invoked by specifying FUNC=ENF, FUNC=REF, or FUNC=ENFREF.
Tab.JV.8.2 ENF and REF parameters
Parameter |
Description |
---|---|
CTM |
Whether to resolve Control-M AutoEdit variables. Valid values are:
|
LIB |
Address of a 44-byte field which specifies the library where the JCL is located. Mandatory. |
MEM |
Address of an 8-byte field which specifies the member where the JCL is located. Optional. Supports masking (* and ?). |
NODE |
Name of the remote verification node. See Tab.JV.8.1 "Macro keywords" above. |
SYS |
Remote MVS system name. See Tab.JV.8.1 "Macro keywords" above. |
IE |
CTJMON QNAME. See Tab.JV.8.1 "Macro keywords" above. |
OVR |
Whether to override the existing member. Valid values are:
|
SAV |
Whether to save changed JCL. Valid values are:
|
JMSG |
Whether to return the message buffer. IF SAV=Y is specified then JMSG=N must be specified. |
SAVLIB |
Address of an 8-byte field which specifies the library where the JCL will be saved. |
SAVMEM |
Address of an 8-byte field which specifies the member where the JCL will be saved. Optional. (Applicable for one member only). |
Parent Topic |