The SAPFAILUREMSG statement specifies a string that indicates the failure of a job. If the string is found in the job's spool file, the job is considered failed.
Supported Job Types
This statement is optional for the following job types:
Syntax
This statement has the following format:
SAPFAILUREMSG 'message'
Specifies a string that indicates the job failed. If the string is found in the job's spool file, the job is considered failed even if the job succeeds on the SAP system.
Limits: Up to 128 valid SAP characters; case-sensitive
Example: Use a Failure Message to Determine a Job's Failure
This example specifies the failure message, Internal problem. If the string is found in the SAP job log or the SAP spool output, the scheduling manager treats this job as failed.
SAPJOBNAME SAPTEST SAPFAILUREMSG 'Internal problem' AGENT SAPHTAGENT SAPUSER J01PROD ABAPNAME BTCTEST VARIANT TEST
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|