Functions and CALL Routines |
Copies a job's log file from a DataFlux Integration Server.
Valid in: |
DATA step, PROC SQL, and SCL
|
DQSRVCOPYLOG
(job-ID,filename<,host><,port>)
|
- 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.
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).
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');
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.