Creating a Job Definition Using GENERATE JOBDEF Command - zOS

Creating a Job Definition Using GENERATE JOBDEF Command - zOS

Creating a Universal Connector Job Definition Using the GENERATE JOBDEF Command - z/OS

SAP jobs offer many configuration options. Manually creating Universal Connector job definitions that utilize many configuration options can be tedious and time consuming.

Universal Connector offers a function that generates a complete job definition based on a pre-existing template job on the SAP system. The generated job definition can then be modified, if needed.

The following example demonstrates the use of the generate jobdef command.

//USPGEN2 JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID //***************************************************************** //* Description //* ----------- //* This sample generates a USAP job definition based on a //* pre-existing template job on an SAP system. //* //* NOTE: This job assumes (and requires) that a job already //* exists on an the SAP system with: //* Job Name: USP_TEMPLATE_1 //* Job ID: 12345678 //* // JCLLIB ORDER=#SHLQ.UNV.SUNVSAMP //* //STEP1 EXEC USPPRC //SYSIN DD * -dest CF5 -client 800 -userid sapuid -pwd sappwd -generate jobdef -jobname USP_TEMPLATE_1 -jobid 12345678 /*

SYSIN Options

SYSIN options used in this example are:

Command Options

Description

Command Options

Description

-dest

Named set of connection parameters (destination) 'CF5'. These connection parameters are used for communications with the SAP system. The default file for destination parameters is #HLQ.UNV.USPRFC00.

-client

SAP client number that the Universal Connector will communicate with.

-userid

Remote user ID with which to execute the command.

-pwd

Password for the user ID.

-jobname

Name of the SAP job that will be used as a template for generation.

-jobid

Job ID of the SAP job that will be used as a template for generation.

Components

Universal Connector for z/OS