Running an SAP Job on a Specific SAP Server - zOS
Running an SAP Job on a Specific SAP Server - z/OS
This example illustrates running an SAP job on a specific SAP Server.
//USPRUN3 JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID //***************************************************************** //* Description //* ----------- //* This sample demonstrates how to specify a specific SAP server //* for the SAP job to run on. //* //* This sample will: //* 1. Submit a new job to an SAP system. //* 2. Start the job on a specific SAP server. //* 3. Wait for the job to complete. //* 4. Return the job log. //* 5. Return the spool list. //* // JCLLIB ORDER=#SHLQ.UNV.SUNVSAMP //* //STEP1 EXEC USPPRC //JOBDEF DD * /* Job Header statement. */ JOBNAME = "USPRUN3"; /* ABAP Step statement. */ ABAP_STEP = "STEP 1" ABAP_PROGRAM_NAME = "BTCSPOOL"; //SYSIN DD * -dest CF5 -client 800 -userid sapuid -pwd sappwd -sub JOBDEF -start -targetserver pwdf2643 -wait -joblog yes -spoollist yes /*
SYSIN Options
SYSIN options used in this example are:
Command Options | Description |
---|---|
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. | |
SAP client number that the Universal Connector will communicate with. | |
Remote user ID with which to execute the command. | |
Password for the user ID. | |
Specification that Universal Connector will issue the SUBMIT command. | |
Specification that Universal Connector will instruct the SAP system to start the submitted job. | |
Target server for the SAP job to run on. | |
Specification that Universal Connector will monitor the started job until it completes. | |
Specification that Universal Connector will return the SAP log for the started job. | |
Specification that Universal Connector will return any spool lists created by the started job. |
Components