Creating a Variant Substitution Using GENERATE VARDEF Command - zOS

Creating a Universal Connector Variant Definition Using the GENERATE VARDEF Command - z/OS

SAP variants often have many parameters. Manually creating Universal Connector variant definitions can be tedious and time consuming.

Universal Connector offers a function that generates a complete variant definition based on a pre-existing template variant on the SAP system. The generated variant definition then can be used with a Universal Connector SUBMIT or MODIFY command to prepare a variant for a job run.

The following example demonstrates the use of the GENERATE VARDEF command.


//USPGEN1  JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID                     
//*****************************************************************
//* Description
//* -----------
//* This sample generates a USAP variant definition based on a 
//* pre-existing template variant on an SAP system.
//*
//* NOTE: This job assumes (and requires) that a variant named SBT1 
//* exists for ABAP program RSBDCSUB.
//* 
//         JCLLIB ORDER=#SHLQ.UNV.SUNVSAMP                           
//*                                                                  
//STEP1    EXEC USPPRC                                               
//SYSIN    DD  *                                                     
   -dest     CF5 
   -client   800 
   -userid   sapuid 
   -pwd      sappwd      
   -generate vardef
   -abapname RSBDCSUB
   -variant  SBT1
/*       

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.

-generate

Instructs Universal Connector to generate the specified variant definition.

-abapname

Name of the ABAP program that the template variant belongs to.

-variant

Name of the variant that Universal Connector will use as a template for generation.

Components

Universal Connector for z/OS