Can you post few lines of your code with getJobLog call so I can check what is wrong there. Also if you use a file mark based job and there are multiple files you won't be able to use the log to find out which file exactly triggered the job. I suggest you make your job write found files to some place where you can read them later. If you create a script type job you can have the script save file name into some file, for example, in JAL you can do the following:
Dim file_name, string
Dir( "c:\\path to your files\\*.*", file_name )
FileSave( "C:\\some folder\\last_file_name.txt", file_name )
Of course this script is only good for 24x7 Windows version. If you run Multi-platform version, you can do the same in JavaScript job as
var file_name = Directory.dir( "c:\\path to your files\\*.*" );
File.save( "C:\\some folder\\last_file_name.txt", file_name );
: In a Job definition we are listening for incoming
: files in a folder by giving *.* as semaphore file.
: Now we want to retrieve the file name through any of the 24*7 API call.
: Is there any API call avaialable for the same?
: I have tried Integer getJobLog ( String JobID,StringHolder Buffer,Boolean
: HTMLFormat ) throws RemoteException
: API call but it is not of much use for me.
: Any help will be highly appriciated.
: Thanks in advance
|