Extract DS Job Logs
Posted: Thu May 25, 2006 10:44 am
I am using the ExtractLogMsgs subroutine to collect the job logs in a text file.
The subroutine works fine for existing files with the JobName.log in the below call.
Call DSLogInfo("Open Output Log Filename ", "ExtractLogMsgs")
OutputLogFname = LogFileDirectory:"\dsEtl_":JobName:".log"
How can I tell the routine to create the JobName.log file if the file does not exist.
I currently do that in a shell script. But wondering if this can be done from DS subroutine (ExtractLogMsgs).
Any help is appreciated!
The subroutine works fine for existing files with the JobName.log in the below call.
Call DSLogInfo("Open Output Log Filename ", "ExtractLogMsgs")
OutputLogFname = LogFileDirectory:"\dsEtl_":JobName:".log"
How can I tell the routine to create the JobName.log file if the file does not exist.
I currently do that in a shell script. But wondering if this can be done from DS subroutine (ExtractLogMsgs).
Any help is appreciated!