11-11-2010 10:33 AM
Guys,
I have a very typical problem.
I need to write job logs or rather i should say I need to reflect logs in job logs while the job is still running.
How can I do that?
Thanks,
Chirantan
11-11-2010 11:05 AM
This sounds too basic, but maybe there is a misunderstanding. Do you want to write messages to the job log of the currently running background job? If yes, use MESSAGE statement with type S, I or W in your program and search for more information.
Otherwise please explain more technical details.
Thomas
11-11-2010 11:14 AM
I am using message statement itself.But the message isn't reflected on real time basis in the job logs.
11-11-2010 11:26 AM
Hi
If you need to see the message in job log while job running, you need to force a COMMIT WORK after calling a message
Anyway u need to make sure the COMMIT can be in conflict with the process of your program
Max
11-11-2010 11:27 AM
I remember vaguely i had to do the same years ago and ran into the same problem. I believe i solved it by COMMIT WORK after each message.
-
Please hug me!