Define Job, Run Job, Get Output, and Purge Job

Define Job, Run Job, Get Output, and Purge Job

This example uses an existing job in an SAP system as a model and creates a copy.

The newly created job then is started. Universal Connector waits for the job to finish, and then writes the joblog to standard error and the spoollists to standard out.

Finally, the job and its output are purged from the SAP system.

usap -sub -j SAMPLE1 -b 10080901 -start -wait -purge -userid sapuser -pwd sappwd -dest BIN_HS0092 -client 800  


Command Options

The command options used are:

Command Options

Description

-sub

Submit command which defines a job to an SAP system. The lack of a job definition file indicates that the definition will use an existing job as a model. That job will be identified by -jobname and -jobid.

-start

Specification that the job should be started.

-wait

Causes Universal Connector to wait for the job to complete.

-purge

Specification that the job and its associated output are to be purged from the SAP system.

-userid

External SAP user ID with which the command is executed.

-pwd

Password for the user ID.

-dest

Destination name in the saprfc.ini file.

-client

SAP client number.

Components

Universal Connector for z/OS

Universal Connector for SAP for UNIX