Previous Page | Next Page

Functions and CALL Routines

DQSRVCOPYLOG Function



Copies a job's log file from a DataFlux Integration Server.
Valid in: DATA step, PROC SQL, and SCL

Syntax
Arguments
Details
Example
See Also

Syntax

DQSRVCOPYLOG (job-ID,filename<,host><,port>)

Arguments

job-ID

identifies the job that is submitted to a DataFlux Integration Server. The identifier is previously returned by a function such as DQSRVARCHJOB or DQSRVPROFJOBFILE.

filename

identifies where the log file is copied on the local host.

host

identifies the host of the DataFlux Integration Server. If this value is not specified, then localhost is used

port

identifies the port through which the local host communicates with the DataFlux Integration Server. If this value is not specified, or if the value is 0 or a negative number, then the default port number 21036 is used.


Details

To capture log information for a particular job, use the DQSRVJOBSTATUS function to ensure that the job is finished before you copy the log.

Return values are 0 (log copied successfully) or 1 (log failed to copy).


Example

The following example copies a log file from a DataFlux Integration Server. The log file is generated when the server runs a job. The job identifier is returned in the function that runs the job.

copyrc= dqsrvCopyLog(jobid,'archServer1', 5001,'archServer1.log');


See Also

Functions:

DQSRVARCHJOB Function

DQSRVDELETELOG Function

DQSRVJOBSTATUS Function

Previous Page | Next Page | Top of Page