Previous Topic: DEST Statement—Specify an Output Destination FileNext Topic: DESTINATIONNAME Statement—Specify the JNDI Name of the Topic or Queue


DESTINATION Statement—Specify an Output Destination File

The DESTINATION statement specifies the output destination file in a job. In a payload producing job, the file stores the Java serialized object produced by the job.

Note: If you omit this statement, the Java serialized object is stored in the spool directory on the agent computer using the job name and a numeric suffix as the file name.

Supported Job Types

This statement is optional for the following job types:

Syntax

This statement has the following format:

DESTINATION destination
destination

Specifies the output destination file.

Limits: Up to 256 characters; case-sensitive

Examples: /tmp/myoutput, 'D:\Stock output\STOCK3'

Notes:

Example: Save Output from a Session Bean Job in a File

Suppose that you want to invoke the reverse method on the CybEJBTestBean stateless session bean. The reverse method has one parameter, with type java.lang.String and value a23. The output from the reverse method is saved to the C:\Makapt15 file. The initial context factory supplied by the JNDI service provider is com.ibm.websphere.naming.WsnInitialContextFactory. The service provider's URL is iiop://172.24.0.0:2809, where 172.24.0.0 is the IP address of the WebSphere application server and 2809 is the ORB port. When the job runs, the output of the reverse method is stored in the output destination file.

AGENT APPAGENT
INITIAL_CONTEXT com.ibm.websphere.naming.WsnInitialContextFactory
LOCATION iiop://172.24.0.0:2809
BEAN CybEJBTestBean
METHOD reverse
DESTINATION C:\Makapt15
JNDIUSER cyberuser
PARAMETER TYPE(java.lang.String) VALUE(a23)