Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Write job logs when the job is active

Former Member
0 Kudos

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

4 REPLIES 4

ThomasZloch
Active Contributor
0 Kudos

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

0 Kudos

I am using message statement itself.But the message isn't reflected on real time basis in the job logs.

0 Kudos

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

0 Kudos

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!