Previous Topic: SPNAME Statement—Specify Stored Procedure or Stored Function to RunNext Topic: SPOOLRECIPIENT Statement—Specify SAP Spool Recipient


SPOOLFILE Statement—Specify the Full Path to the Spool File

The SPOOLFILE statement specifies the information about a Remote Execution job’s spool file. This statement is used to specify a location other than the default spool file location to send the output data of the job.

Supported Job Type

This statement is optional for the Remote Execution job type.

Syntax

SPOOLFILE spool
spool

Specifies the full path to the spool file.

Limits: 256 characters; case-sensitive and can contain any characters

Notes:

Example: Specify a SPOOLFILE Path

This example specifies the >>/tmpspool3 path to the spool file. Because the name starts the >>, the file is appended.

AGENT REMOTETEST
REMOTE_COMMAND ‘sleep 200’
REMOTE_TARGET UNIXEndpoint
EXITCODE 0-1 SUCCESS
SPOOLFILE ‘>>/tmpspool3’