I'm interested in writing WTO messages from a JAVA program.
I know JZOS has this option but I'm not allowed to use it in our facilities so I've written a JNI program in C that uses the function _console() to write WTO messages.
When I run a C program that calls this procedure on a batch JOB I see the message I write to the _console() on the JESMSGLG DD card of the job and on the SYSLOG.
When I run a java program on batch that calls the same C procedure using JNI the message is NOT written to the JESMSGLG but only to the SYSLOG.
I'm interested in writing the messages to the JESMSGLG, I wanted to know if anyone encountered this problem or if anyone has any other method to write WTO messages from Java.
I think the solution might be using _console2() but i'm not sure...
thanks,
Hagai.