Universal Connector for SAP 7.6.x Quick Reference Guide - Environment Variables
ENVIRONMENT VARIABLES
The following table contains the environment variables that Universal Connector uses. The first column is their equivalent command line option. Command line options override environment variable settings.
Command Line Option | Environment Variable |
---|---|
-userid | USAPUSERID |
-pwd | USAPPWD |
-level | USAPDLEVEL |
-lang | USAPDLANG |
-sub | USAPSUBMIT |
-mod | USAPMODIFY |
-run | USAPRUN |
-start | USAPSTART |
-abort | USAPABORT |
-purge | USAPPURGE |
-wait | USAPWAIT |
-syntax | USAPSYNTAX |
-dest | USAPDEST |
-client | USAPCLIENT |
-targetserver | USAPTARGETSRV |
-jobname | USAPJOBNAME |
-jobid | USAPJOBID |
-stepnum | USAPSTEPNUM |
-abapname | USAPABAPNAME |
-varselopt | USAPVARSELOPT |
-poll | USAPPOLL |
-transtab | USAPTRANSTAB |
-spoollist | USAPSPOOLLIST |
-joblog | USAPJOBLOG |
-output | USAPOUTPUT |
-selusername | USAPSELUSERNAME |
-fromdate | USAPFROMDATE |
-todate | USAPTODATE |
-fromtime | USAPFROMTIME |
-totime | USAPTOTIME |
-nodate | USAPNODATE |
-withpred | USAPWITHPRED |
-released | USAPRELEASED |
-scheduled | USAPSCHEDULED |
-ready | USAPREADY |
-running | USAPRUNNING |
-finished | USAPFINISHED |
-aborted | USAPABORTED |
-xmiaudit | USAPXMIAUDIT |
-activeec | USAPACTIVEEXITCODE |
-readyec | USAPREADYEXITCODE |
-scheduledec | USAPSCHEDULEDEXITCODE |
-releasedec | USAPRELEASEDEXITCODE |
-terminatedec | USAPTERMINATEDEXITCODE |
-finishedec | USAPFINISHEDEXITCODE |
-rfc_timeout | USAP_RFC_TIMEOUT |
-rfc_logon_timeout | USAP_RFC_LOGON_TIMEOUT |
-rfc_logon_retry_interval | USAP_RFC_LOGON_RETRY_INTERVAL |
-rfc_logon_retry_count | USAP_RFC_LOGON_RETRY_COUNT |
-rfc_listen_interval | USAP_RFC_LISTEN_INTERVAL |
-rfc_retry_interval | USAP_RFC_RETRY_INTERVAL |
-rfc_retry_count | USAP_RFC_RETRY_COUNT |
Example
The following example:
- Defines a SAP job based on the job definition in file sapjob1.usp.
- Starts the job.
- Waits for its completion.
The job's joblog is written to standard error and the job's spoollists are
written to standard output.
usap -userid MYUSER -pwd MYPASS -dest BIN_HS0011 -client 900 -sub sapjob1.usp -start -wait