Submitting Job to SAP Using SAP Job as Template - zOS

Submitting a Job to an SAP System Using a Pre-existing SAP Job as a Template - z/OS

This example illustrates submitting a job to an SAP system using a pre-existing SAP job as a template for the submitted job.

//USPSUB1  JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID                     
//*****************************************************************
//* Description
//* -----------
//* This sample will submit a new job to an SAP system using a 
//* pre-existing SAP job as a template.
//* 
//* NOTE: This job assumes (and requires) that a job already 
//* exists on an the SAP system with:
//* Job Name: USPSUB1
//* Job ID:   12345678
//*
//* After running this job, a new SAP job will be created on the 
//* SAP system.  The new job will have the same name as the 
//* pre-existing job that was used as a template. However, the 
//* SAP system will assign a new job ID. 
//* 
//         JCLLIB ORDER=#SHLQ.UNV.SUNVSAMP                           
//*                                                                  
//STEP1    EXEC USPPRC                                               
//SYSIN    DD  *                                                     
   -dest      CF5 
   -client    800 
   -userid    sapuid 
   -pwd       sappwd      
   -sub  
   -jobname   USPSUB1 
   -jobid     12345678
/*                                                                   

The JCL procedure USPPRC is used to execute the Universal Connector command. Universal Connector connects to the SAP system and performs the requested work. In this case, a new job is created on the SAP system that is identical to the template job with the exception of job ID.

SYSIN Options

SYSIN options used in this example are:

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.

-sub

Specification that Universal Connector will issue the SUBMIT command.

-jobname

Job name of the SAP job that will be used as a template.

-jobid

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

Components

Universal Connector for z/OS